0

我正在尝试运行 HR 示例应用程序,但出现以下错误:

--sign iPhone Distribution: Gary Zamorano (BH36YRHH44) --embed /Users/garyzamorano/Proyectos/GRK_IPAD_profile_ad_hoc.mobileprovision
[01:45:13 PM] error: /usr/bin/codesign --force --preserve-metadata=identifier,entitlements,resource-rules --sign iPhone Distribution: Gary Zamorano (BH36YRHH44) --resource-rules=/var/folders/68/qtr2dz896bb410t36p_2bjwr0000gn/T/XVV6umKpQY/Payload/HR.app/ResourceRules.plist --entitlements /var/folders/68/qtr2dz896bb410t36p_2bjwr0000gn/T/XVV6umKpQY/entitlements_plist4QFl794s /var/folders/68/qtr2dz896bb410t36p_2bjwr0000gn/T/XVV6umKpQY/Payload/HR.app failed with error 1. Output: Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)!
[01:45:13 PM] Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
[01:45:13 PM] Program /usr/bin/codesign returned 1 : [Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)!
[01:45:13 PM] Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
[01:45:13 PM] Command-line execution failed (Return code: 1)
[01:45:13 PM] Deployment cancelled.
[01:45:13 PM] ----  Deployment incomplete  ----.
[01:45:13 PM] Failed to package the XCode application.
[01:45:13 PM] Failed to build the iOS application bundle.
[01:45:13 PM] Deployment failed due to one or more errors returned by '/usr/bin/xcrun'.  The following is a summary of the returned error(s):
Command-line execution failed (Return code: 1)
error: /usr/bin/codesign --force --preserve-metadata=identifier,entitlements,resource-rules --sign iPhone Distribution: Gary Zamorano (BH36YRHH44) --resource-rules=/var/folders/68/qtr2dz896bb410t36p_2bjwr0000gn/T/XVV6umKpQY/Payload/HR.app/ResourceRules.plist --entitlements /var/folders/68/qtr2dz896bb410t36p_2bjwr0000gn/T/XVV6umKpQY/entitlements_plist4QFl794s /var/folders/68/qtr2dz896bb410t36p_2bjwr0000gn/T/XVV6umKpQY/Payload/HR.app failed with error 1. Output: Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)!
Program /usr/bin/codesign returned 1 : [Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)!

有人可以帮我吗?

4

1 回答 1

0

从这个线程:https ://community.oracle.com/thread/3611632?start=15&tstart=0

对于使用 Mac OS 10.9.5 或 10.10 (Yosemite) 的用户,请通过帮助 > 检查更新下载最新的 MAF 补丁。这应该可以解决您的代码设计问题

于 2014-11-15T21:21:46.433 回答