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

Not working on macOS (Apple Silicon) #23

Closed
mantresh-pvt opened this issue Oct 13, 2022 · 5 comments
Closed

Not working on macOS (Apple Silicon) #23

mantresh-pvt opened this issue Oct 13, 2022 · 5 comments
Labels
good first issue Good for newcomers

Comments

@mantresh-pvt
Copy link

mantresh-pvt commented Oct 13, 2022

I am using MacBook Pro 14" with M1 Max chip (arm64) and I copied all the files from cef bundle inside macOS/third/cef but i am still getting errors with other linker flags.

@hlwhl hlwhl added the good first issue Good for newcomers label Oct 14, 2022
@hlwhl
Copy link
Owner

hlwhl commented Oct 14, 2022

Seems u put files in a wrong path. Try put all file into webview_cef/mac/third/cef instead of webview_cef/example/mac/third/cef.

After make sure all files are in place, then delete example/macos/Profile.lock and execute flutter clean in the example folder and run the example app again.

image

@hlwhl hlwhl pinned this issue Oct 14, 2022
@mantresh-pvt
Copy link
Author

mantresh-pvt commented Oct 14, 2022

Thank you I was able to run the example app, now I wanted to implement this plugin in my own project so I tried the pub.dev version and extracted files from cef bundle inside macos/third/cef directory and then I am getting this error, so now I decided to add webview_cef folder inside my project's working directory and updated the path in pubspec.yaml to:

    webview_cef:
        path: package/webview_cef

Note: There was no error in pubspec.yaml file while running flutter pub get.

After all that I am getting the same error, do I need to add anything inside my project's macos directory (e.g. Update anything in code or add any file)?

IMG_0889

@hlwhl
Copy link
Owner

hlwhl commented Oct 14, 2022

@mantreshkhurana
I don't know why (I believe it's caused by cocoapods.) but you can delete all Other Linker Flags in xcode of your Runner project to solve the build issue.

image

@mantresh-pvt
Copy link
Author

Thank you so much this is working perfectly now.

@hlwhl hlwhl closed this as completed Oct 14, 2022
@xlfdyzcs
Copy link

@mantreshkhurana I don't know why (I believe it's caused by cocoapods.) but you can delete all Other Linker Flags in xcode of your Runner project to solve the build issue.

image

thks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants