I have a device with iOS 5.0, and I am trying to install my app with XCode 4.0, but even the version 4.1 that is on developers.apple mentions that it only supports SDK 4.3 which is what I am developing with at the moment and is the latest version for XCode, how can I build for SDK 5.0?.
you must accept the "Updated Program License Agreement" and you can then access to the "iOS SDK GM seed" to download XCode 4.2
You cant build it straight to your device but you can use ad hoc and then install it on your iOS 5 device
Related
I'm trying to test my app on an iPhone 4s, but I'm getting this error:
"No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination."
Note that:
The 4s has version 7.1 Beta2 of iOS installed
The iOS deployment target is set to version 7.0
The device has valid development profiles installed
I'm using the latest Xcode 5.0.2
At Xcode > Window > Organizer, I got this message:
"The version of iOS on “my device name” is not supported by this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK; which is available here.
OS Installed on 'my device name'
7.1 (11D5115d)"
Thank you very much for any suggestions.
To install apps onto a device running a developer preview OS, you'll also need to get the latest Xcode developer preview (from http://developer.apple.com/ios ) and build and install with that.
I have an ipad device with 5.1 OS and am trying to run a 5.0 base SDK app on this device.
here's my error:
thanks for any help.
I believe from your screenshot that you are running Xcode 4.2 with the iOS 5.0 SDK, in order to deploy to devices running iOS 5.1 you will need to upgrade to the latest version of Xcode (4.3.2) which has the iOS 5.1 SDK and will allow you to deploy your build to a 5.1 device. This upgrade will require OS X 10.7 Lion. Even though you are targeting a version of iOS supported by your version of Xcode, you can not deploy to devices running a newer version of iOS than your SDK supports.
(Lion upgrade alternative https://stackoverflow.com/a/9621226/716216)
Your device UDID is not added in the developer profile you are currently using.
Go to the developer portal, add the device to your account, add it to your development profile, download the profile again, install it and use the new profile to test the build with.
i thnk you have selected the device as target, and your ipad is not properly attatched to it. if it attched, xcode will show ipad's name
more over. make sure device is added to provisioning profile u'r using
I've been developing an app, which is ready to be sent to verification at Apple.
I've been beta testing 5.1, so both my Xcode and iPhone is configured with SDK 5.1 and so is my app.
Apple do not accept apps with 5.1 right now, so is there an easy way to downgrade the SDK to 5.0? I've tried editing the value of "Base SDK" but only 5.1 shows up.
Unfortunately you'll have uninstall Xcode and iOS SDK an reinstall 5.0 downloaded from apple.
you can use this command:
sudo /Developer/Library/uninstall-devtools –mode=all
You can just download and install XCode 4.2 with iOS 5.0 separately in a different location on your mac as well.
I have an iPhone running the 3.1.2 firmware and would like to build applications for it. However, I can't find Xcode 3.2.1 with the iPhone OS 3.1.2 SDK at Apple's developer site.
How can I build an application using the current SDK and Xcode versions that will run on this older OS version?
Use the current tools and SDK. Set the "Base SDK" build setting to "Latest iOS" and set the "iOS Deployment Target" to whatever version you want to target, such as iOS 3.1.2.
The only gotcha here is that the compiler won't warn you if you use something from the SDK that was introduced after iOS 3.1.2, and if you do your app will likely crash. So, you'll want to check the docs for each method you use that you don't already know for certain is available in 3.1.2, and you should test your app thoroughly.
Unless there is some unmentioned reason you need the older version, you can use the latest Xcode and just target the build for the old iOS.
If you are a member of the Apple Developer Program (which you need to be in order to download any version of the Xcode and iOS SDK), you can download Xcode 3.2.6 w/ iOS SDK from the main 4.3 from the iOS Dev Center home page. Under the section for Xcode 4, there's a small line saying "Looking for Xcode 3? Download", which takes you to this download page.
Of course, that still requires you to develop using the 4.3 SDK, so you have to be carefull when targeting 3.1.2 devices.
You can purchase Xcode using the Mac-App-Store or by subscribing to the iPhone Developer Program ($99 per year).
Get the latest one (XCode with iOS SDK 4.3) and select 3.1.2 for the deployment iOS Version (under build-settings).
I installed the iOS 4 SDK yesterday. I previously had the 3.1.2, 3.1.3 and 3.2 SDKs installed. Since installing the iOS 4 SDK, I only have 3.2 and 4.0 available in Xcode. When I load an Xcode project that was targeting an older version (say 3.1.2), it says "Base SDK Missing" in the toolbar.
I've been able to reset the project to target iOS 4 instead - and have successfully built. However, I need to do some ad hoc builds for users who may not have iOS 4 installed on their devices yet. If I give them a build that was done for iOS 4 (not using any iOS 4 features - it's the same code I used to build with 3.1.2), will this execute on their device ok?
Unfortunately I don't have any non-upgraded devices to test this on myself!
Thanks,
John
To target older iPhone OS's with the new iOS 4 SDK, Select your XCode project -> Get Info, and then select "iPhone Device 4.0" as the Base SDK, and then select the lowest iPhone OS version from iPhone OS Deployment Target that you need to support with your ad hoc app.
You needed to install XCode beta to an alternative folder /DeveloperBeta (for example) and use the stable xcode for older SDK builds.
You can still do that actually.