You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #9694 we commented out use_frameworks! in the new project template.
I would like to bring it back so that Swift plugins will be supported.
The problem is CocoaPods/CocoaPods#3289 - plugins that have third-party dependencies (e.g. Google Sign In) don't work properly and get errors of this form:
[!] The 'Pods' target has transitive dependencies that include static binaries
use_frameworks! will happily coexist with static transitive dependencies if you override the static framework verification:
pre_install do |installer|
# workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
def installer.verify_no_static_framework_transitive_dependencies; end
end
However, the header files don't get copied into the right place.
I think we need to understand this further and see if we can get the header to be right.
Not to rush you @collinjackson , but I just realized I didn't tag you so I thought would tag you just to make sure. I'm sure you get a bazillion notifications from github everyday like I do^^;
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
mit-mit commentedon Jul 4, 2017
Are you working on this @collinjackson ?
collinjackson commentedon Jul 5, 2017
I am, though it's backed up behind a couple other higher priority tasks. Happy to brain dump here if there's anyone else who wants to take it on.
mclark4386 commentedon Aug 8, 2017
Really need this, so I would be happy to see a brain dump and give it my best shot^^
mclark4386 commentedon Aug 8, 2017
Not to rush you @collinjackson , but I just realized I didn't tag you so I thought would tag you just to make sure. I'm sure you get a bazillion notifications from github everyday like I do^^;
mclark4386 commentedon Aug 8, 2017
So I took the liberty of making a test case project: https://github.com/mclark4386/test_flutter_plugins so that when that will
flutter runit should be good^^mclark4386 commentedon Aug 9, 2017
So it looks like it's not setting up the includes properly...
eseidelGoogle commentedon Sep 6, 2017
@collinjackson looks like this got dropped. Are you available for a brain dump?
eseidelGoogle commentedon Sep 6, 2017
FYI @szakarias or @mit-mit who may also have knowledge or interest here.
collinjackson commentedon Sep 6, 2017
I pinged @szakarias about this last week to gauge availability and she said she'd get back to me. I'll follow up again. Thanks!
12 remaining items
bramvbilsen commentedon Jan 19, 2018
I'm also still waiting for this :)
nyvelius commentedon Jan 22, 2018
Yup, still an issue -- on iOS, Android works.
szakarias commentedon Feb 15, 2018
This should now be fixed by #14667 and flutter-team-archive/plugins#385
itchyfingertips commentedon Mar 26, 2018
Not really. I am on beta channel and got this bug tonight. Tried to add Facebook SDK but it did not work until I commented out use_frameworks!.
itchyfingertips commentedon Mar 26, 2018
Does not work even in master channel.
szakarias commentedon Mar 28, 2018
@itchyfingertips could you please provide more details on your project and the errors you experience?
itchyfingertips commentedon Mar 28, 2018
You can create new project with swift on iOS side:
Add this package, which contains Facebook SDK pods.
2) flutter_facebook_login 1.1.0
build project
3) flutter build ios
And you will get the error.
If you comment out use_frameworks! error will be gone, but thats not ok.
BytesZero commentedon Sep 6, 2018
+1
zoechi commentedon Sep 6, 2018
@yy1300326388 please don't post +1 comments.
escamoteur commentedon Nov 8, 2018
How can I enable swift support for an existing project?
Sh1d0w commentedon Nov 8, 2018
@escamoteur Open the project in Xcode, the select File -> New -> File and choose Swift File.
Xcode then automatically will add Swift bridging header and you should be all set.
github-actions commentedon Sep 1, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.