-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Swift Support: incorrect code signature
or SwiftSupport folder is missing
#43
Comments
@Flash3001 Lucas, did you have a chance to look into this issue? |
I was able to repack the package using the updated ipa-packager script and can see the SwiftSupport folder now. The source path for the original swift libs is correct now and the script can find them, copy to the SwiftSupport folder and repack the .ipa. The app can be uploaded now, but, unfortunately, the package is still rejected:
I can see that the script is trying to copy signed versions of the swift dylibs to the SwiftSupport folder based on what it sees in the .app/Frameworks/ folder, and lipo tools gives that all 4 platforms are needeed:
So, as a result, the script colies dylibs as-is from the Xcode folder to the SwiftSupport.iphoneos folder. |
Hey @alexeystrakh are you sure this issue is with the Swift libraries? The error message from Apple points to arm64e being included on SwiftFrameworkProxy. Do you have access to the source code of that library? Can you remove this arch from the build settings? |
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: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 anydylibs
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 samedylib
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 theSwiftSupport
folder ends up to be empty. When I try to publish new IPA with an emptySwiftSupport
folder I can pass the error about missing folder but the firstdylib
check gives me an error right away: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
The text was updated successfully, but these errors were encountered: