iOS打包常見錯誤
阿新 • • 發佈:2017-09-11
forms for sig 打包 form log pack 部分 eap
升級Xcode8.2後,構建失敗:
error: /usr/bin/codesign --force --preserve metadata=identifier,entitlements,resource-rules --sign"
Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)! Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
這是因為在osx10.10以上的系統上,“resource-rules”不再使用。
解決辦法:
找到/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication,找到並刪除紅色部分
my @codesign_args = ("/usr/bin/codesign", "--force", "--preserve-metadata=identifier,entitlements,resource-rules", "--sign", $opt{sign}, "--resource-rules=$destApp/ResourceRules.plist");
iOS打包常見錯誤