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

Version 0.6.0 iOS not building #38

Closed
davidBarbieri opened this issue May 26, 2020 · 7 comments
Closed

Version 0.6.0 iOS not building #38

davidBarbieri opened this issue May 26, 2020 · 7 comments

Comments

@davidBarbieri
Copy link

Hi, thanks for this great plugin.

I used the git version for IOS and it was working correctly, i updated now to version 0.6.0 but can't get the build to work. i tried with pod deintegrate pod update, deleting the pods folder, podfile.lock, but to no avail.

The error i get is:

`
=== BUILD TARGET facebook_audience_network OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/davidbarbieri/development/flutter/.pub-cache/hosted/pub.dartlang.org/facebook_audience_network-0.6.0/ios/Classes/FacebookAudienceNetworkPlugin.m:3:9: fatal error: 'facebook_audience_network-Swift.h' file not found
#import "facebook_audience_network-Swift.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
`

Thanks!

@linsvensson
Copy link

I'm having the same problem, except I didn't try the git version.

@casualcoder404
Copy link

Yes I'm experiencing the same issue

Xcode shows:
Lexical or Preprocessor issue:
'facebook_audience_network-Swift.h' file not found

@SachinGanesh
Copy link
Contributor

Hi, Please check the version 0.6.1

@linsvensson
Copy link

It's working for me now, thanks!

@Vasantika20
Copy link

I tried both versions 0.6.1 and 0.6.2 but still getting this error. what should i do?

@SachinGanesh
Copy link
Contributor

Try flutter clean or delete pubspec.lock file

@Vasantika20
Copy link

Thank you for your response. I tried both flutter clean and delete pubsec.lock, but still getting error.

flutter/.pub-cache/hosted/pub.dartlang.org/facebook_audience_network-0.6.2/ios/Classes/FacebookAudienceNetworkPlugin.m:2:9: fatal error: 'facebook_audience_network/facebook_audience_network-Swift.h' file not found
#import <facebook_audience_network/facebook_audience_network-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

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

5 participants