AmolGangadhare / flutter_barcode_scanner

Barcode scanner plugin for flutter. Supports barcode scanning for Android and iOS
https://pub.dev/packages/flutter_barcode_scanner
MIT License
379 stars 453 forks source link

Build issue when archiving with XCode 12 (big sur) #152

Open cvince opened 3 years ago

cvince commented 3 years ago

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...

dejvizelo-nmc commented 3 years ago

I have the same problem. Any fixes for it yet?

Edit: Found a fix here https://github.com/flutter/flutter/issues/53573

johandb commented 3 years ago

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.

AmolGangadhare commented 3 years ago

I was not able to reproduce this. Is the issue still there ?

lijmr commented 3 years ago

I solved this problem by removing my Podfile and Podfile.lock files, then rerunning my app.

secretused commented 2 years ago

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

スクリーンショット 2022-04-20 18 43 45