Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export IPA error on Xcode 7 in El Capitan

Since Xcode 7 and El Capitan I can't export an archive into an IPA file. When I finish the flow Export... > Save for Ad Hoc Deployment > Export (button) it displays the following error: Coulnd't find any platforms at all in /Applications/Xcode.app/Contents/Developer/Platforms

enter image description here

EDIT:

This would be the relevant part of the logs

In 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}

EDIT 2:

Listing Platforms directory:

$ 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
like image 603
anavarroma Avatar asked Oct 06 '15 06:10

anavarroma


3 Answers

deselect "Export from bitcode" checkbox in dialog when exporting IPA. If checked it means that you want to test a build created from bitcode. See more details here

like image 68
protspace Avatar answered Oct 28 '22 04:10

protspace


Change the deployment target . Clean the project Build the project & then archive it . You will get it.

like image 36
Uma Madhavi Avatar answered Oct 28 '22 05:10

Uma Madhavi


Also you can remove this error by following below steps:

1) Go to Targets

2) Build settings > Set NO to "Enable Bitcode"

3) Try Archive again.

like image 38
Amit Ajmera Avatar answered Oct 28 '22 05:10

Amit Ajmera