1. 程式人生 > >Xcode 6.3.2 提交APP(Upload Archive)時崩潰的解決辦法

Xcode 6.3.2 提交APP(Upload Archive)時崩潰的解決辦法

最近在上傳為客戶做的APP時,發現Xcode總會在進行到Upload Archive這一步時崩潰,導致APP上載不了。下面說說網上搜索到的幾種解決辦法。

方法一

  親測有效,很簡單:

  1、重新開啟Xcode,從選單中選擇Window -> Organizer,開啟APP提交頁面。

  2、保留Organizer介面,關閉Xcode再上傳即可。

方法二

  在Organizer中選擇Export,匯出ipa檔案,再使用Application Loader上載。

  

方法三

這個方法在我這裡沒有生效,但考慮到個例不具有代表性,還是提供給大家參考,引用原文:

Make sure you've accepted all of the new agreements in the Member Center.

To check if you need to, you can go to the preferences -> accounts in XCode, and chose to view details

 of an account and attempt to refresh using the little button. Here, XCode will warn you that you need to accept new agreements in the Member Center before you can refresh.

On the other hand, the Organizer will just crash instead of warning you about un-signed agreements.

  大意是開發者的Member Center可能有未接受的新條款,在Xcode的Preferences -> Accounts中,點選開發者賬號的view details,在彈出的點選重新整理按鈕,Xcode會提示你接下來需要的操作。

  

方法四

  這個方法準確地描述了Organizer崩潰的原因,應該是還原了事實真相。

I have used bagusflyer's workaround to submit app, but finally I found out how to solve it permanently.

Here is the solution:

  1. Accept new changed terms and condition from apple developer account. (Just like Sandeep said)

  2. Go to here to generate new provision profiles, for App Store & AdHoc (

    Tutorial)

  3. Double click new provision profiles you downloaded to install them, and then XCode will never crash.

The problem is caused by XCode 6.0 does not handle provision profile migration properly. Developers should regenerate provision profiles for XCode 6+, but Xcode 6.0 fails to display this error message properly and crashes. (If you use XCode 6.1 Beta, it will display error messages for you, no crash. Then you will know that the problem is caused by "invalid"=="legacy" provision profile.)

After that, you can submit app and export Ad Hoc distribution for Testflight.