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
After Swift project update in new xcode was getting similar error and below is my solution.
Open project.pbxproj file and remove below line
and was able to submit app successfully.
For me this is what worked for distribution.
Goto -> Xcode->product->Archive->Export
After this a folder will be created with current date. You can save it somewhere for later use. Then open Application loader and you can submit to the itunesConnect from here. Everything will be cleared. Make sure you create Build(.ipa) file by clicking on Export option in the organizer window. Then use Application loader to submit build to iTunesConnect.
I hope it helps. Let me know if you need more information.
Do you have any other version of Xcode installed?
Open your latest Xcode, then go to preferences (Xcode menu -> Preferences), switch to the Locations tab and verify that the Command Line Tools matches your Xcode version.
Five Step Solution:
This is slightly a drawback as swift carries the baggage and has to be compatible with earlier version and Objective C code.
My many hours were wasted hope you will find this helpful ;)
Thought I should share since I spent a few days trying to solve this problem.
Everyone keeps saying to set
EMBEDDED_CONTENT_CONTAINS_SWIFT = NO
or=YES
I had an iPhone app written entirely in Objective-C and a Watch Kit app written entirely in Swift.
I set
EMBEDDED_CONTENT_CONTAINS_SWIFT = NO
for everything (Project Target, iPhone app target, Tests, UITests, and WatchKit)The place where I set
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES
is in the WatchKit Extension. This solved my problem and I was able to upload to the App Store through Xcode.Hope this can help somebody!
I had a similar problem. To fix it and be able to push a build to iTunesConnect I had to do the following:
EMBEDDED_CONTENT_CONTAINS_SWIFT
toYES
in the target settingsLogout
all Apple Developper accounts from Xcode and login with just the one you want to push the app with.with Xcode
and NOT with Application Loader.Why did I need to logout from all of my Apple Developper accounts?
Because Xcode does not know which account to use to upload the binary. Application Loader ask you in the beginning but then, the uploaded build isn't valid...
UPDATE:
Since Xcode 7.1 and the new versions of Swift I got the error again. The current workaround is to do the following:
After few minutes (~10) the build should be available on iTunesConnect.