Closed HuakunShen closed 1 week ago
Found partial solution
macos-13
instead of macos-latest
or macos-14
OPENSSL_DIR=/usr/local/opt/openssl@3
for Mac buildsThis will allow all builds to pass (i.e. aarch64, x86_64, universal). But:
Error is:
Termination Reason: Namespace DYLD, Code 1 Library missing
Library not loaded: /usr/local/opt/openssl@3/lib/libssl.3.dylib
Referenced from: <01A9DF36-124E-3C84-BE38-97C738B1C800> /private/var/folders/*/devclean-ui.app/Contents/MacOS/devclean-ui
Reason: tried: '/usr/local/opt/openssl@3/lib/libssl.3.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/openssl@3/lib/libssl.3.dylib' (no such file), '/usr/local/opt/openssl@3/lib/libssl.3.dylib' (no such file)
(terminated at launch; ignore backtrace)
This doesn't seem to be a bug of Tauri. After removing git2
from the app's dependency the problem is gone.
https://crates.io/crates/git2/0.18.3/dependencies
git2
depends on openssl-sys
, this should be the source of problem.
Describe the bug
Question: Is there some dependency like
pkg-config
oropenssl@3
need to be added to the GitHub Action?1. Build Error
I could run and build the app locally but have problem building mac app with GitHub Action.
GitHub Action from https://tauri.app/v1/guides/building/cross-platform/#example-workflow is used.
The mac builds gets the following error (https://github.com/HuakunShen/devclean-ui/actions/runs/8976211618/job/24652561018)
This only happens on x86_64 and universal build.
I have tried
brew install
and settingOPENSSL_DIR
environment variable to/opt/homebrew/opt/openssl@3
.This will fix the build, but the resulting app is not runnable after I enable code sign.
2. Mac Displays Problem Report
Reproduction
Demo Repo: https://github.com/HuakunShen/devclean-ui
Here is a run without code sign, but x86_64 is missing ssl. https://github.com/HuakunShen/devclean-ui/actions/runs/8976211618/job/24652561018
This build is successful for arm https://github.com/HuakunShen/devclean-ui/actions/runs/8976344661/job/24653011389 But the resulting dmg file doesn't run, the arm dmg can be found here https://github.com/HuakunShen/devclean-ui/releases/tag/untagged-76fb0de92a9038b220da
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response