Xcode's output:
↳
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/FBSDKLikeButton.m:31:17: warning: implementing deprecated class
[-Wdeprecated-implementations]
@implementation FBSDKLikeButton
^
In file included from
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/FBSDKLikeButton.m:19:
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/FBSDKLikeButton.h:36:12: note: class declared here
@interface FBSDKLikeButton : FBSDKButton
^
1 warning generated.
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:66:3: error: unknown type name
'FBSDKGraphRequestHandler'; did you mean 'FBSDKGraphRequestError'?
FBSDKGraphRequestHandler startRequestCompletionHandler = ^(FBSDKGraphRequestConnection
connection, id result, NSError error)
^~~~~~~~
FBSDKGraphRequestError
In file included from
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:19:
In file included from
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.h:21:
In file included from
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/Headers/Private/FBSDKC
oreKit/FBSDKCoreKit.h:63:
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/Headers/Private/FBSDKC
oreKit/FBSDKConstants.h:337:29: note: 'FBSDKGraphRequestError' declared here
typedef NS_ENUM(NSUInteger, FBSDKGraphRequestError)
^
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:78:19: error: no known class method for
selector 'fbErrorWithDomain:code:message:'
[NSError fbErrorWithDomain:FBSDKShareErrorDomain
^~~~~~~~~~~
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:66:28: error: initializing
'FBSDKGraphRequestError' (aka 'enum FBSDKGraphRequestError') with an expression of
incompatible type 'void (^)(FBSDKGraphRequestConnection strong, strong id, NSError
__strong)'
FBSDKGraphRequestHandler startRequestCompletionHandler = ^(FBSDKGraphRequestConnection
connection, id result, NSError error)
^
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:92:15: error: no known class method for
selector 'fbErrorWithDomain:code:message:'
[NSError fbErrorWithDomain:FBSDKShareErrorDomain
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:125:19: error: no known class method for
selector 'fbErrorWithDomain:code:message:'
[NSError fbErrorWithDomain:FBSDKShareErrorDomain
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:134:100: warning: null passed to a callee
that requires a non-null argument [-Wnonnull]
FBSDKGraphRequestDataAttachment *dataAttachment = [[FBSDKGraphRequestDataAttachment
alloc] initWithData:data
^
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:176:19: error: no known class method for
selector 'fbErrorWithDomain:code:message:'
[NSError fbErrorWithDomain:FBSDKShareErrorDomain
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:197:15: error: no known class method for
selector 'fbErrorWithDomain:code:message:'
[NSError fbErrorWithDomain:FBSDKShareErrorDomain
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:204:15: error: no known class method for
selector 'fbErrorWithDomain:code:message:'
[NSError fbErrorWithDomain:FBSDKShareErrorDomain
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 8 errors generated.
note: Using new build system
note: Planning build
note: Constructing build description
Thanks for the very simple and straightforward plugin. It works on Android.
On iOS however, even the example you have included doesn't compile. Can you help ?
END: Underlying device preparation errors == BUILD FAILED
Xcode's output: ↳ /Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha reKit/FBSDKShareKit/FBSDKLikeButton.m:31:17: warning: implementing deprecated class [-Wdeprecated-implementations] @implementation FBSDKLikeButton ^ In file included from /Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha reKit/FBSDKShareKit/FBSDKLikeButton.m:19: /Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha reKit/FBSDKShareKit/FBSDKLikeButton.h:36:12: note: class declared here @interface FBSDKLikeButton : FBSDKButton
^
1 warning generated.
/Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha
reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:66:3: error: unknown type name
'FBSDKGraphRequestHandler'; did you mean 'FBSDKGraphRequestError'?
FBSDKGraphRequestHandler startRequestCompletionHandler = ^(FBSDKGraphRequestConnection
connection, id result, NSError error)
^
~~~~~~~ FBSDKGraphRequestError In file included from /Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:19: In file included from /Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.h:21: In file included from /Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/Headers/Private/FBSDKC oreKit/FBSDKCoreKit.h:63: /Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/Headers/Private/FBSDKC oreKit/FBSDKConstants.h:337:29: note: 'FBSDKGraphRequestError' declared here typedef NS_ENUM(NSUInteger, FBSDKGraphRequestError) ^ /Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:78:19: error: no known class method for selector 'fbErrorWithDomain:code:message:' [NSError fbErrorWithDomain:FBSDKShareErrorDomain ^~~~~~~~~~~ /Users/hermit.dave/Dev/facebook_share/facebook_share/example/ios/Pods/FBSDKShareKit/FBSDKSha reKit/FBSDKShareKit/Internal/FBSDKVideoUploader.m:66:28: error: initializing 'FBSDKGraphRequestError' (aka 'enum FBSDKGraphRequestError') with an expression of incompatible type 'void (^)(FBSDKGraphRequestConnection strong, strong id, NSError __strong)' FBSDKGraphRequestHandler startRequestCompletionHandler = ^(FBSDKGraphRequestConnection connection, id result, NSError error) ^Encountered error while building for device.