flutter_barcode_scanner icon indicating copy to clipboard operation
flutter_barcode_scanner copied to clipboard

Build issue when archiving with XCode 12 (big sur)

Open cvince opened this issue 4 years ago • 5 comments

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

cvince avatar Jan 19 '21 21:01 cvince

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

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

dejvizelo-nmc avatar Apr 05 '21 14:04 dejvizelo-nmc

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.

johandb avatar Apr 11 '21 13:04 johandb

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

AmolGangadhare avatar Apr 25 '21 00:04 AmolGangadhare

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

lijmr avatar Jul 09 '21 05:07 lijmr

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

secretused avatar Apr 20 '22 09:04 secretused