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

'admob_flutter/admob_flutter-Swift.h' file not found #22

Closed
helloimfrog opened this issue Apr 22, 2019 · 3 comments
Closed

'admob_flutter/admob_flutter-Swift.h' file not found #22

helloimfrog opened this issue Apr 22, 2019 · 3 comments
Labels
question Further information is requested

Comments

@helloimfrog
Copy link

helloimfrog commented Apr 22, 2019

I'm using XCode 10.2.1 to build. After install this library, i've got this error in AdmobFlutterPlugin.m

#import "AdmobFlutterPlugin.h"
#import <admob_flutter/admob_flutter-Swift.h> // Error in this line: 'admob_flutter/admob_flutter-Swift.h' file not found

@implementation AdmobFlutterPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
  [SwiftAdmobFlutterPlugin registerWithRegistrar:registrar];
}
@end

How to fix this error? :(
And, how to skip install this library when i execute pod install? Because i want this library only work with android.

@kmcgill88 kmcgill88 added the question Further information is requested label May 23, 2019
@mmahkamov
Copy link

This happens when your Flutter app was created without Swift support on the iOS side.

Read this comment to add Swift support to your Flutter app: flutter/flutter#16049 (comment)

For Xcode 10.2 you'll need to specify 4.0, 4.2 or 5.0 as SWIFT_VERSION.

Worked for me.

@helloimfrog
Copy link
Author

Thank you so much! I fixed this problem! <3

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

No branches or pull requests

4 participants