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,开发者_StackOverflow社区 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
精彩评论