canonical / canonical/multipass

[macOS] Broken rpaths in individual architecture CI packages

Open
#4,528 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
9.2k
Forks
828
Avg merge
3d 1h
Merged PRs (30d)
44

Description

**Describe the bug**
The individual macOS packages from CI have broken QtNetwork rpath'ing

**To Reproduce**
Download a macOS `aarch64` or `x86_64` from CI, install, and execute multipass. The combined package works fine, though.

**Logs**
```
% multipass
dyld[18747]: Library not loaded: @rpath/QtNetwork.framework/Versions/A/QtNetwork
Referenced from: /Library/Application Support/com.canonical.multipass/bin/multipass
Reason: tried: '/Library/Application Support/com.canonical.multipass/lib/QtNetwork.framework/Versions/A/QtNetwork' (code signature invalid in '/Library/Application Support/com.canonical.multipass/lib/QtNetwork.framework/Versions/A/QtNetwork' (errno=1) sliceOffset=0x001B0000, codeBlobOffset=0x00196680, codeBlobSize=0x00007AD0), '/Library/Application Support/com.canonical.multipass/lib/QtNetwork.framework/Versions/A/QtNetwork' (code signature invalid in '/Library/Application Support/com.canonical.multipass/lib/QtNetwork.framework/Versions/A/QtNetwork' (errno=1) sliceOffset=0x001B0000, codeBlobOffset=0x00196680, codeBlobSize=0x00007AD0)
zsh: abort multipass
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with the individual aarch64 and x86_64 macOS CI packages, then inspect the packaging and signing steps that produce the QtNetwork framework and its rpath. Done means both architecture-specific packages launch multipass without the dyld code-signature or rpath error, while the combined package continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, macos
Domain
build-system, ci-cd, desktop-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.