Ionic.IOS he file libswiftAVFoundation.dylib doesn’t have the correct code signature

Hello, I had an error when publishing an IONIC 5 app to the appleStore.
This was the warning: "The file libswiftAVFoundation.dylib doesn’t have the correct code signature.

image

Can someone help me?

Some issue here.

ITMS-90433: Invalid Swift Support - The file libswiftAVFoundation.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 libswiftAVFoundation.dylib.

Is this your first publish or is this message new to you?

Problem was solved after a clean up of the compile directory.

Maybe this is a good read about the problem: Invalid Swift Support - The file libswiftCore.dylib doesn’t have the correct code signature. · Issue #59830 · flutter/flutter · GitHub

1 Like

It’s my first publication

I just ran into this on my build. I don’t have a solution yet though. Were you ever able to find one?

Update: I ended up doing an NPM update and the next build seems to have worked

You should try to clean up the compile directory in XCode, forgot so say. Not the ionic compile dir.
After that, everything worked well for me.

If you’re using Appflow:

  1. Clear your xCode cache
  2. Rebuild the app
  3. Commit the changes that were made on project.pbxproj.
  4. Rerun Appflow build on the new commit.

Hope it helps :slight_smile: