SDAVAssetExportSession
SDAVAssetExportSession copied to clipboard
XCode 9: This block declaration is not a prototype
XCode 9 with the recommended settings issues a warning for 3 lines. Suggested fixes:
In the .h file
-- (void)exportAsynchronouslyWithCompletionHandler:(void (^)())handler;
+- (void)exportAsynchronouslyWithCompletionHandler:(void (^)(void))handler;
In the .m file
-@property (nonatomic, strong) void (^completionHandler)();
+@property (nonatomic, strong) void (^completionHandler)(void);
and
-- (void)exportAsynchronouslyWithCompletionHandler:(void (^)())handler
+- (void)exportAsynchronouslyWithCompletionHandler:(void (^)(void))handler
@rs Would there be any problem to change these lines with the recommended fixes?
This could help you. It is a little different than your question but I think they are related anyways. https://stackoverflow.com/questions/44473146/this-function-declaration-is-not-a-prototype-warning-in-xcode-9