hlwhl / webview_cef

WebView for Flutter Desktop Apps using CEF(Chromium Embedded Framework) [Work in Progress]
Apache License 2.0
158 stars 44 forks source link

clang: error: no such file or directory: 'Embedded' #108

Open MobileD3v3l opened 4 months ago

MobileD3v3l commented 4 months ago

Hello,

I'm using webview_cef into a macOS desktop app.

I followed all the steps on the README and I'm able to exectute the example project, but when I execute my project I obtain the following errors:

clang: error: no such file or directory: 'Embedded' clang: error: no such file or directory: 'Framework'

I'm missed something about how tomo modify my project?

Thanks.

SinyimZhi commented 4 months ago

@MobileD3v3l When our prebuilt package's name has some blank spaces, there is something wrong on pod install. I'm not sure how to fix it at its root, but here is a temporary solution to the problem, try follow steps:

Search: Embedded Framework - l Replace with: - l Search: -framework "Chromium" Replace with: -framework "Chromium Embedded Framework"

Tips: The above steps need to be redone after the "flutter clean"

ErickVib commented 4 months ago

hello, I have the same problem, not get search file.

clang: error: no such file or directory: 'Embedded' clang: error: no such file or directory: 'Framework'

tell me please where is the Embedded Framework -l and -framework "Chromium"?

SinyimZhi commented 4 months ago

@ErickVib If you use vscode, it has default enabled 'use exclude settings and ignore files', Click the switch as follow screenshot to open the include and exclude setting. image Then close the switch 'exclude settings and ignore files'. image then you can get search files, just replace it according to my previous comment.

MobileD3v3l commented 4 months ago

Didn't found Embedded Framework - l. And after replace -framework "Chromium" and flutter clean, still showing the same clang errors.

SinyimZhi commented 4 months ago

@MobileD3v3l It is need replace after every time flutter clean...The issue is caused by pods install, try to find what's wrong on it, and maybe your project has private settings.