I downloaded some Application samples from a website.
It used to work but when I went back to Xcode (After a couple of months) I tried them and it gives me this error.
error: There is no SDK with the name
or path 'iphoneos2.0'
I tried looking for a file called "iphoneos2.0"
and tried looking for a highlighted code but nothing.
Could anyone help me please?
The Base SDK of your downloaded app's Target has set to iphoneos2.0. Change the Base SDK of the Target from iphoneos2.0 to a iOS version which is available.
To change the Build Settings in (Xcode 3.2) - Goto Project -> Edit Project Settings menu. Or, Double-click the project name in the project tree in Xcode.
To change the Build Settings in (Xcode 4) - Select the project name in the project tree. It will open the Project Settings in the document area of Xcode.
In the project settings, search for Base SDK.
Related
I downloaded the Flashlight project from this trusted site , in xcode i clicked on "open other" and choose this project. But when I run it it gives me the error:
the run destination my mac 64-bit is not valid for running the scheme 'Flashlight'
the scheme 'Flashlight' contains no buildables that can be built for the SDKs supported by the run destination my MAC 64-bit. Make sure your targets all specify SDKs that are supported by this version of Xcode.
I tried this: Autocreating schemes (Scheme > Manage schemes > Autocreate schemes)
I then closed and re-opened xCode. still got same error.
ok, the issue is not in the schemes, it is in the build settings of the project and its SDK missing.
1.click the project on the left side of the Xcode when your project is open.
2.then on the right side navigate to the build settings.
3.under the base SDK pane, click on the right side and open up the drop down menu.
4.then select the type of the SDK you want.
from there you can select to run the project on the mac or iOS.
now this project is missing some basic framework when its run on mac 10.8. so i suggest you run it in iOS.
I have installed phonegaplib for ios, I created one test project using phoneGap based on application template, but in that, phoneGap.framework is in the red color. I think it is missing. So where can I get this frame work, can any one help me?
Are you sure you're following the official guide?
Create a PhoneGap project (Xcode 4)
Launch Xcode, then under the File
menu, select "New Project...".
Navigate to the "iOS" section, under
"Applications" - then in the right
pane, select "PhoneGap-based
Application"
Select the "Next" button, name your
project and company idenfifier, then
select the "Next" button again.
Choose the location where you want
the new project to be.
Run the project at least once to
create the "www" folder in your
project folder.
Drag and drop this "www" folder into
your project in Xcode, and add it as
a folder reference.
Modify the contents of the "www"
directory to add your HTML, CSS and
Javascript.
Reference 1: PhoneGap iPhone - Build and install the Installer Package
Reference 2: Video: PhoneGap Installer - Xcode 4 Template [HD]
Sounds like you are using XCode 4, which is not fully compatible with PhoneGap's default settings. Use this link to have PhoneGap generate a compatible project for you:
https://build.phonegap.com/generate
I have downloaded a sample and when I try to run it I get that error, how can I fix it?
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
I'm having major issues linking gdata to a project after upgrading from xcode 3.2.5 to xcode 4. I would like to know if anyone is having similar issues, and what did they do to resolve them. i am using gdata version 1.11 which is the latest on their site. The project works flawlessly on 3.2.5, thanks.
I have created a workspace for my project, and then added the gdata.proj to it. So I do have all the files linked by reference. But project files which include #import "GDataYouTube.h" do not see the file. I get "No Such File or Directory"
Good News... resolved and tested, all working follow these steps...
Open your project in xcode 4 from 3.2
click File -> Save As Workspace
in project navigator on the left, collapse your Project if you see all the files
below your collapsed project, in the empty space right click or control click -> Add Files to...
select the project file you wish to link to, leave Copy items unchecked, click Add
Now you will see 2 collapsed projects in your Project navigator, expand both
Now what I didn't know I had to still do
Drag the files or folders you want from the second project to your main, make sure your Main project target is selected in the options, and I also have group selected then click Finish
You are good to go, you might have some warnings about your second project and its targeted SDK. Fix those by clicking the project name in the Project Navigator -> Build Settings -> Base SDK to 10.6, Deployment Target to 10.5
I downloaded the latest sample code from the Apple developer site and even though I've set the Project settings, I can't build the project.
I have the XCode version 3.2.4 with iOS 4.1 and I get the error:
There is no SDK with the name or path
'iphoneos4.0'
I've changed the value of "Base SDK" to "iOS Device 4.1" found in the Build tab that you get to via "Project" :: "Edit Project Settings" page.
What else should I change to get this project to build? There are no #ifdefs defined to say it can only build on 4.0.
It turns out that I had to go to the Targets item from the Groups and Files pane and change the Base SDK there as well. I thought changing it one place would do it in XCode, but alas, not so.