Invalid Swift Support (used cocoapods) - solved

Hi,


I'm having Problems with the submission of my App, I always receive "Invalid Swift support" via E-Mail.


In my App, I use own frameworks wich are exported as pods (cocoapods). All these frameworks don't use swift code, it's obj-c only. The pods are build with the flag "use_frameworks", to be able to use these pods/frameworks in swift projects in the future (currently only obj-c). In the App, Bitcode is disabled and target is only the iphoneOS (BaseSDK 10.1, Deployment Target 8.0).


In the podfile all the pods (own frameworks and some external pods) has been added. The App builds fine and runs as expected. An ad hoc deployment works too. The App installs and runs as expected.


But when I want to upload the App to the App Store, I always receive the message "Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it.". I've checked the ipa, there is no SwiftSupport Folder and in the Payload/frameworks folder are no swift libraries, because we only use obj-c. So I don't know, why the SwiftSupport Folder ist needed.


Does someone know what they check in the upload process that assumes, that SwiftSupport is needed (It's still obj-c only, but with cocoapods and use_frameworks flag)?


What I've tried:

1. Use the Flags "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES" or "EMBEDDED_CONTENT_CONTAINS_SWIFT" both with "YES" or "NO". I still got the same result.


2. Created a "SwiftSupport" Folder containing an empty "iphoneos" folder. After submit I received: "Invalid Swift Support - The SwiftSupport folder is empty. Rebuild your app using the current public (GM) version of Xcode and resubmit it."


3. Create a dummy swift file and added to the project (incuding briding header). Archived the App and checked the ipa. There was a SwiftSupport and containing "iphoneos" folder with the swift libraries, and in the /Payload/[Appname].app/Frameworks folder I see exact the same libraries. But after submitting to the store (tried Application Loader or Xcode), I received the following: "Invalid Swift Support - The files libswiftDarwin.dylib, libswiftDispatch.dylib, libswiftCoreGraphics.dylib, libswiftCore.dylib, libswiftFoundation.dylib, libswiftObjectiveC.dylib aren’t at the expected location /Payload/[Appname].app/Frameworks. Move the file to the expected location, rebuild your app using the current public (GM) version of Xcode, and resubmit it."


I double checked that, the files exists at the expected location!


Hope someone could help me with this problem.


Versions / Informations

Xcode Version 8.1 (8B62)

macOS Sierra Version 10.12.1

cocoapods 1.1.0.rc.3



Update:

Problem solved.


The Problem was an external pod "OpenCV-iOS" which caused all the problems with the swift support, after some modifications I was able to successfully upload an ipa to the store.

What was your solution?

Could you provide any more details about what caused the problem? I'm seeing a similar problem, but am not using that CocoaPod. I wonder what was the technical reason for that CocoaPod causing problems, in case I have something similar in another pod.

What did you see!? xkcd.com/979/

Invalid Swift Support (used cocoapods) - solved
 
 
Q