Malloc
Malloc

Reputation: 16276

error: There is no SDK with the name or path 'iphoneos'

I have downloaded a sample and when I try to run it I get that error, how can I fix it?

Upvotes: 0

Views: 1850

Answers (1)

mmccomb
mmccomb

Reputation: 13807

The XCode project file you're trying to open is referencing a version of the iOS SDK that you either don't have installed or don't have in the anticipated location. This should be easily fixed by updating the project file to reference a version of the SDK available on your local machine.

XCode 4

  • Open the XCode project
  • In the left hand navigation pane open the project file
  • For both your project and targets open the build settings tab
  • Look for the 'Base SDK' setting and set it to the desired version

Older Versions

  • Open the Edit menu
  • Open Project Settings
  • Same as XCode 4 instructions - set the 'Base SDK' to your desired version

Upvotes: 4

Related Questions