简体   繁体   中英

How to build a framework for all platforms in single Xcode project?

Previously to build a framework for particular platform(macOS, iOS), I used to maintain different projects in Xcode and build separately.

My code mostly depends on sqlite3.h and a wrapper class written in Swift.

Is there a way to maintain all the frameworks under one xcode project?

I searched but I didn't get any tutorials on the web.

Thank you.

yes of course xcode can handle this for a long time. you simply create your framework project and then add targets for iOS, macOS, tvOS and watchOS.

在此处输入图片说明 the plus sign below the target pane allows you to add more target. or just duplicate your existing target and change sdk and platform settings.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM