flutter_barcode_scanner
flutter_barcode_scanner copied to clipboard
Build issue when archiving with XCode 12 (big sur)
Description
I am running XCode 12 on Big Sur.
Build target: iOS 11
Swift Version: 5.0
flutter run
works perfectly.
pod install
runs perfectly.
When running build either through xcode or flutter build ipa
, the build fails with the following output. Legacy and new build system both fails the same way.
I've tried build targets ranging from 9.0-12.0 --still doesn't work.
↳
/Users/hayabusa/Desktop/Dev/collection/collection-experience-app/collection_experience_app/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'flutter_barcode_scanner' not found
@import flutter_barcode_scanner;
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
/Users/hayabusa/Desktop/Dev/collection/collection-experience-app/collection_experience_app/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'flutter_barcode_scanner' not found
@import flutter_barcode_scanner;
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
I followed all the iOS instructions. Not sure what might be wrong here...
I have the same problem. Any fixes for it yet?
Edit: Found a fix here https://github.com/flutter/flutter/issues/53573
Did you do a pub get ? I had it also and I run my app from android studio using my real device an iphone-Xs. It runs ok. After this I can do a build within Xcode and make a release build.
I was not able to reproduce this. Is the issue still there ?
I solved this problem by removing my Podfile and Podfile.lock files, then rerunning my app.
I have the same Xcode problem when I try Archive. flutter clean > flutter pub get > pod install I did, but I still have this error and No Archive in Organizer
