Поскольку я обновляю Flutter на стабильном канале, я не могу работать на симуляторах IOS. Это ошибка, которая часто появляется только при обновлении Flutter, и, несмотря на мои исследования, я не могу найти никаких решений. Я попытался удалить Podfile.lock, обновить модуль и переустановить, изменить канал и обновить, но всегда одна и та же ошибка.
Flutter doctor:
[✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.15.3 19D76, locale en-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.45.0)
[✓] Connected device (3 available)
• No issues found!
Начало журнала:
Xcode build done. 12.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET gRPC-Core OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/flo/.pub-cache/hosted/pub.dartlang.org/camera-0.4.3+2/ios/Classes/CameraPlugin.m:62:2
4: warning: 'AVCapturePhotoOutput' is only available on iOS 10.0 or newer
[-Wunguarded-availability]
- (void)captureOutput:(AVCapturePhotoOutput *)output
^
In module 'AVFoundation' imported from
/Users/flo/.pub-cache/hosted/pub.dartlang.org/camera-0.4.3+2/ios/Classes/CameraPlugin.m:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
/iPhoneSimulator13.2.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureP
hotoOutput.h:48:12: note: 'AVCapturePhotoOutput' has been marked as being introduced in iOS
10.0 here, but the deployment target is iOS 8.0.0
@interface AVCapturePhotoOutput : AVCaptureOutput