Varun
Varun

Reputation: 238

Run A multiplatform xcode project

I have a project that has two targets one for iOS and other OSX. When I run the project it builds successfully. But Its nit running.I want to run this ample project in any of the platform. How can I do this.

Upvotes: 0

Views: 55

Answers (1)

brainray
brainray

Reputation: 12884

This won't work, because iOS and OS X are based on different frameworks.iOS needs UIKit. But if you compile a project for Mac that contains UIKit, you will get an error. You cant just set Xcode to compile for Mac if you use the wrong 'base classes'.

Just create 2 Xcode projects that contain all the classes you want to use, one for OS X, one for iOS.

Upvotes: 1

Related Questions