我现在已经解决了这个问题将近4个小时,非常沮丧.我已经完成了3次撤销我的证书和配置文件并从头开始.我还确保我的项目设置为使用DISTRIBUTION配置文件.我撤销并删除了我的开发证书/教授,所以我无法偶然选择它.我的mobileprofile正在被正确复制.我正在使用
Xcode 4.0.2.我开始了一个新项目并将我的文件转储到那里,我在那里遇到了同样的问题.
我超级双重检查指示获得证书.创建私钥,将文件发送到开发人员配置门户,获得证书,它加载并匹配我的私钥..已删除所有不相关的密钥.已删除MobileProfile /中保存的所有旧配置文件.
在这里,真的,我的项目设置正确!!
在这里,我的目标(只有目标!)设置正确!
这是我的钥匙链..证书看起来不错
我的超级精心制作的配置文件在Xcode中表现得很好,它当然被认为是好的和签名的
我得到的是:
rocessProductPackaging "/Users/rcl/Library/MobileDevice/Provisioning Profiles/AFFB40FF-FE57-4131-A1D1-0804E0E747FF.mobileprovision" /Users/rcl/Library/Developer/Xcode/DerivedData/iMan-hapawfvbfkeskkaembwcgifzypdz/Build/Products/Release-iphoneos/iMan.app/embedded.mobileprovision
cd /Users/rcl/Documents/iMan/iMan_On_Xcode402/iMan
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
"/Users/rcl/Library/MobileDevice/Provisioning Profiles/AFFB40FF-FE57-4131-A1D1-0804E0E747FF.mobileprovision" -o /Users/rcl/Library/Developer/Xcode/DerivedData/iMan-hapawfvbfkeskkaembwcgifzypdz/Build/Products/Release-iphoneos/iMan.app/embedded.mobileprovision
Then..
ProcessProductPackaging /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/Entitlements.plist /Users/rcl/Library/Developer/Xcode/DerivedData/iMan-hapawfvbfkeskkaembwcgifzypdz/Build/Intermediates/iMan.build/Release-iphoneos/iMan.build/iMan.xcent cd /Users/rcl/Documents/iMan/iMan_On_Xcode402/iMan setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/Entitlements.plist -entitlements -format xml -o /Users/rcl/Library/Developer/Xcode/DerivedData/iMan-hapawfvbfkeskkaembwcgifzypdz/Build/Intermediates/iMan.build/Release-iphoneos/iMan.build/iMan.xcent
Then...
CodeSign /Users/rcl/Library/Developer/Xcode/DerivedData/iMan-hapawfvbfkeskkaembwcgifzypdz/Build/Products/Release-iphoneos/iMan.app cd /Users/rcl/Documents/iMan/iMan_On_Xcode402/iMan setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" setenv _CODESIGN_ALLOCATE_ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate /usr/bin/codesign -f -s "iPhone Distribution: Robert Lorentz" --resource-rules=/Users/rcl/Library/Developer/Xcode/DerivedData/iMan-hapawfvbfkeskkaembwcgifzypdz/Build/Products/Release-iphoneos/iMan.app/ResourceRules.plist --entitlements /Users/rcl/Library/Developer/Xcode/DerivedData/iMan-hapawfvbfkeskkaembwcgifzypdz/Build/Intermediates/iMan.build/Release-iphoneos/iMan.build/iMan.xcent /Users/rcl/Library/Developer/Xcode/DerivedData/iMan-hapawfvbfkeskkaembwcgifzypdz/Build/Products/Release-iphoneos/iMan.app
Then....
Validate /Users/rcl/Library/Developer/Xcode/DerivedData/iMan-hapawfvbfkeskkaembwcgifzypdz/Build/Products/Release-iphoneos/iMan.app cd /Users/rcl/Documents/iMan/iMan_On_Xcode402/iMan setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" setenv PRODUCT_TYPE com.apple.product-type.application /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/rcl/Library/Developer/Xcode/DerivedData/iMan-hapawfvbfkeskkaembwcgifzypdz/Build/Products/Release-iphoneos/iMan.app
warning: Application failed codesign verification. The signature was invalid,or it was not signed with an Apple submission certificate. (-19011) Executable=/Users/rcl/Library/Developer/Xcode/DerivedData/iMan-hapawfvbfkeskkaembwcgifzypdz/Build/Products/Release-iphoneos/iMan.app/iMan codesign_wrapper-0.7.10: using Apple CA for profile evaluation AssertMacros: signer,file: codesign_wrapper.c,line: 610 AssertMacros: profile,line: 914 codesign_wrapper-0.7.10: Failed to load provision profile from: /Users/rcl/Library/Developer/Xcode/DerivedData/iMan-hapawfvbfkeskkaembwcgifzypdz/Build/Products/Release-iphoneos/iMan.app/embedded.mobileprovision - (null)
编辑:
一个注意事项是我安装了Xcode 4.2 beta,不确定是否会导致问题?我使用提供的脚本并完全卸载了beta开发人员工具并再次安装了Xcode 4.0.2.
编辑:
我已经尝试以我自己的名义生成私钥,也尝试使用我公司的名称生成私钥.我最初使用自己的名字注册了Apple开发者程序,但是当我在iTunes Connect上设置自己时,我使用了我的商家名称作为我想要出现的名称.我发布的CERTIFICATE似乎显然使用了我的真实姓名.我试过在私钥上设置通用名称,但没有运气,但哪个是正确的?
编辑:
需要说明的是,文件/Users/rcl/Library/Developer/Xcode/DerivedData/iMan-hapawfvbfkeskkaembwcgifzypdz/Build/Products/Release-iphoneos/iMan.app/embedded.mobileprovision肯定存在并匹配我的?/ Library的md5sum / MobileDevice / Provisioning Profiles ../ file(唯一存在的,我想要使用的那个.)
编辑:
在创建我的分发配置文件时,我选择的App ID似乎并不重要 – 它们都会给出相同的结果.是否有需要与此App ID匹配的内容?
编辑:
好吧,我“到了某个地方”或向后走.所以我指定的包ID是com.panagiaindustries.iman;苹果发给我SR49T455EV.com.panagiaindustries.iman …如果我使用com.pana建立我的应用程序…一,它无法在xcode内编码.如果我使用SR49T进行构建…一,它编码,但是当我使用Application Loader时,我得到’Bundle identifier SR49T …与保留的bundle ID:com.pana …’不同,作为错误.我应该使用哪个?
编辑:
添加以下权利文件似乎没有任何效果:
get-task-allow
application-identifier
SR49T455EV.com.panagiaindustries.iman
我从Xcode 4.0.2到4.2.x beta,然后又回到4.0.2.在此之后,Xcode没有工作,所以我运行“官方perl”卸载程序脚本,然后重新安装4.0.2. Xcode工作..但显然我还在使用一些beta工具.我通过mv / Developer /Developer.old解决了我的问题并安装了“fresh”4.0.2.