2015-10-06 79 views
7

由於Xcode 7和El Capitan無法將檔案導出到IPA文件中。當我完成流Export... > Save for Ad Hoc Deployment > Export (button)它顯示了以下錯誤:Coulnd't find any platforms at all in /Applications/Xcode.app/Contents/Developer/Platforms在El Capitan的Xcode 7上導出IPA錯誤

enter image description here

編輯:

這將是日誌的相關部分

在IDEDistribution.standard.log

{ 
    code = 2109; 
    description = "couldn't find any platforms at all in /Applications/Xcode.app/Contents/Developer/Platforms"; 
    info =    { 
    }; 
    level = ERROR; 
} 

In IDEDistribution.critical.log

2015-10-06 06:50:04 +0000 [MT] Presenting: Error Domain=IDEFoundationErrorDomain Code=1 "couldn't find any platforms at all in /Applications/Xcode.app/Contents/Developer/Platforms" UserInfo={NSLocalizedDescription=couldn't find any platforms at all in /Applications/Xcode.app/Contents/Developer/Platforms} 

編輯2:

上市Platforms目錄:

$ ls -l /Applications/Xcode.app/Contents/Developer/Platforms 
total 0 
drwxr-xr-x 9 root wheel 306 2 oct 10:12 MacOSX.platform 
drwxrwxr-x 8 root wheel 272 2 oct 10:12 WatchOS.platform 
drwxr-xr-x 6 root wheel 204 2 oct 10:13 WatchSimulator.platform 
drwxr-xr-x 8 root wheel 272 2 oct 10:13 iPhoneOS.platform 
drwxr-xr-x 5 root wheel 170 2 oct 10:14 iPhoneSimulator.platform 
+0

請確保您添加appID並添加了分發提供配置文件。 –

+3

你能否也請從顯示日誌按鈕發佈日誌? – Imran

+0

你是否檢查過開發者帳號是否設置在鑰匙串中。 –

回答

18

取消選擇導出IPA時對話框中的「從位碼導出」複選框。如果選中,則意味着您要測試由位代碼創建的構建。查看更多詳細信息here

+0

哦,上帝@protspace。謝謝!! –

1

更改部署目標。 清理項目 構建項目&然後將其歸檔。你會得到的。

+0

不能正常工作.... – anavarroma

+0

我剛剛嘗試過,它工作正常 –

+0

您有同樣的問題嗎? – anavarroma

1

您也可以按照以下步驟刪除此錯誤:

1)進入目標

2)構建設置>將 「啓用位碼」

3)再次嘗試存檔。