ricnaaru / adv_camera

Advanced Camera for Flutter
BSD 3-Clause "New" or "Revised" License
54 stars 35 forks source link

Cannot build iOS project with adv_camera library #55

Closed margorski closed 3 years ago

margorski commented 3 years ago

In my application, I use the newest version of adv_camera - 2.0.1. With Android, it works fine, but when I try to run flutter run on iOS I've got an error:

[... lot of warnings ...]
/Users/mac/tools/flutter/.pub-cache/hosted/pub.dartlang.org/adv_camera-2.0.1/ios/Classes/AdvCamera.swift:207:17: error: call to method 'setupLivePreview' in closure requires explicit use of 'self' to make capture semantics explicit
[... lot of warnings ...]

It looks like this line is treated as an error with a set to platform :ios, '10.0' . But version 10.0 is the minimum supported version with Firebase libraries version 8 and above.

Any ideas?