-
Notifications
You must be signed in to change notification settings - Fork 54
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
How to Fix Build Release apps in Macos support arm64 and x86_64 #30
Comments
@hlwhl im found a new way, and i was update it |
@okiabrian123 Thanks for your solution! I'll try your solution and update to main branch. |
@hlwhl you're welcome, I haven't checked the tutorial above if there is an error or not, if there's an error, tell me |
@okiabrian123 Have tested the universal binary solution, it works well and I have updated the solution to readme! Thank you for your effort! |
@okiabrian123 I'm trying to add the h264 codec to the universal package (in order to play mp4 videos), but I think I'm a little lost. Any steps to follow? Thanks. |
---update new way 27 NOV 2022, more simple than before
merge 2 cef framework and 2 libcef_dll
merge libcef_dll_wrapper
CEF Framework
Libraries CEF Framework
Resources CEF Framework
Codesign "Chromium Embedded Framework.framework"
u need codesign "Chromium Embedded Framework.framework" for making universal macos apps. if u create applications with separated architectures, you don't need this.
if you dont have developer account, u can codesign"Chromium Embedded Framework.framework" without developer account
i got tutorial from this
u need create a self-signed certificate, click link above
old way :
i was found way to build in MacOS,
u have 2, webview_cef(for arm64) and webview_cef_x86_64(for x86_64).
next step we need configure webview_cef_x86_64 folder.
s.vendored_libraries = 'third/cef/x86_64/libcef_dll_wrapper.a'
to
s.vendored_libraries = 'third/cef/x86_64/libcef_dll_wrapper_x86_64.a'
and
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
to
s.pod_target_xcconfig = { 'VALID_ARCHS' => 'x86_64' }
we need to configure podspec in webview_cef(for arm64) too.
only
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
to
s.pod_target_xcconfig = { 'VALID_ARCHS' => 'arm64' }
next step need configure pubsec.yaml in project(open with android studio/visual studio or other)
add this to dependencies example :
finish
run in terminal
flutter build macos
if u got a error, u can see
The text was updated successfully, but these errors were encountered: