I'd like to upload an app written in swift. Application loader delivers the app successfully, but after a few minutes I get a reply by apple telling:
Invalid Swift Support - The bundle contains an invalid implementation of Swift. The app may have been built or signed with non-compliant or pre-release tools. Visit developer.apple.com for more information.
I use xCode Version 6.0.1 (6A317), Swift iOS SDK 8.0 and just build the app with xcode.
Where can I find any information on how to get a valid implementation of swift? Apple does not say anything concrete.
Thx
We had a similar problem after upgrading to Xcode 7. Had to add the
-exportOptionsPlist
option and supplymethod
andteamID
. Messed things up but works now.Solution for xcodebuild
create a temp folder
unzip ipa file to temp folder
Here my shell script for add Swift libs to ipa
https://github.com/huhuvipi/VH_ipa_packger
If you existing ipa file , you just:
path/to/package_ipa.sh /path/to/ipafile
Simple Solution :
Hi, I had same issue and below is the solution :
Just Set the flag
EMBEDDED_CONTENT_CONTAINS_SWIFT
toNO
in the build setting of Target,Project and everywhere like testTarget as well.Here's a solution when using command line http://www.matrixprojects.net/p/xcodebuild-export-options-plist/
Basicly all what needs to be done is to create xcodebuild exportOptions plist file which looks like this:
Most important key here is method app-store
And then run xcode build with archive
After that run xcrun with export archive
seriously. I spent two days on this problem, and I tried all methods above. Nothing works!Finall. I used my friend's mac. And this time, it works. After that I realized that I downloaded the xcode from developer center not in mac app store. So I removed all xcode from my mac, and reinstall the xcode from app store, and it worked. And there is no difference between the two versions, which shared the exactly the same version number.