2014-02-06 75 views
0

的应用程序。我得到以下错误,我正在使用最新版本的JDeveloper 11.1.2.4ADF移动:当我部署在IOS设备的应用程序不能部署在IOS设备

[02:39:06 PM] error: /usr/bin/codesign --force --preserve-metadata=identifier,entitlements,resource-rules --sign iPhone Developer: Vijay Rathi (EM62NKCF2U) --resource-rules=/var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app/ResourceRules.plist /var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app failed with error 1. Output: /var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app: replacing existing signature 
[02:39:06 PM] Program /usr/bin/codesign returned 1 : [/var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app: replacing existing signature 
[02:39:06 PM] Command-line execution failed (Return code: 1) 
[02:39:06 PM] Deployment cancelled. 
[02:39:06 PM] ---- Deployment incomplete ----. 
[02:39:06 PM] Failed to package the XCode application. 
[02:39:06 PM] Failed to build the iOS application bundle. 
[02:39:06 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 Developer: Vijay Rathi (EM62NKCF2U) --resource-rules=/var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app/ResourceRules.plist /var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app failed with error 1. Output: /var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app: replacing existing signature 
Program /usr/bin/codesign returned 1 : [/var/folders/43/m8_qrfn964dfhw_y5p96kww00000gn/T/AdEyHsV13M/Payload/myapp.app: replacing existing signature 

请帮我解决这个问题。

在此先感谢。

回答

0

最后,我得到了解决

有其产生的组织者验证过程中运行的所有命令的脚本某处。我用grep做了一些挖掘并找到。该脚本确实存在,它的名字是:

/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication 

的解决方法是所需的环境VAR添加到关联数组%ENV在一开始,说在行72:

$ENV{CODESIGN_ALLOCATE} = '/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate'; 

当使用更新版本的Xcode(即Xcode 5),默认位置是:

$ENV{CODESIGN_ALLOCATE} = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate'; 
相关问题