dreamsoftin / facebook_audience_network

Flutter Facebook Audience Network
https://pub.dartlang.org/packages/facebook_audience_network/
MIT License
156 stars 99 forks source link

Version 0.6.0 iOS not building #38

Closed davidBarbieri closed 4 years ago

davidBarbieri commented 4 years ago

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 commented 4 years ago

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

casualcoder404 commented 4 years ago

Yes I'm experiencing the same issue

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

SachinGanesh commented 4 years ago

Hi, Please check the version 0.6.1

linsvensson commented 4 years ago

It's working for me now, thanks!

Vasantika20 commented 4 years ago

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

SachinGanesh commented 4 years ago

Try flutter clean or delete pubspec.lock file

Vasantika20 commented 4 years ago

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.