Few days back i upgrade to 10.6 and have to install everything from start. So i downloaded new sdk and install it but problem it has simulator above 3.0! But sometimes i have to test things in 2.0 onward, so how i can do this? How i can install 2.0, 2.2 and 2.2.1 simulator now?
I did some research to find the answer to my question (link text) but it's sound similar. If you have access to Apple DevForums this is the link to thread Simulator 2.2.1 no longer available in SDK 3.2.1?
The main point of this thread is "The Simulator is not appropriate (nor has it ever been) for this kind of old-OS regression testing. Remember, the Simulator is not an emulator, has no OS, and doesn't accurately reflect the environment that your code will be running in."
And there is no any workaround to install Simulator 2.2.1 and lower to Snow Leopard.
Related
OK. So, here's some details on my situation :
I've got a brand-new iPhone 4.
The iOS version has been updated to 5.1.1 (9B206).
The phone has been jailbroken using redsn0w.
I'm running Lion (10.7.4) and Xcode 4.3.
Now, my issue :
I'm creating a sample test app, which runs fine under the simulator.
Followed everything here, but without any result.
Also tried enabling my device via Organizer ("Use as development device").
When I click on "Use as development device", it keeps saying...
The version of iOS on “Dr.Kameleon’s iPhone” does not match any of the
versions of iOS supported for development with 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 Dr.Kameleon’s iPhone
5.1.1 (9B206)
Xcode Supported iOS Versions Latest
5.0 (9A334)
4.3
4.2
While, when I try running on my "iOS device" (that's how it appears), it claims there's no device with a proper iOS version.
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.
Any ideas? What's going wrong?
Look, everyone who says you can't build directly on a jailbroken device is wrong. You can, and it's quite easy to do. If you don't have a provisioned device (and it looks like you don't), using this guide will work. I've tested it myself on Lion running Xcode 4.3 (it even works on later versions, but those are under NDA).
The real issue seems to be that, for whatever reason, you don't have the iOS 5.1 SDK - you're using the iOS 5.0 SDK. You can confirm this by looking in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport. If you don't see any mention of 5.1, you don't have it installed. Try downloading and installing Xcode again (I believe it's 4.3.2 now), which should have the iOS 5.1 SDK bundled with it.
This error is not due to the jailbroken iPhone, its basically due to your lower version of Xcode which doesn't support the latest iOS, try upgrading your Xcode version to latest.hope it helps
I wanted to understand the things involved in iPhone app submission in terms of software requirements (not the steps to submit it on Apple iTunes Connect)
When we download the IOS SDK, is XCode included in that ? If yes, what are the latest versions and approx size of them?
When we develop the app and are ready to submit (say as of today), is it necassary to have a particluar (or rather the latest) version of IOS SDK or XCode installed on our system ?
Are there any specific OS X requirements (I mean if Snow Leopard and above is fine) ?
Everything is detailed on the iOS Dev Center (you may need to log in to have the details):
When you download Xcode (or more precisely the "Developer Tools" package), it includes Xcode and a lot of other tools (Instruments, gcc, gdb, llvm, lldb, the iOS Simulator, ...) and also the latest version of the MacOS and iOS SDKs too.
The version and size are mentionned on the download page too (version of Xcode, of the iOS SDK, of the Mac SDK,... everything). Right now (oct. '11) it is Xcode 4.2, iOS 5.0 SDK and OSX 10.7 SDK. Everything come in one package (1.65Go for the latest version as of today) except the documentation, which is downloaded automatically by Xcode itself (unless disabled) in the background.
For the requirements, it is also described in the iOS Dev Center: Xcode4 is available for both Snow Leopard (on the iOS Dev Center) and Lion (via the Mac AppStore) right now.
When you submit your app, you normally should always submit it using the latest SDK (1). [EDIT after #progrmr comment] except of course for beta versions of the SDK. Alsways submit with the latest "release"/public SDK version]
Note that using the latest SDK does not mean that you need to stop supporting and testing for previous iOS versions. You can use the iOS 5.0 SDK and publish an app that is running on iOS4.x for example (and of course it is better if it still works on iOS5.x too); ascendant compatibility is generally guaranteed, unless specified for specific methods (see the "SDK Compatibility Programming Guide" in the Apple Doc for more info).
(1) It is generally accepted if you submit with the SDK version just before the latest if it is not too old, Apple let you some time to migrate, but this is generally just a transition phase. It is advised and a good practice to migrate to the latest SDK when it is available -- or not too late after that.
XCode 4.2 is about 1.8gb, and that doesn't include documentation - when you first load XCode it tries to download something like 2-2.5gb of docs in the background. You have to both cancel the download and the auto update check to avoid that (but auto updating docs is cool).
I don't recall any requirement to use the latest and greatest, you can still download XCode 3 with iOS SDK 4.3 from the archives. But I can't say for sure, I always run the latest (I find upgrading to new XCode releases is generally a good idea).
XCode is available for Snow Leopard once you buy the $99/yr iOS developer subscription, the mac app store has it but only for Lion. The advantage of the MAS version is you can play with the SDK and making basic apps for free, just not run code on your iOS device.
All,
Is there a way to download older versions of the iPhone simulator to test an application with an older version of the iPhone OS? I'm running Xcode 3.2.2. and it only has iPhone OS 3.1.3 and I need to test on 3.1.2.
Thanks in advance
Head to
http://connect.apple.com
Click "Developer Tools" on the right
You can get all the way back to Xcode 1.0 if you like
I've been trying to do the same thing. The answer seems to be rather unsatisfying: You cannot use the simulator to test if your app runs on a previous iOS version. It only works on the device, according to Apple:
iPhone OS Note: Mac OS X v10.6 does
not support using iPhone Simulator
SDKs prior to version 3.0. In
addition, when building with the
simulator SDKs, the binary runs only
on the same OS version as the SDK, not
on earlier or later versions.
This seems really dull. How am I supposed to test backwards compatibility without having one physical iPhone for each SDK version? Not good.
Earlier this week I was developing to the device just fine. I upgraded itunes to the latest version (9.0.2 (25)) and I noticed that Organizer was throwing the:
The version of iPhone OS on “sk’s
iPhone” does not match any of the
versions of iPhone OS supported for
development
So I figured I'd upgrade to the newest XCode in hopes that it would solve the problem. Well, it didn't - After an upgrade to Xcode 3.2.2 Organizer is still throwing the error and not letting me build to the device.
Image of the exact error message: http://mr-sk.com/iphone/organizer.png
Edit: I installed the 3.2 SDK - Apparently I missed out on the 3.1.3 SDK - any idea how to fix this?
Side note: This ALWAYS seems to happen to me - every time I upgrade. Last time I believed it was fixed by some random terminal command (sym linking a path? - I can't recall) but it's a PITA that this never, ever, seems to work smoothly.
Thanks!
You installed 3.1.3 on your phone, but did not get the updated 3.1.3 SDK.
Install the latest 3.1.3 SDK recently released from Apple. Then, to develop for iPad, install the 3.2 SDK Beta to a different location in the installer. This will allow you to use the official version now, and still play with the beta version with the iPad simulator.
In this answer Brian explained how to connect Shark with the device. I do it exactly this way, but Shark never lists my device. Even if Xcode launches my app on it and the app runs. I get console Logs and everything. It communicates with the mac. But Shark doesn't see it. What could cause this? Snow Leopard, btw...
https://stackoverflow.com/questions/1617677/what-can-i-do-when-shark-does-not-find-my-device
solved the problem for me. The device was running iPhone OS 2.2. It worked until I upgraded to Snow Leopard.
I also had to reinstall CHUD tools from the SDK 2.2 package as well (despite having reinstalled them from the CHUD 4.6 package). Then Xcode could not find the device until I rebooted it too.