Xamarin.iOS Target iOS 6 SDK

2019-07-01 10:30发布

问题:

We have upgraded to XCode 5 and Xamarin.iOS 7.x, but have one app we are not quite ready to support iOS 7 for yet.

Is there a way to target the iOS 6.0 SDK, and compile the app so that it has the old iOS 6 keyboard, etc.?

We tried changing the settings in iOS Build->SDK Version, and we can change it when targeting the simulator, but the option doesn't exist for AhHoc or AppStore builds.

Any ideas?

回答1:

Xcode ships with several simulator SDK but only one device SDK. So you need to install an older version of Xcode. E.g. installing Xcode 4.6 will give you the 6.1 SDK).

Both versions can coexists side-by-side if you rename the existing one before installing the 2nd.

Be sure to have XS points to the Xcode you want to use (it's not a project specific setting).