40

We made an archive with Xcode 9.
We exported this archive with Xcode 9.
We successfully uploaded the app to iTunes Connect with Application Loader. Yet, soon after, we got this message:

This bundle is invalid - Your archive contains paths that are not allowed: ( "AppThinning.plist" )

This was not happening with Xcode 8.

Cœur
  • 37,241
  • 25
  • 195
  • 267

1 Answers1

84

When you're exporting with Xcode 9 or later, they will ask you if you want to Strip Swift symbols:
enter image description here

Well, don't uncheck it! And the error will be gone.

Fuhad saneen
  • 109
  • 1
  • 1
  • 6
Cœur
  • 37,241
  • 25
  • 195
  • 267
  • 2
    But what if I don't wont to use this feature. As I understand, this increases build processing time. – Timur Bernikovich Oct 26 '17 at 01:10
  • @TimurBernikowich Did you fill a [radar](http://radar.apple.com) to ask Apple? Maybe they'll fix it in next Xcode release or iTunesConnect update. – Cœur Oct 26 '17 at 01:55
  • @Coeur Not working for me, I am also facing this problem. – Arun sharma Oct 26 '17 at 12:04
  • @Arunsharma please specify your version of Xcode (9.0 or 9.0.1) and... make sure you uploaded the correct exported archive, because it did work for so many others. – Cœur Oct 27 '17 at 02:21
  • Why is the option to uncheck "Strip Swift symbols" even exist, if doing so causes the "bundle invalid error"? – RawMean Feb 21 '18 at 04:03
  • @RawMean I could copy past my first comment: "Did you fill a radar to ask Apple? Maybe they'll fix it in next Xcode release or iTunesConnect update." – Cœur Feb 21 '18 at 05:41
  • 1
    Looks like a bug to me. Correct me if I'm wrong but not striping the symbols should give me better (symbolicated swift part) if the crash occur. – Julian Feb 21 '18 at 12:09