App Store Connect Error

I am trying to archive an app on XCode in order to update it on AppStore and I keep getting this error when validating the archive file:

App Store Connect Operation Error

Invalid Swift Support. The file Runner.app/Frameworks/.last_build_id doesn’t have the correct file type for this location. Ensure you’re using the correct file, rebuild your app using the current public (GM) version of Xcode, and resubmit it.


Things to keep in mind:
  1. 'Runner.app' is the name of the app as it is a Flutter app

  2. I have installed XCode directly from the website and not AppStore as I didn't have nearly enough memory to install it from AppStore

  3. I have XCode 12.3 installed

  4. I have tried all the 'regular' steps like 'flutter clean', XCode clean, deleting cache, reinstalling pods...



Hey Lukak,

Were you able to fix this? I am running into the same issue with XCode 12.4 and Flutter.
I had exactly the same issue. XCode 12.4 and Flutter Channel dev, 2.1.0-10.0.pre.

Fixed it by reverting back to beta channel, Flutter 2.0.1

Macco's solution worked for me.

For my solution, I had changed the Flutter channel to Stable. Then, flutter clean -> pod install -> Clean Build Folder and Archive again. It worked well.

App Store Connect Error
 
 
Q