IOS 9 Remove CODE_SIGN_RESOURCE_RULES_PATH=$(SDKROOT)/ResourceRules.plist

本文介绍如何修改Xcode中的PackageApplication脚本,以移除资源规则文件(ResourceRules.plist)的代码签名步骤。通过更新脚本中的代码签名参数,可以避免在打包过程中对资源规则文件进行不必要的签名操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Remove CODE_SIGN_RESOURCE_RULES_PATH=$(SDKROOT)/ResourceRules.plist
Find the /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication script and update it.
Find the lines including the following code in the script
my@codesign_args=("/usr/bin/codesign","--force","--preserve-metadata=identifier,entitlements,resource-rules","--sign", $opt{sign},"--resource-rules=$destApp/ResourceRules.plist");
change it to:

my@codesign_args=("/usr/bin/codesign","--force","--preserve-metadata=identifier,entitlements","--sign", $opt{sign});


CMD  到目录,用vi编辑。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值