简体   繁体   English

IOS:xcodebuild命令在Build Settings中禁用bitcode

[英]IOS: xcodebuild command disable bitcode in Build Settings

I want to disable Bitcode in the build settings of a .xcodeproj through terminal commands. 我想通过终端命令在.xcodeproj的构建设置中禁用Bitcode。 I have searched all over but only found commands to build or archive the project from the terminal. 我搜遍了所有但只找到了从终端建立或归档项目的命令。 Can you please give me an example how this command looks like? 能否请举例说明这个命令是什么样的?

Thank you 谢谢

You can list all the keys and values of your project build settings with the command 您可以使用该命令列出项目构建设置的所有键和值

xcodebuild -showBuildSettings

Then find one or more keys you want to override, eg ENABLE_BITCODE. 然后找到一个或多个要覆盖的键,例如ENABLE_BITCODE。 These keys can be included as parameters in the build command like so: 这些键可以作为参数包含在构建命令中,如下所示:

xcodebuild -target <your target> -configuration <your configuration> ENABLE_BITCODE=NO

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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