new to iOS - not able to download and run project - iphone

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.

Related

How can I make my xcode project automatically select the correct Xcode version when I double click on it?

I have multiple versions of XCode installed on my MAC. When I install a new version of the SDK, I noticed that I can't no longer double-click on the project file for the newer version of XCode to launch the project. I have to constantly do a right-click and then select the newer Xcode version. (multiple versions now show up when I do a right click). I thought maybe once I right-click selected the newer Xcode app once, it would remember, but it does not. Is there a way to make it so that my project will ALWAYS launch with the newest XCode when I double-click..or must I constantly do a right-click and select the right Xcode version?
Right-click on your project and choose Get Info, then where it says Open With, choose the correct version of Xcode you want to open it. This may not be the official way, but it will work as expected. Also, doing it this way, and clicking on the Change All... button will change all of your Xcode projects to open with the one you selected.
Do a right click on your .xcodeproj file. Then select the "Open With" option.
Then select "Other" and navigate to the path the the specific version of Xcode you want to be selected automatically for this project. You will need to navigate to the correct xcode.app file. To help you find the right file, note that when you do a default install of Xcode, it gets put into the Macintosh HD->Developer->Applications folder. However, if you have installed multiple versions of Xcode, navigate to the specific version you have installed and then select the appropriate Xcode.app file. Make sure you select "Always Open With" in the window you are using to select the app.
Once you do this, you can finally double click on the project and the correct Xcode version will now launch.
Is there any reason to have to old version on your MAC still?

I have installed phoneGap lib but am unable to run the app

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

Error in Build - Missing SDK

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.

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?
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

TableSearch sample and error: "There is no SDK with the name or path 'iphoneos4.0'"

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.