Xcode 在导出或提交到 App Store 时崩溃

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26938659/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:10:39  来源:igfitidea点击:

Xcode crashes when exporting or submitting to App Store

iosxcodeapp-store

提问by Hurshai

I'm having problems submitting to the App Store. Both Xcode 6.1 and 5.1.1 crash when I attempt to export an .ipa or use the submit feature after the app has been archived. Here are the steps to reproduce:

我在向 App Store 提交时遇到问题。当我尝试导出 .ipa 或在应用程序存档后使用提交功能时,Xcode 6.1 和 5.1.1 都会崩溃。以下是重现的步骤:

Build -> Archive -> Organizer -> Export -> Save for iOS App Store Deployment

Build -> Archive -> Organizer -> Export -> Save for iOS App Store Deployment

The "Fetching list of teams..." dialogue appears briefly and then Xcode crashes. This also occurs when clicking the Submit button on the Organizer window. This also occurs for Ad Hoc exports. This is odd as I was able to create an ad hoc distribution a few days ago without issue.

“正在获取团队列表...”对话框短暂出现,然后 Xcode 崩溃。单击“管理器”窗口上的“提交”按钮时也会发生这种情况。这也适用于 Ad Hoc 导出。这很奇怪,因为几天前我能够创建一个临时分发而没有问题。

I am also unable to select the Team attribute for the target in the project files general settings (General -> Identity -> Team).

我也无法在项目文件的常规设置(常规 -> 身份 -> 团队)中为目标选择团队属性。

The crash report for all of the issues above are similar. I have double checked the developer center to ensure that I have an App Store provisioning profile for this app. I have also read of people having a similar issue if they had not agreed to the latest developer center terms. As far as I can tell, I don't have any outstanding agreements that require action. I've tried removing my account from Xcode and reinstalling. I'm guessing this is an account issue but I'm not sure what I can do to fix it.

上述所有问题的崩溃报告都是相似的。我已经仔细检查了开发人员中心,以确保我有这个应用程序的 App Store 配置文件。我也读到有人遇到类似问题,如果他们不同意最新的开发者中心条款。据我所知,我没有任何需要采取行动的未完成协议。我尝试从 Xcode 中删除我的帐户并重新安装。我猜这是一个帐户问题,但我不确定我能做些什么来解决它。

采纳答案by Hurshai

回答by Sonic

close the Xcode and keep the organizer is opened and try to submit; it's working with me

关闭Xcode并保持组织者处于打开状态并尝试提交;它在和我一起工作

enjoy!

请享用!

回答by Jay Mayu

It was crashing for me in XCode 9.3and the reason was I have not accepted the latest agreement at https://developer.apple.com/. Right after accepting the latest agreement it just worked.

它对我来说崩溃了XCode 9.3,原因是我没有接受https://developer.apple.com/ 上的最新协议。在接受最新的协议后,它就起作用了。

Right after crashing OS will provide you with a pop-up with logs. Just go through the log and see whether you can make up what exactly happened. Sometimes this is how you can figure out the issue.

操作系统崩溃后,将立即为您提供一个带有日志的弹出窗口。只需查看日志,看看您是否可以弥补到底发生了什么。有时,这就是您可以找出问题的方法。

回答by Black Mamba

In my case the problem was that there was a new user agreementwaiting approval in my dev account so the solution was to login to my account here https://developer.apple.com/and then agreeing to the user agreement they had.

就我而言,问题是我的开发帐户中有一个新的用户协议正在等待批准,因此解决方案是在https://developer.apple.com/上登录我的帐户,然后同意他们拥有的用户协议。

回答by EddieHFu

It turns out the Apple Membership is expired in my case. Check Membership Center if there is anything worth noticing.

事实证明,就我而言,Apple 会员资格已过期。如果有什么值得注意的地方,请查看会员中心。

回答by xissburg

Export an .ipa from Organizer and use the Application Loader to upload your app to iTunesConnect.

从 Organizer 导出 .ipa 并使用 Application Loader 将您的应用程序上传到 iTunesConnect。

回答by dichen

I had the same problem starting from yesterday, 11/13/2014.

从昨天 11/13/2014 开始,我遇到了同样的问题。

Whenever tried to communicate with server it crashed

每当尝试与服务器通信时,它就会崩溃

  • Preferences -> Apple ID -> View Details
  • Organizer -> Validate
  • Organizer -> Export -> Save for Ad Hoc Deployment
  • 首选项 -> Apple ID -> 查看详情
  • 组织者 -> 验证
  • 管理器 -> 导出 -> 保存以供临时部署

View Details works today, but Validate and Export are still crashing.

查看详细信息今天有效,但验证和导出仍然崩溃。

[Edited] Reference to this thread: Xcode crashing when fetching team list

[已编辑] 参考此线程: 获取团队列表时 Xcode 崩溃

In case you want to export an ipa:

如果您想导出 ipa:

xcodebuild archive -project $projectname.xcodeproj -scheme $schemename -archivePath projectname.xcarchive
xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile “Provisioning Profile Name”

回答by w0mbat

If the data at the developer center looks good, open Xcode Prefs, click Accounts, click "View Details", click the refresh button. Then quit and relaunch Xcode for good measure, and see if uploading now works. This voodoo has always worked for me in the past.

如果开发者中心的数据看起来不错,打开Xcode Prefs,点击Accounts,点击“View Details”,点击刷新按钮。然后退出并重新启动 Xcode 以获得良好的测量,看看现在上传是否有效。这个伏都教过去一直对我有用。

[Addition] In the release notes for Xcode 6.1.1 Apple suggests trying this if you crash during App Store submission: App Store Submission ? Using the distribution workflow after deleting an account from Xcode's preferences may lead to a crash. (18964743) Workaround: Delete all files ending with ".db" in ~/Library/Developer/Xcode/.

[附加] 在 Xcode 6.1.1 的发行说明中,Apple 建议如果您在 App Store 提交期间崩溃,请尝试此操作:App Store Submission ? 从 Xcode 的首选项中删除帐户后使用分发工作流可能会导致崩溃。(18964743) 解决方法:删除 ~/Library/Developer/Xcode/ 中所有以“.db”结尾的文件。

回答by Jonathan Ratcliff

I was getting a crash in 6.3.2. Then I tried closing Xcode before submitting and realized that I was using the same build number as my rejected version of the app. I updated the build number and it submitted without having to close Xcode.

我在 6.3.2 中崩溃了。然后我尝试在提交之前关闭 Xcode,并意识到我使用的版本号与我被拒绝的应用程序版本相同。我更新了内部版本号并提交,而无需关闭 Xcode。

回答by MZain

close the Xcode and keep the organizer is opened and try to submit; it's working with me also

关闭Xcode并保持组织者处于打开状态并尝试提交;它也在和我一起工作