Upload to AppStore - ITMS-90426: Invalid Swift Support
martinmose opened this issue ยท 7 comments
Hello,
I'm encountering an issue while trying to upload to the AppStore.
Previously, I've successfully uploaded the app even with a shared Rust codebase. The main difference this time is that I'm using cargo swift
instead of building the .xcframework
myself ๐ฆ.
After the upload, I received this 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.
I've explored various solutions online to no avail. I'm uncertain if this is related to cargo swift
๐ค
Any insights or suggestions would be greatly appreciated! ๐
That's a tough one. I'll look into it, but no idea so far what is causing this.
Did you build the Swift package with the --release flag? Currently that's necessary.
Please try the following:
- Add "staticlib" to the lib-types in your Cargo.toml.
- Try building the Swift package with
cargo swift package --release --lib-type static
Ensure that the cargo build commands build a library that ends with .a and not .dylib. (You can see this in the console output of cargo swift).
Thank you for getting back so swiftly, as always ๐ช.
Using --lib-type static
solved the "issue"! ๐ฅณ
My apologies, I should've looked into that earlier. It's quite logical now that I think about it.
I'm glad this solved the issue. (This was just a random guess ๐ )
Thanks for reporting this, maybe I should deprecate the dylib option entirely (or find out if there is something missing that allows using dylib in App Store)
I must say I'm partial to the dylib option. Given that I manage three separate repositories (iOS, Android, and Shared code), the ability to check in all necessary files is highly beneficial. Working with .a files poses challenges due to their size, especially when dealing with Git. If we could pinpoint what's preventing the use of dylib in the App Store, that would indeed be invaluable. ๐
Did you have a successful App Store build so far with dylibs?
Let's move this discussion to #36