First, thanks for sharing this project - looks good!
I have XCode 10.1
Do I need to do anything special?
Launching lib/main.dart on iPhone XR in debug mode...
Xcode build done. 8.2s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET camera OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:68:24: warning: 'AVCapturePhotoOutput' is only available on iOS 10.0 or newer [-Wunguarded-availability]
- (void)captureOutput:(AVCapturePhotoOutput *)output
^
In module 'AVFoundation' imported from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:46:12: note: 'AVCapturePhotoOutput' has been explicitly marked partial here
@interface AVCapturePhotoOutput : AVCaptureOutput
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:68:1: note: annotate 'captureOutput:didFinishProcessingPhotoSampleBuffer:previewPhotoSampleBuffer:resolvedSettings:bracketSettings:error:' with an availability attribute to silence this warning
- (void)captureOutput:(AVCapturePhotoOutput *)output
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:71:43: warning: 'AVCaptureResolvedPhotoSettings' is only available on iOS 10.0 or newer [-Wunguarded-availability]
resolvedSettings:(AVCaptureResolvedPhotoSettings *)resolvedSettings
^
In module 'AVFoundation' imported from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1174:12: note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked partial here
@interface AVCaptureResolvedPhotoSettings : NSObject
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:68:1: note: annotate 'captureOutput:didFinishProcessingPhotoSampleBuffer:previewPhotoSampleBuffer:resolvedSettings:bracketSettings:error:' with an availability attribute to silence this warning
- (void)captureOutput:(AVCapturePhotoOutput *)output
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:80:7: warning: 'JPEGPhotoDataRepresentationForJPEGSampleBuffer:previewPhotoSampleBuffer:' is only available on iOS 10.0 or newer [-Wunguarded-availability]
JPEGPhotoDataRepresentationForJPEGSampleBuffer:photoSampleBuffer
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'AVFoundation' imported from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:423:1: note: 'JPEGPhotoDataRepresentationForJPEGSampleBuffer:previewPhotoSampleBuffer:' has been explicitly marked partial here
+ (nullable NSData *)JPEGPhotoDataRepresentationForJPEGSampleBuffer:(CMSampleBufferRef)JPEGSampleBuffer previewPhotoSampleBuffer:(nullable CMSampleBufferRef)previewPhotoSampleBuffer API_DEPRECATED("Use -[AVCapturePhoto fileDataRepresentation] instead.", ios(10.0, 11.0));
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:80:7: note: enclose 'JPEGPhotoDataRepresentationForJPEGSampleBuffer:previewPhotoSampleBuffer:' in an @available check to silence this warning
JPEGPhotoDataRepresentationForJPEGSampleBuffer:photoSampleBuffer
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:79:19: warning: 'AVCapturePhotoOutput' is only available on iOS 10.0 or newer [-Wunguarded-availability]
NSData *data = [AVCapturePhotoOutput
^~~~~~~~~~~~~~~~~~~~
In module 'AVFoundation' imported from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:46:12: note: 'AVCapturePhotoOutput' has been explicitly marked partial here
@interface AVCapturePhotoOutput : AVCaptureOutput
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:79:19: note: enclose 'AVCapturePhotoOutput' in an @available check to silence this warning
NSData *data = [AVCapturePhotoOutput
^~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:129:52: warning: this block declaration is not a prototype [-Wstrict-prototypes]
@property(nonatomic, copy) void (^onFrameAvailable)();
^
void
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:135:32: warning: 'AVCapturePhotoOutput' is only available on iOS 10.0 or newer [-Wunguarded-availability]
@property(readonly, nonatomic) AVCapturePhotoOutput *capturePhotoOutput;
^
In module 'AVFoundation' imported from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:46:12: note: 'AVCapturePhotoOutput' has been explicitly marked partial here
@interface AVCapturePhotoOutput : AVCaptureOutput
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:124:12: note: annotate 'FLTCam' with an availability attribute to silence this warning
@interface FLTCam : NSObject <FlutterTexture,
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:221:26: warning: 'AVCapturePhotoOutput' is only available on iOS 10.0 or newer [-Wunguarded-availability]
_capturePhotoOutput = [AVCapturePhotoOutput new];
^~~~~~~~~~~~~~~~~~~~
In module 'AVFoundation' imported from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:46:12: note: 'AVCapturePhotoOutput' has been explicitly marked partial here
@interface AVCapturePhotoOutput : AVCaptureOutput
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:221:26: note: enclose 'AVCapturePhotoOutput' in an @available check to silence this warning
_capturePhotoOutput = [AVCapturePhotoOutput new];
^~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:239:3: warning: 'AVCapturePhotoSettings' is only available on iOS 10.0 or newer [-Wunguarded-availability]
AVCapturePhotoSettings *settings = [AVCapturePhotoSettings photoSettings];
^~~~~~~~~~~~~~~~~~~~~~
In module 'AVFoundation' imported from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:691:12: note: 'AVCapturePhotoSettings' has been explicitly marked partial here
@interface AVCapturePhotoSettings : NSObject <NSCopying>
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:239:3: note: enclose 'AVCapturePhotoSettings' in an @available check to silence this warning
AVCapturePhotoSettings *settings = [AVCapturePhotoSettings photoSettings];
^~~~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:239:39: warning: 'AVCapturePhotoSettings' is only available on iOS 10.0 or newer [-Wunguarded-availability]
AVCapturePhotoSettings *settings = [AVCapturePhotoSettings photoSettings];
^~~~~~~~~~~~~~~~~~~~~~
In module 'AVFoundation' imported from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:691:12: note: 'AVCapturePhotoSettings' has been explicitly marked partial here
@interface AVCapturePhotoSettings : NSObject <NSCopying>
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:239:39: note: enclose 'AVCapturePhotoSettings' in an @available check to silence this warning
AVCapturePhotoSettings *settings = [AVCapturePhotoSettings photoSettings];
^~~~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:684:10: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
[_registry textureFrameAvailable:textureId];
^
self->
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:642:5: warning: 'AVCaptureDeviceDiscoverySession' is only available on iOS 10.0 or newer [-Wunguarded-availability]
AVCaptureDeviceDiscoverySession *discoverySession = [AVCaptureDeviceDiscoverySession
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'AVFoundation' imported from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1711:12: note: 'AVCaptureDeviceDiscoverySession' has been explicitly marked partial here
@interface AVCaptureDeviceDiscoverySession : NSObject
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:642:5: note: enclose 'AVCaptureDeviceDiscoverySession' in an @available check to silence this warning
AVCaptureDeviceDiscoverySession *discoverySession = [AVCaptureDeviceDiscoverySession
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:642:58: warning: 'AVCaptureDeviceDiscoverySession' is only available on iOS 10.0 or newer [-Wunguarded-availability]
AVCaptureDeviceDiscoverySession *discoverySession = [AVCaptureDeviceDiscoverySession
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'AVFoundation' imported from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1711:12: note: 'AVCaptureDeviceDiscoverySession' has been explicitly marked partial here
@interface AVCaptureDeviceDiscoverySession : NSObject
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:642:58: note: enclose 'AVCaptureDeviceDiscoverySession' in an @available check to silence this warning
AVCaptureDeviceDiscoverySession *discoverySession = [AVCaptureDeviceDiscoverySession
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:643:44: warning: 'AVCaptureDeviceTypeBuiltInWideAngleCamera' is only available on iOS 10.0 or newer [-Wunguarded-availability]
discoverySessionWithDeviceTypes:@[ AVCaptureDeviceTypeBuiltInWideAngleCamera ]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'AVFoundation' imported from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:441:38: note: 'AVCaptureDeviceTypeBuiltInWideAngleCamera' has been explicitly marked partial here
AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macos) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.2.9+1/ios/Classes/CameraPlugin.m:643:44: note: enclose 'AVCaptureDeviceTypeBuiltInWideAngleCamera' in an @available check to silence this warning
discoverySessionWithDeviceTypes:@[ AVCaptureDeviceTypeBuiltInWideAngleCamera ]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13 warnings generated.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/bartonhammond/projects/flutter_poc/ios/Runner/AppDelegate.m:15:36: error: expected ';' at end of declaration
__weak typeof(self) weakSelf = self
^
;
1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone XR.
Exited (sigterm)
First, thanks for sharing this project - looks good!
I have XCode 10.1
Do I need to do anything special?