Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

although ios 6.1 as base sdk xcode 5 build ipa for ios 7

i changed the base sdk for iOS 6.1 in xcode 5 .

When i simulate my project on a iOS 6.1 simulator or on a iOS 6.1 device all works fine. But when i build a ipa and install it on a iOS 7 device the device use the iOS 7 sdk and my hole app looks weird. I changed my base sdk for iOS 6.1, so why use my device the iOS 7 sdk?

I read that iOS 7 use the iOS 6.1 sdk for old published apps. What do i have to do that iOS 7 also do that for my app? My only idea is to install xcode 4 again...

like image 581
bluerob Avatar asked Oct 03 '13 13:10

bluerob


2 Answers

I have experienced the same problem - unfortunately only discovered AFTER submitting to the app store and the app being approved and released, causing all sorts of mayhem due to interface glitches.

The issue occurs due to a bug in XCode 5 (including in XCode 5.0.2 it seems) that is triggered when you install older SDKs.

When you have multiple SDKs installed, you will see that when you connect your device to XCode, there are multiple entries for your device, with no way to tell them apart. But it appears that the TOP entry is for the OLDEST SDK you have installed, the BOTTOM one for the NEWEST SDK.

I have found that if I first use "Test" project option to run the app on the device with the SDK I want to use (in my case the top entry, which is for iOS6.1 SDK), then that is the SDK that will subsequently be used when I archive the app.

like image 171
Graham Dawson Avatar answered Nov 20 '22 02:11

Graham Dawson


You can have both xcode 5 and 4.6.3 installed.

Also a lot of post say that in the simulator it look iOS7 but on device it will look iOS6.1 if you set the base sdk to 6.1

see:

Is it possible to install iOS 6 SDK on Xcode 5?

Do apple allow custom iOS 5/6 style UI for iOS7?

like image 32
malaba Avatar answered Nov 20 '22 00:11

malaba