Rasto
Rasto

Reputation: 17774

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).

Upvotes: 0

Views: 1111

Answers (2)

Cihat Gündüz
Cihat Gündüz

Reputation: 21468

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?

Upvotes: 2

Duncan C
Duncan C

Reputation: 131418

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

Upvotes: 3

Related Questions