简体   繁体   中英

Different Bundle Identifier for multiple schemas

I've an iOS app with three targets (the app, the watch app and the extension) and it has two different sets of bundle identifiers for enterprise and store configuration ( com.enteprise.mybundleidentifier and com.mybundleidentifier ).

Is there a way to have different values for different schemas without duplicate three targets in six final targets?

May the Bundle Indentifier property use environment variables I can define as a Preprocessor Macros for each configuration?

Yes, you can specify bundle id for different schemas in target's Build Settings -> Packaging -> Product Bundle Identifier

You can also use macros like here https://stackoverflow.com/a/20151432

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