ResourceRules.plist: cannot read resources解决方法
来源:互联网 发布:淘宝手办良心店铺 编辑:程序博客网 时间:2024/06/06 06:53
I tried to build *.IPA file with Xcode 7, Jenkins and its plugin Xcode integration. But received error:
### Codesigning '/Users/jenkins/Library/MobileDevice/Provisioning Profiles/' with 'iPhone Developer'
+ /usr/bin/codesign –force –preserve-metadata=identifier,entitlements,resource-rules –sign iPhone Developer –resource-rules=/var/folders/6x/jsvfjlx97_g95jy3l3hlwh900000gq/T/pUGWucQNqO/Payload/MYAPP.app/ResourceRules.plist /var/folders/6x/jsvfjlx97_g95jy3l3hlwh900000gq/T/pUGWucQNqO/Payload/MYAPP.app
Program /usr/bin/codesign returned 1 : [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!
/var/folders/6x/jsvfjlx97_g95jy3l3hlwh900000gq/T/pUGWucQNqO/Payload/MYAPP.app/ResourceRules.plist: cannot read resources
]
error: /usr/bin/codesign –force –preserve-metadata=identifier,entitlements,resource-rules –sign iPhone Developer –resource-rules=/var/folders/6x/jsvfjlx97_g95jy3l3hlwh900000gq/T/pUGWucQNqO/Payload/MYAPP.app/ResourceRules.plist /var/folders/6x/jsvfjlx97_g95jy3l3hlwh900000gq/T/pUGWucQNqO/Payload/MYAPP.app failed with error 1. Output: 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!
/var/folders/6x/jsvfjlx97_g95jy3l3hlwh900000gq/T/pUGWucQNqO/Payload/MYAPP.app/ResourceRules.plist: cannot read resources
Failed to build /var/jenkins/workspace/iOS-ipa/build/MYAPP.ipa
Build step 'Xcode' marked build as failure
Finished: FAILURE
My solution:
The following patch for PackageApplications fixed it for me, I removed resource-rules as it says it's deprecated on 10.10.
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin % diff PackageApplication PackageApplicationFixed 155,157c155,156< my @codesign_args = ("/usr/bin/codesign", "--force", "--preserve-metadata=identifier,entitlements,resource-rules",< "--sign", $opt{sign},< "--resource-rules=$destApp/ResourceRules.plist");---> my @codesign_args = ("/usr/bin/codesign", "--force", "--preserve-metadata=identifier,entitlements",> "--sign", $opt{sign});
- ResourceRules.plist: cannot read resources解决方法
- "ResourceRules.plist": cannot read resources
- IOS 9 Remove CODE_SIGN_RESOURCE_RULES_PATH=$(SDKROOT)/ResourceRules.plist
- Cannot read property 'root' of null 解决方法
- TQuery的cannot modify a read-only dataset解决方法
- Ckeditor: Uncaught TypeError: Cannot read property 'keyCode' of undefined 解决方法
- [jQuery]Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
- 浏览器cannot read property 'msie' of undefined的解决方法
- [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
- [JQUERY] CANNOT READ PROPERTY ‘MSIE’ OF UNDEFINED错误的解决方法
- 浏览器cannot read property 'msie' of undefined的解决方法
- Resources cannot be null
- Resources cannot be null
- Resources cannot be null
- springMVC handlerInterceptor 处理器拦截器
- jmap的几个操作要慎用
- 《Web全栈工程师的自我修养》摘记一
- 快速入门solr
- solr使用进阶
- ResourceRules.plist: cannot read resources解决方法
- 联合查询
- onSaveInstanceState和onRestoreInstanceState触发的时机
- MP3项目的供电问题
- WPF下使用WebBrowser的一个例子
- Fiddler实现手机抓包——小白入门
- 找出abc在字符串s中的所有排列方式
- EXCEL下拉复制
- 顺序表应用4-2:元素位置互换之逆置算法(数据改进)