Cross Plattform target for OS X and iOS with Swift?

Is it possible to generate OS X and iOS binary files from one quick source code file in Xcode 6? And if so, how?

+4
source share
2 answers

Yes. The way you share Swift code between multiple goals in a project is no different than how you use ObjC code.

For an example, see the new Lister application code example in the developer library . This project creates an OS X application and an iOS application, and for each platform it creates an application, a Notification Center Today View extension, and an integrated infrastructure that supports both.

+4
source

, . . 233 WWDC 2014 ( 9 ) Xcode. (h/t uchuugaka)

+2

Source: https://habr.com/ru/post/1543035/


All Articles