Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)
来源:互联网 发布:炒股记账软件 编辑:程序博客网 时间:2024/06/07 11:29
jenkins 构建项目的时候报错:
error 1. Output: Warning: usage of –preserve-metadata with option “resource-rules” (deprecated in Mac OS X >= 10.10)!
报错原因:
是因为Xcode自带的打包插件PackageApplication在Mac OS X >= 10.10的时候,不支持ResourceRules.plist的重签名打包了。
解决方案:
移除PackageApplication中resource-rules相关的定义。
具体操作如下:
(1)第一步
找到PackageApplication。
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication
(2)第二步
移除resource-rules和”–resource-rules=$destApp/ResourceRules.plist”。
移除前
- my @codesign_args = (“/usr/bin/codesign”, “–force”, “–preserve-metadata=identifier,entitlements,resource-rules”,
- “–sign”,
移除后
+ my @codesign_args = (“/usr/bin/codesign”, “–force”, “–preserve-metadata=identifier,entitlements”,
+ “–sign”, $opt{sign});
最后重新jenkins打包,就不会出现error 1. Output: Warning: usage of –preserve-metadata with option “resource-rules” (deprecated in Mac OS X >= 10.10)!
参考资料:http://cutting.io/posts/packaging-ios-apps-from-the-command-line/
- 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!
- error: /usr/bin/codesign --force --preserve-metadata=identifier,entitlements,resource-rules --sign
- [MAC OS X] mds_stores 100% CPU usage
- Clear the “Open With” menu in Mac OS X
- Installing Nginx in Mac OS X Mountain Lion With Homebrew
- Layers of Mac OS X
- warning D9035 : option 'Wp64' has been deprecated and will be removed in a future
- Warning 1 Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a fu
- Warning 1 Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a fu
- Mac OS X:Analysis of the Use of the Boot Server Discovery Protocol in NetBoot
- mac os x 10.10
- Mac OS X 修复问题: “readlink: illegal option -- f”
- Getting StartED with Mac OS X Leopard
- Connect Mac OS X with Linux Server
- (Mac OS X)pip install with socks5
- NTFS-3G in Mac OS X Lion (10.7) with read-write support
- Links of Mac OS X support websites
- linux环境变量配置与区别
- Mac Apache服务器配置
- 报错集锦
- MySQL并发引起的死锁问题
- Apache ActiveMQ的优缺点
- Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)
- 已知三点求平面方程、平面法向量和点到平面的距离(转载)
- 洛谷P3384【模板】树链剖分 (树链剖分)
- matplotlib Artist 教程
- ZOJ3963-Heap Partition
- Java总结篇系列:Java多线程(一)
- 红黑树 删除某节点后 旋转3次 举例
- 【MongoDB for Java】Java操作MongoDB
- vue.js:[Vue warn]: Cannot find element: