Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter: Parse Issue (Xcode): Module 'camera_avfoundation' not found

Tags:

xcode

ios

flutter

I get this error when I run flutter build ios on my MAC terminal:

Parse Issue (Xcode): Module 'camera_avfoundation' not found /Users/stackoverflow/Documents/flow-app/ios/Runner/GeneratedPluginRegistrant.m:11:8

I also run try to build from Xcode but got the same error.

#if __has_include(<camera_avfoundation/CameraPlugin.h>)
#import <camera_avfoundation/CameraPlugin.h>
#else
@import camera_avfoundation;
#endif

I have regenerated the pod file and installed again but it does not work.

like image 484
Obot Ernest Avatar asked Jun 14 '26 04:06

Obot Ernest


1 Answers

Solution

  1. Backup the current native folders(renaming./android and ./iOS)
  2. Close Xcode
  3. Go to the root folder and run flutter create . (this will generate the native folders)
  4. Now your new profile contains all you need.
  5. Open Podfile and uncomment platform:ios,'11'. set it to 12
  6. Open the .workspace of the ./iOS
  7. Set the signing & capabilities
  8. Set deployment version
  9. Run flutter build iOS
  10. Then finally run flutter build ipa
like image 60
Obot Ernest Avatar answered Jun 16 '26 17:06

Obot Ernest



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!