I’m facing the following issue while submitting my Flutter iOS app to App Store Connect:
ITMS-90429: Invalid Swift Support - The files libswiftDarwin.dylib, libswiftMetal.dylib, libswiftCoreAudio.dylib, libswiftsimd.dylib, libswiftQuartzCore.dylib, libswiftos.dylib, libswiftObjectiveC.dylib, libswiftDispatch.dylib, libswiftCoreGraphics.dylib, libswiftCoreFoundation.dylib, libswiftUIKit.dylib, libswiftCoreMedia.dylib, libswiftCore.dylib, libswiftFoundation.dylib, libswiftCoreImage.dylib aren’t at the expected location /Payload/Runner.app/Frameworks. Move the file to the expected location, rebuild your app using the current public (GM) version of Xcode, and resubmit it.
My project is a Flutter iOS application that uses a static C++ .a library, which I integrated via a custom .podspec file.
However, the project does not contain any Swift code.
Could you please help me understand why these Swift libraries are being included in the IPA build?
Also, how should I properly configure the Podspec or Xcode project to prevent this issue when using a static C++ library in Flutter iOS?
Thank you in advance for your guidance.