Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios device build error #11

Closed
jabonge opened this issue Nov 20, 2019 · 1 comment
Closed

ios device build error #11

jabonge opened this issue Nov 20, 2019 · 1 comment

Comments

@jabonge
Copy link

jabonge commented Nov 20, 2019

First of all Thank you for creating this library
pod install error
[!] The following Swift pods cannot yet be integrated as static libraries:

The Swift pod facebook_app_events depends upon FBSDKCoreKit, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set use_modular_headers! globally in your Podfile, or specify :modular_headers => true for particular dependencies.

i receive this error and i add top of podfile use_modular_headers! and pod install success but
build error comes
error -> facebook_app_events/facebook_app_events_Swift.h file not found

#import "FacebookAppEventsPlugin.h"
#import <facebook_app_events/facebook_app_events-Swift.h> <------------------------

@implementation FacebookAppEventsPlugin

  • (void)registerWithRegistrar:(NSObject*)registrar {
    [SwiftFacebookAppEventsPlugin registerWithRegistrar:registrar];
    }
    @EnD

flutter doctor ok
i'm using flutter sdk 1.9.1+hotfix.6
flutter_facebook_app_event 0.5.0

@jabonge jabonge changed the title In ios device ios device build error Nov 20, 2019
@jabonge
Copy link
Author

jabonge commented Nov 20, 2019

Fixed this issue See address below
flutter/flutter#16049
this site say change swift version -> 3.2 it is too old
we can use swift version -> 5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant