iOS5 - Setting the deployment target and building - deployment

I'm using iOS5 GM Seed and created an application using "story board" concept. Now I want to distribute the app to app store and want to set the deployment target to iOS4.2
The app when tested in simulator, its working fine.
When I'm building it for iOS device using development profile to test on device, its giving error: "Story boards are unavailable on iOS 4.3 and prior"
How to resolve this issue and make my app run on ios4.2 as well.

I ran into the same issue today using XCode 4.2. Here is what I did to get it to build correctly:
Set Deployment and Build options back to 5.0.
Clean the project.
Close the project.
Quit XCode.
Restart XCode.
Debug / Build the project.

Since Apple has officially release the XCode 4.2 :
Try closing the project and reopening it after switching to device from simulator.
Worked for me.

I made it work! I do not know how it happened but in build settings, iOS deployment target settings was iOS 4.2 and that is why i got this issue. I set it back to iOS5.0 and nothing more required. It just got to work.

You officially can't do it - Storyboards are supported in iOS 5 and later and are enabled by default for new projects. If your app must run on earlier versions of iOS, though, you cannot use storyboards and should continue to use nib files

Related

iPhone app builds to simulator, won't build to device

Update 2
One of my other targets builds fine to device... looking at the difference in dependencies now.
================
Update
I have now installed new Xcode on a different computer, and I get the same result.
================
I have an app that builds OK to the simulator, but when I build to any device, it fails, and gives no errors.
When I look at the Log Navigator, I see this message:
Build operation failed without specifying any errors. Individual build tasks may have failed for unknown reasons. Some of these (up to 12) may be listed below.
That is the only error I see. I just installed XCode on this new computer, and it is XCode 4.5, including the iOS6 SDK. My partner is able to build the app just fine to the same devices, but she is on an older version of XCode, without iOS6.
You need to have iOS6 installed on your device to put apps in it. Do you have iOS6 GM on your device?
Make sure your device is on the latest version of iOS i.e iOS6.
I needed to update multiple frameworks I depended on.
I was still on Xcode 4.5.2 when I got this error. Two computer restarts fixed my problem.

Xcode won't detect device

I'm having a bit of an issue testing my app using my iPhone. Last week I upgraded to Xcode 4.3. I was able to test my apps on my iPhone (which was running iOS 4.3). Today I upgraded my iPhone to iOS 5.1 and now Xcode wont detect my iPhone (btw SDK is 5.1).
I'm not too sure what to do, I've even tried changing the Deployment target in Xcode back down to 4.3, but still nothing.
Make sure the device is "Enabled for development" under Organizer in Xcode. I've seen cases, where Xcode doesn't recognise the device, because it wasn't setup to be a development device.
I had this problem but my device was already enabled for development. Here are the steps I took to get it working.
If you want to cheat, try the last step. That's what got it working for me!
Try restarting both Xcode and the device. Separately.
Make sure you're using the latest iOS SDK under Base SDK (in Targets / Projects > Build Settings) and that it's a greater version that what's running on your device
Check Project > Build Settings > iOS Deployment Target is less or equal to what's on your device.
It turned out, when I'd created a new project, it had chosen an iOS Deployment Target greater than my device version.

Deployment Target in ios

Using Xcode 4.2, I created an app with deployment target set as 3.2. I was able to install the app on an iPad with iOS5. But when I tried to install the app in iPhone 3G with iOS4.2, it is not installing properly.It shows "Build Succeed" and immediately shows "finished running in iPhone", but not getting installed. It is working fine in all simulators. I tried installing the file by creating app.ipa file, and dragging it to iTunes, but it is showing that it is not compatible with the iPhone. Does anyone have any ideas on how to help, or test this situation properly? Thanks a lot!
deployment target as 3.2 is iPad. I could not recall any iPhone OS version as 3.2 . It was 3.1.3 later on it was 4.0(iPhone) release with 3.2 (iPad).
I'm sure if you set your deployment target as 4.0, it will work.
best of luck..!!

Xcode 4.2 Lion not installing / running project on older devices. iPhone 3G 4.2.1

XCode 4.2 Build 4D199 on Lion with iPhone 3G IOS 4.2.1
Project with Base SDK 5.0 and Target 4.2.
On this phone and on older iTouch the debugger never seems to startup. After pushing RUN the project compiles and then the Debug entry is in the Log Navigator with the Spinner Running. The spinner never stops and the app does not get loaded on the iPhone 3G.
Any clues on how to fix. This was working fine before the Lion Upgrade.
Need to test the older devices. Newer devices seem to work fine.
Device seems to be provisioned fine, etc.
Probably because armv6 is missing from the architectures for the Target.
Click on your Project in Xcode, then click on the Target. Double-click on 'Architectures', and delete what's current there - probably something like $(ARCHS_STANDARD_32_BIT) - using the '-' button. Next, click on the '+' button and add 'armv7', then add 'armv6'.
Hopefully, that should help.
I found when I would start a new project in xCode 4.2 (Build 4D199) it would not build to my iPod touch running 4.2.1. While I did have to set my architectures to include armv6, that alone did not do it.
In my project's Info.plist file xCode had set "Required device capabilities" to include 'armv7'. I removed that now everything is working fine.
I hope this helps someone else.

iPhone: iOS 4.3 SDK Simulators stuck up and crashing:

I have updated my Mac to 10.6.7 with Xcode 4. I am trying to build and run some projects which has downloaded from Internet. I set the deployment target as 4.1/4.2/4.3 and device family as 'iPhone' and trying to build and run the application in Simulator. For ex: i downloaded a project from the following link from GitHub:
http://www.icodeblog.com/2010/10/07/cloning-uiimagepickercontroller-using-the-assets-library-framework/
I set the deployment target as 4.1 or 4.2 or 4.3 and device family as 'iPhone' and trying to build and run the application in Simulator. But Simulator launches and stuck up infinitely. I had to do force quit of simulator, i checked so many times, but the same result. But at the same time, i'm able to build and run some other my projects without any issues. This is happening only for few projects when i run.
What could be the reason here? Is there any settings that i need to make-up?
Please advise me.
Thank you in Advance!
Trash your /Users/{Your name}/Library/Application Support/iPhone Simulator/ directory and rebuild the projects you are having trouble with.
#Kirby Todd Answer perfectly correct with a small change
notifications doesn't show/ doesn't scheduled in Simulator but works in device Problm on Simulator 4.3?
Make Sure we put a copy of "User's" folder existed in iPhone Simulator folder
Thank U #Kirby Todd