iOs build fails with FacebookLogin package

0 votes

I'm currently using the Facebook Login package for Flutter for a Flutter app that I'm developing and I'm having problems with building it in iOs.

I've followed all the steps in the guide and works fine in Android but when I try to run it in iOs simulator I have this output

Launching lib/main.dart on iPhone X in debug mode...
Running pod install...
Starting Xcode build...
Xcode build done.                                            3.0s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    In file included from /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKPaymentObserver.m:23:
    In file included from /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKAppEvents+Internal.h:19:
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:33:19: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
    FOUNDATION_EXPORT NSNotificationName const FBSDKAppEventsLoggingResultNotification;
                      ^
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:33:19: note: insert '_Nullable' if the pointer may be null
    FOUNDATION_EXPORT NSNotificationName const FBSDKAppEventsLoggingResultNotification;
                      ^
                                         _Nullable
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:33:19: note: insert '_Nonnull' if the pointer should never be null
    FOUNDATION_EXPORT NSNotificationName const FBSDKAppEventsLoggingResultNotification;
                      ^
                                         _Nonnull
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:700:13: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
    + (NSString *)getUserData;
                ^
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:700:13: note: insert '_Nullable' if the pointer may be null
    + (NSString *)getUserData;
                ^
                 _Nullable
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:700:13: note: insert '_Nonnull' if the pointer should never be null
    + (NSString *)getUserData;
                ^
                 _Nonnull
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:714:44: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
    + (void)updateUserProperties:(NSDictionary *)properties handler:(FBSDKGraphRequestHandler)handler;
                                               ^
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:714:44: note: insert '_Nullable' if the pointer may be null
    + (void)updateUserProperties:(NSDictionary *)properties handler:(FBSDKGraphRequestHandler)handler;
                                               ^
                                                _Nullable
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:714:44: note: insert '_Nonnull' if the pointer should never be null
    + (void)updateUserProperties:(NSDictionary *)properties handler:(FBSDKGraphRequestHandler)handler;
                                               ^
                                                _Nonnull
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:714:66: warning: block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
    + (void)updateUserProperties:(NSDictionary *)properties handler:(FBSDKGraphRequestHandler)handler;
                                                                     ^
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:714:66: note: insert '_Nullable' if the block pointer may be null
    + (void)updateUserProperties:(NSDictionary *)properties handler:(FBSDKGraphRequestHandler)handler;
                                                                     ^
                                                                                              _Nullable 
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:714:66: note: insert '_Nonnull' if the block pointer should never be null
    + (void)updateUserProperties:(NSDictionary *)properties handler:(FBSDKGraphRequestHandler)handler;
                                                                     ^
                                                                                              _Nonnull 
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:726:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
    + (void)augmentHybridWKWebView:(WKWebView *)webView;
                                              ^
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:726:43: note: insert '_Nullable' if the pointer may be null
    + (void)augmentHybridWKWebView:(WKWebView *)webView;
                                              ^
                                               _Nullable
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.h:726:43: note: insert '_Nonnull' if the pointer should never be null
    + (void)augmentHybridWKWebView:(WKWebView *)webView;
                                              ^
                                               _Nonnull
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKPaymentObserver.m:242:38: error: property 'subscriptionPeriod' not found on object of type 'SKProduct *'
          BOOL isSubscription = (product.subscriptionPeriod != nil) && ((unsigned long)product.subscriptionPeriod.numberOfUnits > 0);
                                         ^
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKPaymentObserver.m:242:92: error: property 'subscriptionPeriod' not found on object of type 'SKProduct *'
          BOOL isSubscription = (product.subscriptionPeriod != nil) && ((unsigned long)product.subscriptionPeriod.numberOfUnits > 0);
                                                                                               ^
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKPaymentObserver.m:248:9: error: use of undeclared identifier 'SKProductSubscriptionPeriod'
            SKProductSubscriptionPeriod *period = product.subscriptionPeriod;
            ^
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKPaymentObserver.m:248:38: error: use of undeclared identifier 'period'
            SKProductSubscriptionPeriod *period = product.subscriptionPeriod;
                                         ^
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKPaymentObserver.m:248:55: error: property 'subscriptionPeriod' not found on object of type 'SKProduct *'
            SKProductSubscriptionPeriod *period = product.subscriptionPeriod;
                                                          ^
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKPaymentObserver.m:250:17: error: use of undeclared identifier 'period'
            switch (period.unit) {
                    ^
    /Users/javier/Documents/Android_Studio_Projects/squat_app/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKPaymentObserver.m:256:76: error: use of undeclared identifier 'period'
            NSString *p = [NSString stringWithFormat:@"P%lu%@", (unsigned long)period.numberOfUnits, unit];
                                                                               ^
    5 warnings and 7 errors generated.
Could not build the application for the simulator.
Error launching application on iPhone X.

I did flutter clean and pod update in the ios folder but keeps crashing. I don't know what's happening and if it's more a package problem than mine.

Here's the output of my flutter doctor -v

[✓] Flutter (Channel beta, v0.9.4, on Mac OS X 10.12.6 16G1036, locale en-ES)
    • Flutter version 0.9.4 at /Users/javier/Documents/flutter
    • Framework revision f37c235c32 (4 weeks ago), 2018-09-25 17:45:40 -0400
    • Engine revision 74625aed32
    • Dart version 2.1.0-dev.5.0.flutter-a2eb050044

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/javier/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.0, Build version 9A235
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 29.1.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] Connected devices (2 available)
    • Mi A1    • 1f95603a0804                         • android-arm64 • Android 8.1.0 (API 27)
    • iPhone X • 32CD2ECE-8C12-4F3A-B768-E1568B9754A7 • ios           • iOS 11.0 (simulator)

I'd appreciate if someone could help me finding the cause of this issue because I'm pretty lost right now.

Thanks in advance!


 

Nov 10, 2022 in Mobile Development by gaurav
• 23,260 points
810 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Mobile Development

0 votes
0 answers

How to receive single tap and hold Remote-Control Event with iOS

I'm looking for my app to listen ...READ MORE

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
450 views
0 votes
0 answers

FB Login not working with React Native iOS v13+

I've a project with following configuration. "react": "16.8.3", "react-native": ...READ MORE

Nov 10, 2022 in Mobile Development by gaurav
• 23,260 points
1,247 views
0 votes
0 answers

ionic build ios error ( ionic cordova build ios )

When i run "ionic cordova build ios" ...READ MORE

Nov 15, 2022 in Mobile Development by gaurav
• 23,260 points
809 views
0 votes
0 answers
0 votes
0 answers
0 votes
0 answers

How to receive single tap and hold Remote-Control Event with iOS?

I'm looking for my app to listen ...READ MORE

Nov 30, 2022 in Mobile Development by gaurav
• 23,260 points
309 views
0 votes
1 answer

iOS Post to Facebook shows m.facebook.com

From your Feed, tap Search Facebook at ...READ MORE

answered Nov 4, 2022 in Others by gaurav
• 23,260 points
486 views
0 votes
0 answers

iOS Post to Facebook shows m.facebook.com

My iOS app is posting an in-app ...READ MORE

Sep 23, 2022 in Others by gaurav
• 23,260 points
422 views
0 votes
0 answers

touch.facebook.com on iPhone giving me "Entity 'nbsp' not defined"

Thanks to Logan and this url structure, ...READ MORE

Sep 27, 2022 in IOS by Soham
• 9,710 points
609 views
0 votes
0 answers

Facebook iOS 9 SDK login redirects to mbasic.facebook.com on Safari

I'm using the iOS 9 Facebook SDK to manage ...READ MORE

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
1,342 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP