7

OK I had to distribute an iOS application and have read stackoverflow (especially this post) and apple guides carefully

I do have Xcode 6.3.1 set up with an iOS developer and distribution certificate - my Xcode preferences looks as follow:

Xcode account preferences

I have a real device connected and can do Xcode > Product > Archive which Archives successfully:

Archive successful

Perfect lets go to Xcode > Organizer > Archives and upload the application:

Organizer > Archives is empty

But the Archives is empty:

No Archives Use the Archive command within an Xcode project or import an archive from an Xcode Server bot.

Thats weird because Archive said it was successfully created and its even archive to

/Users/<my user>/Library/Developer/Xcode/Archives/2015-05-20/MyApp 20-05-15 17.09.xcarchive
$ tree -L 1 <archive>

├── Products
│   └── Applications
└── dSYMs
    ├── BrightFutures.framework.dSYM
    ├── MyApp.app.dSYM
    └── Typhoon.framework.dSYM

OK lets open the xcarchive file directly - but this raises:

The archive could not be installed.
The archive may be corrupt or unreadable

Why? and how to solve this?

Update 1

I got the archive build:

  • removing and adding all my cocoapods and running pods install again (there is some discussion going on about problems with cosigning an error I also had randomly but did no include in my original question to keep the post as slim as possible)
  • adding Images.xcassets to my xcode project it turned out it was an old xcode project with out such assets.

But it still doesn't taste as a real solution.

Community
  • 1
  • 1
pellekrogholt
  • 1,895
  • 2
  • 16
  • 18
  • It's xcode, so I'll say this with the least amount of cynism : Have you tried turning it off and on again? – Gil Sand May 22 '15 at 11:36
  • what do you exactly mean with `it`? – pellekrogholt May 25 '15 at 07:14
  • XCode is a really bad IDE. Sometimes just restarting it + clean command fixes bugs. – Gil Sand May 25 '15 at 07:17
  • OK thx for you suggestions I did that a couple of times during the try outs so I doubt thats a solution for the corrupted archive problem. – pellekrogholt May 26 '15 at 08:19
  • I tried uninstalling cocoapods, and even used different versions. I am now on 0.39.0 and i still have the same issue. – kareem Dec 21 '15 at 18:33
  • @kareem I can't reproduce the issue any longer I'm using Xcode 7.1.1 and pods: 0.39.0.rc.1. Your project could have problems with assets etc... I would try out with a vanilla ios project if I ever was hit but this issue again. Good luck... – pellekrogholt Dec 22 '15 at 09:56
  • @pellekrogholt okay i will try a new project thanks, dont think its my assets but will see too – kareem Dec 22 '15 at 10:28
  • I experience the same problem, I accidentally deleted two archives present in the archives organizer window, and I get the same window. Please help! – Aashish Feb 01 '17 at 19:30

1 Answers1

0

You might try unplugging your device and creating an archive with "iOS Device" selected as your build scheme.

Youngin
  • 261
  • 4
  • 14