简体   繁体   English

iOS:将应用提交到appStore / adhoc部署时出现问题

[英]iOS : Issue in submitting app to appStore / adhoc deployment

i am trying to submit app to appStore and also alternatively trying to create ipa for adhoc deployment. 我正在尝试将应用提交到appStore,或者尝试为临时部署创建ipa i have already tried many solutions but nothing changed. 我已经尝试了许多解决方案,但没有任何改变。 I have already generated new certificates and provisioning profiles but it always shows me this error message: 我已经生成了新的证书配置文件,但是它始终显示以下错误消息:

You already has a valid iOS Distribution certificate You have a valid iOS Distribution certificate in the Member Center, but it is not installed locally. 您已经具有有效的iOS分发证书您在成员中心中具有有效的iOS分发证书,但未在本地安装。 if uour sigining identity is installed on another Mac, You can export on that Mac and import it on this Mac. 如果您的sigining身份已安装在另一台Mac上,则可以在该Mac上导出并将其导入到此Mac上。

Please help me out to get rid of this issue 请帮助我摆脱这个问题

you are missing your Distribution Certificates Private key on this computer. 您缺少此计算机上的分发证书私钥。 If you have another machine that can codesign distribution builds, then transfer the certificates and profiles from that machine using the workflow discussed in the "Transferring iOS Certificates and Profiles to another Machine (Exporting and Importing Certificates and Profiles)" section above, otherwise follow the instructions below (as appropriate for the type of app you are creating). 如果您有一台可以对分发版本进行代码签名的计算机,则使用上面“将iOS证书和配置文件传输到另一台计算机(导出和导入证书和配置文件)”部分中讨论的工作流程从该计算机上传输证书和配置文件,否则请按照以下说明(适用于您要创建的应用类型)。

if you revoke your iOS Distribution certificate, then Xcode will recreate your private key and request a new Distribution Certificate for you. 如果您撤销了iOS发行证书,则Xcode将重新创建您的私钥并为您请求新的发行证书。 See the steps in the Revoking Certificates section of the App Distribution. 请参阅“应用分发”的“吊销证书”部分中的步骤。

use this link 使用此链接

If you need to make an .ipa without valid Developer's account, please follow the next steps: 如果您需要在没有有效开发者帐户的情况下创建.ipa,请按照以下步骤操作:

1) xcodebuild clean -workspace /Users/JohnDoe/Projects/TheApp/TheApp.xcworkspace -configuration Release -scheme TheApp 1)xcodebuild clean -workspace /Users/JohnDoe/Projects/TheApp/TheApp.xcworkspace -configuration Release -scheme TheApp

2) xcodebuild archive -workspace /Users/JohnDoe/Projects/TheApp/TheApp.xcworkspace -scheme TheApp -archivePath ~/TheApp.xcarchive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO 2)xcodebuild存档-workspace /Users/JohnDoe/Projects/TheApp/TheApp.xcworkspace -scheme TheApp -archivePath〜/ TheApp.xcarchive CODE_SIGN_IDENTITY =“” CODE_SIGNING_REQUIRED = NO

3) cd ~ 3)光盘〜

4) xcodebuild -exportArchive -exportFormat ipa -archivePath TheApp.xcarchive -exportPath ~/TheApp.ipa 4)xcodebuild -exportArchive -exportFormat ipa -archivePath TheApp.xcarchive -exportPath〜/ TheApp.ipa

After the final step the .ipa is waiting for you in your home directory! 完成最后一步后,.ipa将在您的主目录中等待您!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM