Quickly import existing iOS files to OS X target in one project

How can I access some classes from an iOS project and use it in the target OS X environment in the same project? Classes are not specific to CocoaTouch (e.g. NSManagedObjects)

+3


source to share


1 answer


In the Project Settings View, select your OS X target and go to the Build Phases tab. Then just drag and drop the classes you want to access to the Compiler Sources section. This lets Xcode know that you want these classes to be included when compiled for OS X.



+2


source







All Articles