Sorry, maybe I did't talk clear, I want to say even if I do not use iOS6 new features, i can compile for iOS6 Simulator, but when I try to compile for my iPad with iOS5, I got compile error, so that I ask this Q.Nope, you have to check in code on what device you are, and make your code depend on that..
...but when I try to compile for my iPad with iOS5, I got compile error...
I just want to know if I have to build two versions app for both iOS5 and iOS6?
ld: file is universal (3 slices) but does not contain a(n) armv7s slice:What compile-time error?
ld: file is universal (3 slices) but does not contain a(n) armv7s slice:
Sounds like the compile-time error I get from my AdMob library. I believe you'll need to wait for Google to update their libGoogleAdMobAds.a
We've recently received questions about iOS6 compatibility with the Google AdMob SDK.
The latest iOS AdMob SDK's (6.1.4 and 6.1.5) should work fine on an iPhone 5 with iOS 6 if you aren't compiling for the armv7s architecture. Your application will just run with black bars at the top and bottom of your application in this case.
For developers looking to utilize the entire screen of the iPhone 5, we will be releasing a binary that supports the armv7s architecture in the coming days. This is a high prioirty for us and we'll update this forum with details soon.
The latest iOS AdMob SDK's (6.1.4 and 6.1.5) should work fine on an iPhone 5 with iOS 6 if you aren't compiling for the armv7s architecture. Your application will just run with black bars at the top and bottom of your application in this case.
Thanks, I also got this message, we have to wait...Just an update from Google on this AdMob SDK for iOS 6 matter:
https://groups.google.com/forum/?fromgroups=#!topic/google-admob-ads-sdk/9Wub-gh9rf8
Hmm. So apps that aren't built for armv7s get black-barred? Even if you have a Default-568h@2x LaunchImageFile?
No, I'm pretty sure if you have the Default-568h@2x image, you won't get letterboxed. I believe this is how the detection is being done. Seems a little wonky to base this on the presence of a specifically-named image (universal apps don't work like this), so hopefully Apple will come up with a better method in the future.