Does an app that made with ios sdk 4 install on device with os 4.2? - iphone

Does an app that made with ios sdk 4 install on device with os 4.2 ?
I made an app with ios sdk 4.0.1 but now i want to install it from xcode on ipod touch with os 4.2 but says No provisioned iPhone OS device is connected.

Yes. You can run Applications for previous versions of iOS on a device with iOS 4.2.
The other way around might not be true: you may not be able to run applications compiled specifically for iOS 4.2 on devices with previous versions of iOS.
Keep in mind that with iOS 4.2 SDK you CAN create applications for devices running lower version of iOS also. It depends on how you configure your project on info.plist and the APIs you use in your application.

Yes. There might be few cases of incompatibility, but they are very rare.
Edit: And in most cases, apps build against 4.2 will run on 4.0 just fine, if they use the new stuff wisely.

In almost all circumstances your app should run. It's very unlikely for it to produce any errors.

Related

Testing on jailbroken brand-new iOS device - using Xcode?

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

How to get iOS simulator running iOS 3.0?

I am currently using xcode 4 and the iOS 4.3 SDK and I need to test my app in the simulator using the 3.0 OS but the earliest I can get is the iPad 3.2 OS.
How can I get the simulator to run older versions of the iPhone OS?
AFAIK you can't. You'd have to be using an earlier iOS SDK version (and FYI, you can have multiple SDKs installed on your machine - just move them to a different folder when you're installing a new one).
See this question for more details.

''Install Prohibited" iphone SDK

I am a registered Apple dev with the certificates, and mobileprofiles that i need. I have made several apps in xCode that I would like to test on my 3GS, I have registered my 3GS as one of my allowed devices but it still will not install giving the install prohibited error. The Xcode is set to same profile as my iphone has. Just dont kmow what to do. well i guess i =ll download sdk 4.1
You will get this exact message if Restrictions are enabled on the device, specifically the restriction on installing Apps.
You need to upgrade your SDK to 4.0.1 to use it with iOS 4.0.1 devices.
Is the iPhone OS Deployment Target in your Build Settings (either for the project or for the target) set for an OS version higher than the one on your 3GS?

Testing iPhone app on older OS versions in Xcode

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.

How to make my iPhone app compatible with iOS 4?

My iphoneos 3.1 based application is not working on iOS 4 GM: the camera is not showing in full screen, it doesn't correctly detects compass information, the uiwebviews doesn't respond to touches (they don't scroll), and so on. It's completely broken! Now my question is: how can I develop an update using the latest xcode with support for ios 4? The latest iOS 4 xcode (3.2.3) doesn't provide any way to develop for iPhoneOS 3.x ("base sdk missing"). By the other side, xcode 3.2.2 would not allow me to debug it on a iOS 4 device, so I can't test it.
In Xcode, you can use a later base SDK while targeting an earlier version.
Go into your project settings and set iPhone OS Deployment Target to an earlier version, such as "iPhone OS 3.1".
I would create a second disk partition and install the 4.0 version of xcode on that. Keep the 3.2 version on your primary drive.
Its probably not necessary to create a second disk partition but it was simple to do.
Install the 4.0 sdk under a different folder and then re-install the 3.2 sdk and develop in that.