There is no SDK with the name or path 'iphoneos2.0' - iphone

I keep getting this error.
There is no SDK with the name or path 'iphoneos2.0'
I am running some templates at
http://appsamuck.com/day1.html
I'm running the latest sdk, in the pop up menu (simulator) there is an option iPhone Device 2.0 (missing) (Base SDK)

Then just select another SDK: 3, 3.2 or 4.
Most examples will work, even if they were prepared for SDK 2.

Oh, i have just met this problem last night :) I think your project write in xCode 3.2.2 or earlier but you try to run it on xCode 3.2.3. And you need to tell xCode to run your app in iPhone Simulator with iOS 4 (iPhone running iOS 4 can run iPhone's app write for iOS 3). If that's your problem do some step to slove it:
Select "Project" menu on xCode.
Select "Edit Project Settings" submenu.
Look at line "Base SDK for All Configurations", select iPhone Simulator 4.0 (May be it look like disable but you can select).
Run your project to compile your project.
Good luck :)

Looking at the code here, it's one of the very first iPhone dev tutorials written, and it's evidently not been updated to reflect the current SDK and Xcode versions.
I would suggest starting with a more modern tutorial, then coming back to this once you have the confidence to be able to understand and fix the code.

Go to the project
project> Edit project Setting
Change BASE SDK to the latest IOS
after that
Code Signing Identity: Change it to DON'T CODE SIGN
after doing this some of my applications was working fine but not all of them.

Related

iPhone 5 support with base SDK iOS5.1

Is is possible to submit the app with base SDK iOS5.1 and with Default-568h#2x.png, so that application will not leave an extra black space?
Our normal application is working fine on iPhone5 leaving a black space from top and bottom, but if we just include "Default-568h#2x.png", will it work fine (the view displayed in complete area of iPhone5)?
There are lots of dependencies to support iOS6, so is it possible to submit the app with "Default-568h#2x.png" and base SDK iOS5.1?
It is impossible to submit the iPhone 5 full screen app which is built with Xcode 4.4.1 and iOS 5.1 SDK. I did the same thing to support both old devices of armv6/iOS 3.x and iPhone 5. But I got this reject message from itunesconnect. I think it is the new policy of App Store.
"Invalid Launch Image - You app contains a launch image with a size modifier that is only supported for apps built with the iOS 6.0 SDK or later."
just edit the size of Default-568h#2x.png with the same one of Default#x2.png splash screens, don't rename it, adjust only it size, it's how it worked for me, seems the binary does gets faked, my app it's waiting for the review don't know yet if will be approved.
I do not see any policy from Apple to forbid developers to submit apps based on SDK 5.1. My understanding is that if you develop on SDK 5.1 you should also test your app on iOS 6.
Having said that, iOS 6 SDK provides good features to help developers manage the layout, and Apple surely wants the developers to use the latest.
To avoid "Invalid Launch Image" problem on submitting app with iPhone 5 launch image using XCode 4.4.1, please following these steps:
Archive your App under XCode 4.5
Open Organizer, show your App folder in Finder, enter your App’s Products/Applications folder, copy Info.plist and archived-expanded-entitlements.xcent to your home folder.
Open your Info.plist (~/Info.plist) using XCode, and modify MinimumOSVersion from 4.3 to 4.0
Close XCode 4.5 and open XCode 4.4.1, open your App project and open your Target’s “Build Phrases” tab, add a Run Script, with shell “/bin/sh” and “cp -f ~/Info.plist ~/archived-expanded-entitlements.xcent “${TARGET_BUILD_DIR}/${EXECUTABLE_NAME}.app”
Re-archive your App, and it should pass App Store’s rule checker and in “Waiting for review” soon.
The app I submitted late October got online in early November. Someone said he used XCode 4.3.2 to submit app in the same way. It should be working for XCode 4.*
For more information, please also read this blog article.
I submitted by mid-feb my binary compiled on Xcode3.2.6 and only had the Default.png, my App got rejected due to a bug related to the 4" screens, some stupid sizing junk, fixed it and tested on Xcode4.6/SDK6.1 which requires that 568h#2x.png file, I added that image to my set , still compiled it on 3.2.6 and submitted my fix and it got automatically rejected with the same msg as here.
Then I just pulled that 568 file out and resubmitted hoping that since it went thru about 2 weeks ago it'd get past again, I triple checked my code on sdk6.1, recompiled/ressubmitted and got the same rejection so it seems like they are enforcing that min Xcode version NOW.
BUT .... guess what? I cleaned everything and twice and rebuilt & decided to give it a last shot, resubmitted and it passed!!! I'm on waiting 4 review now.
I've solved that issue the following way: I'm using iOS SDK 5.1 and Xcode 4.4.1.
Now I've added simply the Default-568h#2x.png to the upper folder of my App in Xcode but not with Xcode 4.5.1.
Then I've built the App through iPhone 5.1 Simulator and finally I've quit the Simulator.
Then go to ../users/myNameUser/Library/Application Support/iPhone Simulator/5.1/Applications/... search for your App and Copy the complete folder (e.g. F83221EA-1HB4-4947-9DH4-43D8QZ3FFEA3).
Then go to ../users/myNameUser/Library/Application Support/iPhone Simulator/6.0/Applications/ and paste in the copied folder from the 5.1 Simulator.
Finally open your Applications folder go to your Xcode App (4.5.1) then right click and show package content: Go to ../contents/applications/ and double click "iPhone Simulator.app".
Now you are running the new iPhone Simulator with your iOS SDK 5.1 App. Great job? Now you can change the hardware of the simulator to the new iPhone Retina-4-inch.
And you can see how your App will look like on the new iPhone 5.
I've sent my new App version by that way for review - well see if it'll get through.
(Sent with: Xcode 4.4.1 and iPhone 5 support like described on top)
By the way it could be interesting to run Apps from Xcode 4.4 on real iOS 6 Device?
How to do that: Use iOS 6 device for testing with Xcode 4.4 and iOS 5 SDK

