简体   繁体   中英

Specify individual target build settings with xcodebuild

I have an iOS app that uses Cocoapods, and has a local cocoa touch framework target, and I'm running into an issue with specifying build settings in the command line using xcodebuild .

I understand that you can specify build settings like PROVISIONING_PROFILE , CODE_SIGN_IDENTITY , and DEVELOPMENT_TEAM by appending their key=value pair to the end of the command.

However those setting appear to be applied to the entire project, but I only need them to apply to the app target since touch frameworks cannot be signed.

How do I specify build settings for an individual target using xcodebuild? If it cannot be done using xcodebuild, could this be accomplished using fastlane?

Use schemes. You can set the scheme to build/archive with a particular build configuration and executable.

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