Export IPA error on Xcode 7 in El Capitan
Asked Answered
H

3

7

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
Haematin answered 6/10, 2015 at 6:36 Comment(4)
make sure that you add appID and added Distribution Provisioning Profile.Dad
Can you please also post the log from show logs button?Yul
have u checked whether developer account is set proper or not in keychain.Overvalue
Start Terminal.app and update your question with the output from ls -l /Applications/Xcode.app/Contents/Developer/Platforms.Kazbek
C
18

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

Cabbageworm answered 9/10, 2015 at 14:42 Comment(0)
O
1

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

Overvalue answered 6/10, 2015 at 9:55 Comment(2)
Did you have the same problem I'm having?Haematin
No problem i exported ipa to my desktopOvervalue
A
1

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.

Altarpiece answered 11/4, 2016 at 10:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.