How to display all SDK versions of iphone/ipad in simulator selection list?

I'm unable to choose the lower than 4 version of SDK simulator in the simulator selection list in xcode4. There are iOS SDK 4+ (for iPhone) and iOS SDK 3.2 (for iPad) simulator versions only. I have set IPHONEOS_DEPLOYMENT_TARGET = 3.1 but nothing changes.
In the project editor choose your build target and then choose the summary pane. In the summary pane there is a drop down box where you can choose the deployment target. This may or may not help because it sounds like you're already changing the variable directly in the build settings.
Seems like we need to download and install previous version of Xcode and SDK. All the versions could be found on Apple's developer site. Also, there is one simple instruction that can be found here:
http://iosdevelopertips.com/xcode/download-and-install-older-versions-of-xcode-xcode-previous-releases.html

iPad App Keeps Running as an iPhone App?

I recently upgraded XCode to run iOS 4.2 from iOS 3.2. However, now, when I try to run my iPad app, it appears as an iPhone app in the simulator! It appears as the smaller box with the option to expand 2x. Does anyone know why this would be so?
In addition, although the application builds and runs (albeit incorrectly), XCode still says that the Base SDK is missing. I have gone into the Build Info for the target and the project and set the following:
Base SDK: Latest iOS (currently set to iOS 4.2)
Targeted Device Family: iPad
iOS Deployment Target: iOS 3.2
Edit Thanks a lot for the comments; now there is no longer a Base SDK missing, but unfortunately, the app still runs as an iPhone app...
When I load a UISplitViewController, I get an exception 'UISplitViewController is only supported when running under UIUserInterfaceIdiomPad'.
This all seems very strange to me. Any help is greatly appreciated.
Thanks
The installed app could be broken.
What happens when you delete the app from the Simulator and do a clean build and run?
The Simulator could be broken.
What happens when you create a new different iPad app from an Xcode template?
You configuration could be broken, or you could have different settings for different targets and builds than you want, or the wrong plist or plist keys, or the wrong xib. If the new template app works, compare these one by one.
I eventually was able to fix this problem. I attempted all the methods outlined by the other answerers, but none of them worked. However, when I upgraded to XCode 4, the problem fixed itself.
I honestly don't know what changes to my app were made by this upgrade, and I am still baffled at why the project was not compiling before. I suppose upgrading your environment is one (somewhat unsatisfying) way to fix this sort of bug....
Check that you have set the appropriate settings for the current build target as well as the base project. So from the project menu:
Edit Project Settings
Edit Active Target blah
I have often forgotten to check the settings for the current target and had a similar experience.

how can i run iphone 2.0 in iphone 3.2 sdk

hi i am new to iphone.i am installing the iphone sdk 3.2 with xcode 3.2.when i run the some pre defined examples it shows an error there is no sdk named iphone2.0.If i need to install iphone sdk 2.0 how can i install with out overriding the existing sdk means i need both sdk 2.0 and sdk 3.0. how can i done this pls help me.thank u in advance.
You don't. You always build/compile against the latest SDK. in your case that's 3.2. Just set your deployment target to 2.0 and you will run those devices - that is if you don't rely on features of later versions.
Just as a not: if you plan to submit you app to the AppStore, you must use 4.x and target 3.x minimum.
change the base SDK instead by scrolling down the list on the left in XCode and expand "Targets". Click on the name of the app inside this and press the blue info button at the top in the middle.
Make sure you have the "Build" tab selected and that you choose "All configurations" in the configuration drop down.
Then change the base SDK to 3.2. Its about the 3rd option down I think.
Hope that helps.

Missing Frameworks iOS 4.0

I've just updated xcode to release 4.0. A lot of the frameworks in my App are now highlighted in red, they appear to be missing. i.e. MapKit.framework
Is 4.0 not backward compatible with 3.1.3 ?
Regards,
Stephen
If your project is working with 3.1.3 well, then do the following:
1. In XCode left pane, select your project name, right click (control click) and select "Get Info".
2. In Build tab, change the Base SDK to iPhone Device 4.0 (your latest downloaded SDK)
3. Similarly also repeat above steps after selecting "Project" menu -> Edit active target.
Then close your XCode and restart XCode.
All your frameworks will be available now.
However this change (by itself) will prevent your app from loading on a 3.1.x device. That's because the new setting "iOS Deployment Target" (introduced with the 4.x SDK) will default to the same value as the Base SDK you just set. You have to change this new setting (it's in the "Deployment" group) to the earliest iOS device your app will support.
Now your app will run on any device running that version or later of iOS. But there's a new wrinkle. If you add code to your project that uses classes or methods introduced in 4.x, you'll get no warning of that in the Simulator, yet it will crash when called by your 3.x device. You have to wrap such calls with code that tests the runtime version of the device, and only make the calls if the runtime version supports those calls.
This is all discussed in detail here: Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs, which includes links to discussions of how best to code these runtime checks.