Skip to content

Invalid Swift Support: incorrect code signature or SwiftSupport folder is missing #43

Open
@alexeystrakh

Description

Summary

I'm working on my Swift 5.1 Framework Xamarin binding and was able to run it on an iOS 13 device and a simulator and even was able to validate against AppStore and uploaded it to the AppStore once the validation gave me no errors. The issue starts when I try to it on an iOS 12 device/simulator and (it was expected) it crashed because libswiftCore.dylib is missing. I’ve included the Xamarin.Swift 1.0.4 nuget and it worked, I was able to run it on the iOS 12 device. But when I pushed it to the AppStore - it gives me the missing SwiftSupport folder error:

ITMS-90426: Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it.

It seems that the step to create the SwiftSupport folder is manual and I followed instructions and ran this ipa-packager script to copy frameworks if required, basically the script just checks if there are any dylibs in the Framework folder of a given .app (and I do have a few). Eventually, the script is trying to find a singed version of the same dylib here /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/ but this folder in my dev env doesn’t have any, and the SwiftSupport folder ends up to be empty. When I try to publish new IPA with an empty SwiftSupport folder I can pass the error about missing folder but the first dylib check gives me an error right away:

ITMS-90433: Invalid Swift Support - The file libswiftCore.dylib doesn't have the correct code signature. Make sure you're using the correct signature, rebuild your app using the current public (GM) version of Xcode, and resubmit it. Don't just modify the code signature of libswiftCore.dylib.

Please advise how I can properly include the valid swift images into my payload. Did I miss an important step?

My environment

Xcode: 11.1
Swift: 5.1
iOS: 12.1+
VS4Mac: 8.3.1

Sample

My repo sample with the Swift Framework and Xamarin Sample app

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions