Open g123k opened 6 years ago
Thanks for reporting.
Could you:
flutter doctor
herepod install
command run from the ios
folder?I couldn't debug this on a fresh project on the latest Flutter beta since the pod install
command failed due to some CocoaPods error.
Thanks for your answer.
The flutter doctor
output:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.2.8, on Mac OS X 10.13.4 17E199, locale en-FR)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
[✓] Android Studio
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Community Edition (version 2018.1)
[✓] VS Code (version 1.21.1)
[✓] Connected devices (1 available)
• No issues found!
And the pod install
result:
Downloading dependencies
Installing Bolts (1.9.0)
Installing FBSDKCoreKit (4.32.0)
Installing FBSDKLoginKit (4.32.0)
Installing Flutter (1.0.0)
Installing flutter_facebook_login (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 2 dependencies from the Podfile and 5 total pods installed.
Hmm.
I'll look into resolving this when I have the time, can't promise anything currently. Hopefully, you can develop on Android for a while.
One thing: are you sure that you're adding this in your dependencies
block, and NOT dev_dependencies
?
Yes the dependency is in the dependencies
block
After digging a little bit, if I use the Podfile from the example/ios folder, the app will compile again. However it means that with the latest beta of Flutter your package should not build, because the Podfile has changed a little bit.
That's really useful information, thanks a lot!
I'll try to:
Still no ETA when I'm able to fix it, hopefully soon.
Having the same issue. I tried looking into the Podfile but I couldn't do anything because of my lack of knowledge about it. So, it would be really helpful if you could look into this sooner, @roughike? Thank you for the amazing plugin.
Not able to reproduce on a fresh project created with Flutter v0.2.8
and flutter_facebook_login
version v1.1.1
. @g123k @Samaritan1011001 are you able to repro with a fresh new project created with v0.2.8
of Flutter?
Having the same issue :'(
@Ajit121 When did you create your project? Does it use Swift or ObjC for iOS code?
Created one day ago and used swift. Its working fine for android (Kotlin) but unable to build in ios because of this error.
Oh! this issue is happening for flutter project for using swift only.. Working fine for the project using Objective C. Please fix this issue ASAP.
This has been an issue with Swift projects before, and IIRC, it's not particularly related to this plugin, but more of a Flutter issue.
I can help you debug once I get home. Meanwhile, could you run "flutter --version" and paste the output here?
I had the same issue, so I thought I would detail the steps that worked for me in case someone else lands on this issue too.
Background: My project is a Swift project created quite a few months ago, with a change added to Podfile to deal with Swift plugin issue (so firebase plugin could work). Flutter on dev channel, v0.5.4
Steps that worked for me:
pod setup
(command line)flutter clean
(command line)flutter run
(command line)flutter run
(command line)It worked! I have no idea why step 9 worked when step 6 didn't, except maybe for step 8 (building for iOS is a bit of a mystery to me, I'm an Android developer)
I can confirm the above works, at least with y setup and xCode 9.3. + Pod 1.5.3. Basically, just do 'pod clean' followed by changing your Podfile to match https://github.com/flutter/flutter/blob/master/packages/flutter_tools/templates/cocoapods/Podfile-swift and then re-build using xCode. No need to make any manual changes to Podfile
Hello,
I have a strange problem with the library and the iOS build. Every time I try to build the Flutter app, I have this error:
How to reproduce the bug:
flutter_facebook_login: "^1.1.1"
I have tried to change the Podfile, but the error is still the same: