Simulator iOS 4.2 - ios

Is it possible to test an app using the old simulator 4.2 or 4.0?
I downloaded the simulator 4.3 and the "device debugging support iOS 4.9-4.1" from Xcode, clicking on "more simulators", but this only allows me to test on a real device mounting 4.0 or 4.1 that I don't have.

Older versions of the simulator are no longer supported. The Apple stance seems to be if you want to support iOS <4.3 then you need to test on a device, or run an older version of XCode on an older version of OS X.

Related

How can Delphi be used to develop iOS apps if the iOS devices are running the latest iOS version?

The idea of using Delphi to develop a mobile app is appealing to us because we can do Android, iOS and Windows without duplicating work. Delphi is also a language that we are familiar with. However after trying to get a simple test app running on an iPad, I do not think it is actually realistic. Here are my observations:
The iPad is running iOS 12.0.1 (and iOS 12.1 is already downloaded and ready to install).
Xcode, which runs on the mac, is used by Delphi for building apps and deploying them to the test target. Each Xcode version supports exactly one iOS SDK version and is the Xcode version plus 2. My old Mac is currently running xcode 8.2.1 so that corresponds to iOS SDK 10.2, which should run on iOS 10.2 and higher.
Delphi Tokyo supports iOS SDK versions from 8.0 up to 11.3 (so Xcode 6 to 9). It will not compile apps using SDK 12. The Xcode version running on the mac fits squarely within this range of versions.
It appears that Xcode is not able to properly support iOS versions that are newer than itself. When trying to run the application it errors out with "unable to location DeviceSupport directory for the connected device. Please check Xcode installation path and run Xcode devices". Under "Devices" the following is displayed for the iPad: "This iPad mini2 is running iOS 12.0.1, which may not be supported by this version of Xcode".
So, it would appear that the latest Xcode version is required to support the iPad running iOS 12.x but that means that Delphi cannot compile for it because it only goes up to SDK 11.3 and not 12. I do not think it is possible or sensible to downgrade the iPad iOS. Also even if we get a Delphi version that works, the next iOS update will require a new Xcode and therefore a new Delphi version that isn't even available. When the new Delphi version is finally available it will already be obsolete since iOS will have already moved on.
Please correct me where I am wrong. Because this cannot surely be the state of things.

upgrading to latest ios sdk with ipad1 and ipad2

I have xcode 4.5.2 and iOS 6.0 sdk. I have been using my ipad 1 device for testing my app (building for ios5.0). I also have access to my daughters ipad 2 and want to test my app with this. The problem is when I use xcode organizer "use device for development" it says the device has software version 6.1.x and to use it I would need to upgrade to the latest version of IOS/xcode.
So my question is, what does this mean for testing on my ipad 1? Will I lose support for ios5.0? I'm afraid to download and install, for fear that I will lose this and won't be able to go back.
FYI, currently in xcode I can deploy to targets using 4.3, 5.0, 5.1 and 6.0. Can anyone with the latest xcode/ios tell me what's available in the deployment target drop down?
Sorry for the lame question...please don't flame me : )
Check in left-up side of screen select xcode>preference>download and see their SDK version iOS 6.0.1 available if not than you have to upgrade your xcode to xcode 4.6 and than you can redownload previous SDK from xcode>preference>download.
See here i have xcode 4.6 and supporting SDK from 4.3,5.0,5.1,6.0, and 6.1

Can I write an iOS app with OSX 10.5?

I'm trying to write an app for my own use on my iPhone (iOS 6.0). Unfortunately I'm also traveling with my OSX 10.5 laptop with Xcode 3.1.4 loaded. Is there any way to run an app built with this xcode on my iPhone? I don't need any feature from a recent iOS and there are plenty of old apps that run just fine and were probably developed with old Xcode versions, but I always get an amber button indicating the iPhone iOS isn't supported when I hit build and run.
The oldest version of xcode that can develop for iOS 6 is xcode 4.5, and for running xcode 4.5 you need to have MAC OS 10.7.4 or later version
Sorry man, You can't.
You need Xcode4 and Lion for iOS6 development.
EDIT:
Now(2014 AD) Apple doesn't allow any app developed using below Xcode 5, so you need to have Xcode 5.
No. To develop for a modern iPhone, you need an Intel mac, and I doubt that a laptop with 10.5 is an Intel Mac (or that 10.5 even supports x86). Also, Xcode versions are correlated to API versions, if you haven't noticed, so even if possible, you'd probably only be able to use the 3.0 APIs, which are now not even usable because of the multitasking introduced in 4.0.
Short answer: No.

IOS: test app old device

When I create an app I want to test my app on old devices (i.e. iOS 3.0).
Can I set up the simulator with older versions of iOS to test my app?
You can change the hardware the iOS simulator simulates, but only if you have the old version of the SDK installed. You can do this by choosing the menu Hardware -> Version and then the 3.x version you want.
Please note this is not the recommended way! The simulator is nice for quickly testing some new features, but the simulator has bugs and other major differences. So test your App always on a iOS 3 device.
Get a first generation iPhone to test on or grab an iPhone 3G and downgrade it to iPhone OS 3. It's not supported by Apple, but Google will help you on downgrading an iPhone to OS 3.
You can change the version in the iOS Simulator.
Hardware -> Version -> []

Test iOS app with device of iOS 5.0.1 beta version

Now, I use Xcode 4.2 supporting iOS 5.0. Apple has just released iOS 5.0.1 beta 2. I can install it on my iPhone.
I want to test with this beta version, i.e build code from Xcode.
How do I build code from Xcode 4.2 for device of iOS 5.0.1 beta?
Please help
In exactly the same way that you would do so for iOS 5.0. We can't talk about beta versions of the software, but we can talk about what happens when newer versions of iOS are released. When you connect a device with a newer version of iOS installed, the Xcode Organizer will give you a message like:
Xcode does not have debugging information for the version of iOS on the device named “Dev iPhone”. Xcode can collect debugging data from the device to enable development with this version of iOS. This process only needs to be done once per iOS version, and will take several minutes.
You simply click OK or similar, and Xcode downloads the necessary debugging data. You can then build to the device from Xcode and use all the debugging tools as usual. This process works for point releases. It is highly unlikely this would work for major updates (e.g. if iOS 6 was released) and it may or may not work for iOS 5.1, depending on the changes included. But when Apple have not released a new version of Xcode to developers, you can be sure it is because one is not required.
It is important to understand the distinction between an updated version of iOS (for the device) and the iOS SDK (for Xcode). A point release of iOS does not necessarily require any change to the iOS SDK, and therefore with Xcode's ability now to download the debugging information on demand (a feature that has been around for a while), you don't necessarily need an updated version of Xcode. Likewise, with Xcode 4.2 you still set the iOS 5.0 as your base SDK even if you are setting an earlier version (e.g. iOS 4.2) as your deployment target. You don't need the iOS SDK v4.2 to target iOS 4.2 for deployment. (Just make sure you add back "armv6" to targeted architectures in your build settings, if you still want to support the iPhone 3G and equivalent iPods, as in Xcode 4.2 this is not included by default.)

Resources