设置xcode“构建设置"从终端? [英] Set xcode "build setting" from terminal?

查看:57
本文介绍了设置xcode“构建设置"从终端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论如何,我可以在不打开 xcode 的情况下更改 xcode 中的设置吗?我有一个自动化的 xcodebuild/xcrun 进程正在进行,但我需要更改 1 个值:

Is there anyway that I can change a setting in xcode without opening xcode? I have an automated xcodebuild / xcrun process going on but I need to change 1 value:

目标 > 选择您的目标 > 构建设置 > 代码签名资源规则路径添加 :$(SDKROOT)/ResourceRules.plist

Targets > Select your target > Build Settings > Code Signing Resource Rules Path add : $(SDKROOT)/ResourceRules.plist

我找不到可以放置此行的任何文件...

I can't find any file where I might put this line...

推荐答案

你能做的就是运行:

xcodebuild -target <target> -configuration <configuration> -showBuildSettings

此命令显示为targetconfiguration 填写的所有设置.找到包含 $(SDKROOT)/ResourceRules.plist 的密钥的名称(我们称之为 THE_KEY),然后尝试:

This command shows all the settings that are filled for target and configuration passed. Find the name of the key that contains $(SDKROOT)/ResourceRules.plist (let call it THE_KEY) and then try:

xcodebuild -target <target> -configuration <configuration> THE_KEY=<new_value>

不要保证它会起作用.

这篇关于设置xcode“构建设置"从终端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