简体   繁体   中英

Use different Info.plist file for different iOS versions?

I would like to use 2 diffrent Info.plist files - one for iOS 8 and another one for iOS 9. Is it possible?

Specifically, I would like to set plist value of RequestsOpenAccess under NSExtensionAttributes to true on iOS 8 and to false on iOS 9. How can I do that?

Please note: While questions asking for the same exists answers generally recommend using mechanism other than plist to differenciate between versions. I do not think that could be applied in my case (I would be happy if somebody proves me wrong).

No, it's not possible. You would have to build and distribute two separate apps, as @Dschee says in his comment.

What about you configure your target to one of the two (say iOS 9 ), then duplicate it , change the second target up to use iOS 8 and also change its Info.plist file path in the build settings?

This way you can configure two separate .plist files for two separate targets. You would then also need to deploy two separate apps though.

Would this solve your problem?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM