Is it possible to generate OS X and iOS binaries from one same swift source code file in Xcode 6? And if yes, how?
Yes. The way you share Swift code between multiple targets in a project is no different from how you share ObjC code.
For an example, see the new Lister app sample code in the developer library . That project builds an OS X app and an iOS app, and for each platform it builds the app, a Notification Center Today View extension, and a bundled framework supporting both.
Yes, definitely. See WWDC 2014 Session 233 (Friday 9 am) or check out the documentation on Xcode targets . (h/t uchuugaka)
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.