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

[Help Wanted!][macos]add CEF dependency via podspec #11

Closed
hlwhl opened this issue Aug 6, 2022 · 9 comments
Closed

[Help Wanted!][macos]add CEF dependency via podspec #11

hlwhl opened this issue Aug 6, 2022 · 9 comments
Labels
help wanted Extra attention is needed

Comments

@hlwhl
Copy link
Owner

hlwhl commented Aug 6, 2022

I met a problem when integrate cef on macos : add Chromium Embedded Framework.framework dependency via podspec cause link error.
Does anyone have idea about how to solve this issue?
2341659793888_ pic

@hlwhl hlwhl added the help wanted Extra attention is needed label Aug 6, 2022
@hlwhl
Copy link
Owner Author

hlwhl commented Aug 6, 2022

The framework has already imported according to xcode.
image

@chinabrant
Copy link

可以把代码传上来吗?开个分支,我来看看。

@hlwhl
Copy link
Owner Author

hlwhl commented Aug 10, 2022

@chinabrant 感谢关注!podspec配置文件已提交至macos分支,cef framework 需要在这里根据你机器的架构下载 :https://cef-builds.spotifycdn.com/index.html#macosx64 下载下来的档案解压后复制 Release/Chromium Embedded Framework.framework 到本工程的 macos/third/cef路径下编译即可

@chinabrant
Copy link

@hlwhl 我这里是一些其它的错误,运行不起来,试了一下,那个路径里面加上斜杠对空格转译后就会出现你那个错误,你可以试试去掉转译的斜杠,空格不用转译试试。还有,你用的哪个flutter版本?我用的stable的 3.0.5 测试的。暂时没有太多时间花在这上面。

@hlwhl
Copy link
Owner Author

hlwhl commented Aug 10, 2022

@chinabrant 我这里也是stable 3.0.5. 目前试下来,我这里去掉转译也会报一样的错。直接将framework拖进xcode不会报错,编译也没问题。如果podspec解决不了,只能写一个脚本绕过cocoapod了,但对相对接入就会变复杂:-).

@chinabrant
Copy link

我在cocoapods提了个issuse, CocoaPods/CocoaPods#11493 感觉还是那个文件名空格的问题。vendored framework这样写是没问题的。

@chinabrant
Copy link

1111
你把Example工程的 other linker flags全部删除试一下。

@hlwhl
Copy link
Owner Author

hlwhl commented Aug 18, 2022

1111
你把Example工程的 other linker flags全部删除试一下。

确实是这里的问题👍

@hlwhl
Copy link
Owner Author

hlwhl commented Aug 18, 2022

image

now it's running on mac😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants