5 Replies
      Latest reply on Jan 5, 2016 9:28 AM by Thompson
      3no Level 1 Level 1 (0 points)

        I can (finally) submit without apparent errors, but then I receive this email:


        Dear developer,

        We have discovered one or more issues with your recent delivery for "Xxxx". To process your delivery, the following issues must be corrected:

        Invalid Swift Support - The Watch OS application has Swift libraries at both /Payload/Xxxx.app/Xxxx WatchKit App.app/Xxxx WatchKit Extension.appex/Frameworks/ and /Payload/Xxxx.app/Xxxx WatchKit App.app/Frameworks/. Remove all of the Swift libraries from one of the locations and resubmit your app.

        Once these issues have been corrected, you can then redeliver the corrected binary.


        The App Store team


        I assume it's NOT telling me to edit the ipa to remove the duplicate libraries. But I don't know what Build Settings or other configuration is driving the generation of duplicate libraries in the payload.



        • Re: Xcode 7 GM ITC submission - "Invalid Swift Support" - multiple Swift libraries in WatchKit App
          mochs Level 1 Level 1 (0 points)

          My anwer from here: https://forums.developer.apple.com/thread/17063?sr=stream&ru=18990


          Possible solution:


          After struggling with this for three days now, we do have a solution that works for us and hopefully works for some of you as well:


          It seems like that creating the .ipa your self e.g. through a continuous integration server is NOT possible anymore as it then contains the wrong swift and watch kit support files. So the first thing you should try is:


          Archive and upload your app through Xcode 7 GM.


          This, however, didn't work for as either as the 'Upload to App Store...' button was grayed out because Xcode marked the created archive as 'Generic Xcode Archive' instead of 'iOS App Archive'.


          It turns out, this happens when you have cocoapods link a framework to a watchOS 2 application.


          To fix this we had to digg a little bit deeper into the archive: Open the archive in the Finder, right click on it and chose 'Show package contents'. Open the 'Info.plist' of the archive in a text editor and add the following:


            <string>iPhone Distribution: <<CERTIFICATE_NAME>> (<<CERTIFICATE_ID>>)</string> 


          If you have an old, working archive, you can copy the values from there and simply change the marketing version and the build number.


          After closing Xcode and restarting it, the archive was shown as 'iOS App Archive' and we could successfully upload the binary to the app store through Xcode.


          Note: I filled the ipa generation issue under rdar://22683061 and the cocoapods releated archive building issue under rdar://22682898

          • Re: Xcode 7 GM ITC submission - "Invalid Swift Support" - multiple Swift libraries in WatchKit App
            rinopoteb Level 1 Level 1 (0 points)

            I had the same issue, but was a able to fix it by changing an Build Setting:


            1. Open the Build Settings for Xxxx WatchKit Extension
            2. Change "Embedded Content Contains Swift Code" from Yes to No