sawankumarbundelkhandi / edge_detection

This is a flutter plugin to detect edges in a live camera, take the picture of detected edges object, crop it, and save.
https://pub.dev/packages/edge_detection
Apache License 2.0
251 stars 247 forks source link

wift Compiler Error (Xcode): Could not find module 'WeScan' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator #89

Open huylethanh opened 2 years ago

huylethanh commented 2 years ago

I got the issue when try to run the app after install the package in IOS simulator, i got the error like wift Compiler Error (Xcode): Could not find module 'WeScan' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator

I found in the edge_detection.podspec, there is the line s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }

I clone the source code and remove the 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386'. The app build success in simulator.

Please fix the issue on IOS simulator.

huuphudn2017 commented 8 months ago

Same

huuphudn2017 commented 8 months ago

Worked for me, try this -> https://github.com/huuphudn2017/edge_detection/commit/5fb58993cf62fc5ae3beb46edbb9bb9f67cb8066