flutter build ipa --export-method=app-store
Make sure:
Your Xcode project is properly configured for automatic signing
The version and build number are correctly set
The deployment target is supported (14.0 is fine)
You’ve cleaned your build before retrying (optional but recommended)
Also try cleaning the build:
sh
Copy
Edit
flutter clean
flutter pub get
Then re-run:
sh
Copy
Edit
flutter build ipa --export-method=app-store
❗ Still seeing "Generic Xcode Archive"?
If the .xcarchive is showing "Generic Xcode Archive", it means Xcode couldn’t detect that this is an iOS app. Common reasons:
Missing PRODUCT_BUNDLE_IDENTIFIER in Runner target settings.
Invalid Info.plist (missing keys like CFBundleIdentifier, CFBundleShortVersionString, or CFBundleVersion).
Wrong build scheme — ensure you’re building the Runner scheme for Any iOS Device.
✅ Check in Xcode:
Open your .xcworkspace in Xcode, go to:
Runner → General tab
Make sure Display Name, Bundle Identifier, Version, and Build are all filled
Make sure your target device is set to "Any iOS Device (arm64)" before archiving
Then try archiving from Xcode directly to isolate the issue.