Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid Binary Or Invalid Swift Support

After I send my app for approval to the app store I get the message 'Invalid Binary' in the iTunes Connect. Then I get the following message in an email from Apple:

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.

My app is just a simple game application. No external programs are called. I have researched this message and went through and checked the following:

  1. xcode is up to date - checked in app store
  2. EMBEDDED_CONTENT_CONTAINS_SWIFT to YES or NO
  3. send with the xcode app, not the application loader
  4. did NOT build with the command line
  5. (Xcode menu -> Preferences -> Locations tab - verified that the Command Line Tools matches Xcode version.
  6. "Clean"ed the app, rebuilt and rearchived and then resent, same message
  7. The app validates through the organizer fine
  8. viewing the contents of the archive shows a SwiftSupport folder
  9. I am only using one developer account and have never logged into any other developer account I cannot find anything online that would help solve this problem.
  10. I am running OS X Yosemite 10.10.1.
  11. xcode version is 6.1.1 version 6A2008a - built, cleaned and sent with this version
  12. I have also pressed the Option key and "Cleaned Build Folder" and resent, same message

I cannot find any other reason for this online or in any forums. Any help is greatly appreciated. Thank you for your time.






SOLUTION I FIND

Edit:

(1)

One you contact Apple and you wait long time … for reset iTunes connect because this problem coming in Apple . (Apple ask to send log of this problem)

(2)

An other solution, your create an other project application on iTunes connect and upload your work, this solution work fine, is the solution for me .

(3)

An other solution, you create a new project on Xcode, copy and paste your project in this other project.... (create new provisioning profile etc..) And upload your work in the same project application on Itunes Connect.

(4)

Step (2) + step (3), create a new project in Xcode and Itunes Connect.

(5)

Create a new project with the same name bundle identifier, it works perfectly !






like image 373
YannSteph Avatar asked Jan 18 '15 14:01

YannSteph


Video Answer


1 Answers

See: Technical Q&A QA1881 Embedding Content with Swift in Objective-C.

It seems that you only need to set EMBEDDED_CONTENT_CONTAINS_SWIFT to YES "If you are building an app that does not use Swift but embeds content such as a framework that does".

What language is your app written in? If Swift yo do not need EMBEDDED_CONTENT_CONTAINS_SWIFT.

like image 80
zaph Avatar answered Nov 03 '22 13:11

zaph