Invalid Swift Support / invalid implementation of

2019-01-04 23:09发布

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

23条回答
迷人小祖宗
2楼-- · 2019-01-04 23:34

We had a similar problem after upgrading to Xcode 7. Had to add the -exportOptionsPlist option and supply method and teamID. Messed things up but works now.

查看更多
老娘就宠你
3楼-- · 2019-01-04 23:36

Solution for xcodebuild

  • create a temp folder

  • unzip ipa file to temp folder

  • create SwiftSupport folder inside temp folder
  • copy swift libs from Payload/*app/framworks to SwiftSupport folder
  • package ipa file from contains inside temp folder (we have Payload and SwiftSupport folders).

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

查看更多
Explosion°爆炸
4楼-- · 2019-01-04 23:36

Simple Solution :

Hi, I had same issue and below is the solution :

Just Set the flag EMBEDDED_CONTENT_CONTAINS_SWIFT to NO in the build setting of Target,Project and everywhere like testTarget as well.

查看更多
放我归山
5楼-- · 2019-01-04 23:36

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:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>teamID</key>
        <string>MYTEAMID123</string>
        <key>method</key>
        <string>app-store</string>
        <key>uploadSymbols</key>
        <true/>
</dict>
</plist>

Most important key here is method app-store

And then run xcode build with archive

xcodebuild -scheme MyApp -archivePath builds/MyApp.xcarchive archive

After that run xcrun with export archive

xcrun xcodebuild -exportArchive -exportOptionsPlist exportPlist.plist -archivePath builds/MyApp.xcarchive -exportPath builds
查看更多
兄弟一词,经得起流年.
6楼-- · 2019-01-04 23:36

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.

查看更多
登录 后发表回答