iiFreeman
iiFreeman

Reputation: 5175

Swift import existing iOS files into OS X target in single project

How to access some classes from iOS project and use it inside OS X target in the same project? Classes are not CocoaTouch specific (NSManagedObjects for instance)

Upvotes: 3

Views: 508

Answers (1)

sgonzalez
sgonzalez

Reputation: 1086

In the project settings view, select the your OS X target and go to the Build Phases tab. Then, simply drag the classes you want to access to the Compiler Sources section. This lets Xcode know that you want these classes to be included when you compile for OS X.

Upvotes: 2

Related Questions