barcode_scan2
barcode_scan2 copied to clipboard
Module 'barcode_scan2' not found iOS
#import <barcode_scan2/BarcodeScanPlugin.h> #else @import barcode_scan2; #endif
/Volumes/files/projecFlutter/ezee_click_report/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'barcode_scan2' not found @import barcode_scan2; ~~~~~~~^~~~~~~~~~~~~ 1 error generated. /Volumes/files/projecFlutter/ezee_click_report/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'barcode_scan2' not found @import barcode_scan2; ~~~~~~~^~~~~~~~~~~~~
I found this error too.
I also ran into this error, was anyone able to resolve it?
+1, Any updates?
- this is not a bug.
- just xcode's shit.
- ref: https://github.com/flutter/flutter/issues/18305
- I have tested the following 2 solutions, both working fine.
solution1:
- use xcode, open
ios/Runner.xcworkspace
# not Runner.xcodeproj - check this file:
contents.xcworkspacedata
, if missgroup:Pods/Pods.xcodeproj
, add it.
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Runner.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
solution2:
open ios/Runner.xcodeproj
I checked Runner/Pods is empty in Xcode sidebar.
drop Pods/Pods.xcodeproj into Runner/Pods.
"Valid architectures" to only "arm64" (I removed armv7 armv7s)
- shit here:
@mbokinala @hirunsr
- this is not a bug.
- just xcode's shit.
- ref: ios build archive fails flutter/flutter#18305
- I have tested the following 2 solutions, both working fine.
solution1:
- use xcode, open
ios/Runner.xcworkspace
# not Runner.xcodeproj- check this file:
contents.xcworkspacedata
, if missgroup:Pods/Pods.xcodeproj
, add it.<?xml version="1.0" encoding="UTF-8"?> <Workspace version = "1.0"> <FileRef location = "group:Runner.xcodeproj"> </FileRef> <FileRef location = "group:Pods/Pods.xcodeproj"> </FileRef> </Workspace>
solution2:
open ios/Runner.xcodeproj I checked Runner/Pods is empty in Xcode sidebar. drop Pods/Pods.xcodeproj into Runner/Pods. "Valid architectures" to only "arm64" (I removed armv7 armv7s)
- shit here:
@mbokinala @hirunsr
I tried your two solutions, but the error still occurs
I also received the "Module 'barcode_scan2' not found"
Change your app's deployment target to 11.0 because latest barcode scanner's deployment target is 11.0
I have been this problembefore, In my case the rosetta is not compatible(wrong version) to my apple silicon(M1). So i am uninstall the Wrong Rosetta, and after that reinstall again using the proper version.
I also received the "Module 'barcode_scan2' not found"
Change your app's deployment target to 11.0 because latest barcode scanner's deployment target is 11.0
This works for me thank you