Reputation: 15894
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.
Upvotes: 5
Views: 5550
Reputation: 17969
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
Upvotes: 0
Reputation: 2528
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.
Upvotes: 0
Reputation: 850
I ran into the same issue today using XCode 4.2. Here is what I did to get it to build correctly:
Upvotes: 4
Reputation: 46
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.
Upvotes: 3