gpt4 book ai didi

ios - Xcode - 共享应用程序 - PackageApplication 失败,退出代码为 1

转载 作者:IT王子 更新时间:2023-10-29 08:13:06 25 4
gpt4 key购买 nike

我已经使用 Xcode 4.1 为我的 iPhone 应用程序创建了一个临时分发版本。目标成功构建并生成了一个我可以在管理器中看到的存档文件。然后我单击“共享”,它允许我选择 .ipa 和我的分发配置文件。但是,在我点击“下一步”后,Organizer 崩溃并出现以下错误。错误日志似乎表明该错误与“ResourceRules.plist”有关?我正在使用 CorePlot 作图,可能与此有关吗?

有关信息,我有一个有效的分发证书并导入了一个分发配置文件。显然,特别分发不再需要权利文件,所以我在项目中没有。我的所有其他应用程序都不会在“共享”阶段崩溃,因此 Xcode 似乎没有问题,只是这个特定的应用程序有问题。

非常感谢任何帮助。

授予。

PackageApplication failed with exit code 1.

Packaging application: '/Users/gabt/Library/Developer/Xcode/Archives/2011-08-20/myApp 20-08-2011 14.11.xcarchive/Products/Applications/myApp.app'

Arguments: embed=/Users/gabt/Library/MobileDevice/Provisioning Profiles/FA16C6A9-603C-46A6-8B98-F367A6B056CD.mobileprovision verbose=1 output=/var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/670E174E-0BCA-4F18-AB8D-5ACF3D7E569A-8458-000005FCA81C6AE5/app.ipa sign=iPhone Distribution: Grant Abt

Environment variables:

HOME = /Users/gabt

LOGNAME = gabt

__CF_USER_TEXT_ENCODING = 0x1F5:0:0

DISPLAY = /tmp/launch-WoNf6c/org.x:0

COMMAND_MODE = unix2003

VERSIONER_PERL_PREFER_32_BIT = no

PATH = /Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin

SHELL = /bin/bash

SSH_AUTH_SOCK = /tmp/launch-hHkBrJ/Listeners

Apple_PubSub_Socket_Render = /tmp/launch-P0dtgN/Render

TMPDIR = /var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/

USER = gabt

VERSIONER_PERL_VERSION = 5.12

Output directory: '/var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/670E174E-0BCA-4F18-AB8D-5ACF3D7E569A-8458-000005FCA81C6AE5/app.ipa'

Temporary Directory: '/var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS' (will NOT be deleted on exit when verbose set)

+ /bin/cp -Rp /Users/gabt/Library/Developer/Xcode/Archives/2011-08-20/myApp 20-08-2011 14.11.xcarchive/Products/Applications/myApp.app /var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS/Payload

Program /bin/cp returned 0 : []

### Checking original app

+ /usr/bin/codesign --verify -vvvv /Users/gabt/Library/Developer/Xcode/Archives/2011-08-20/myApp 20-08-2011 14.11.xcarchive/Products/Applications/myApp.app

Program /usr/bin/codesign returned 0 : [/Users/gabt/Library/Developer/Xcode/Archives/2011-08-20/myApp 20-08-2011 14.11.xcarchive/Products/Applications/myApp.app: valid on disk

/Users/gabt/Library/Developer/Xcode/Archives/2011-08-20/myApp 20-08-2011 14.11.xcarchive/Products/Applications/myApp.app: satisfies its Designated Requirement

]

Done checking the original app

### Embedding '/Users/gabt/Library/MobileDevice/Provisioning Profiles/FA16C6A9-603C-46A6-8B98-F367A6B056CD.mobileprovision'

+ /bin/rm -rf /var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS/Payload/myApp.app/embedded.mobileprovision

Program /bin/rm returned 0 : []

+ /bin/cp -rp /Users/gabt/Library/MobileDevice/Provisioning Profiles/FA16C6A9-603C-46A6-8B98-F367A6B056CD.mobileprovision /var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS/Payload/myApp.app/embedded.mobileprovision

Program /bin/cp returned 0 : []

+ /usr/bin/codesign -d --entitlements /var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS/entitlements_rawMkZVbU5I /var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS/Payload/myApp.app

Program /usr/bin/codesign returned 0 : [Executable=/private/var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS/Payload/myApp.app/myApp

]

+ /usr/libexec/PlistBuddy -c Set :get-task-allow NO /var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS/entitlements_plistt2Evi2T_

Program /usr/libexec/PlistBuddy returned 0 : []

+ /usr/bin/plutil -lint /var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS/entitlements_plistt2Evi2T_

Program /usr/bin/plutil returned 0 : [/var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS/entitlements_plistt2Evi2T_: OK

]

### Codesigning '/Users/gabt/Library/MobileDevice/Provisioning Profiles/FA16C6A9-603C-46A6-8B98-F367A6B056CD.mobileprovision' with 'iPhone Distribution: Grant Abt'

+ /usr/bin/codesign --force --preserve-metadata --sign iPhone Distribution: Grant Abt --resource-rules=/var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS/Payload/myApp.app/ResourceRules.plist --entitlements /var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS/entitlements_plistt2Evi2T_ /var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS/Payload/myApp.app

Program /usr/bin/codesign returned 1 : [/var/folders/jw/s5ky0r1n34322jt4pw3047m00000gn/T/y30BrfbtxS/Payload/myApp.app/ResourceRules.plist: cannot read resources

]

error: codesign failed with error 1

最佳答案

今天遇到了同样的问题。项目 - build设置中缺少“代码签名资源规则路径”

...打开项目的“build设置”选项卡。搜索“代码签名资源规则路径”,对我来说是空的并添加$(SDKROOT)/ResourceRules.plist

致谢 Adams Blair,他用 SDK2.2 描述了这个问题

关于ios - Xcode - 共享应用程序 - PackageApplication 失败,退出代码为 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7138525/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com