Skip to content

[Bug] building for any mac from an Intel mac does not build metacodable framework as universal #122

@robaho

Description

@robaho

Building my project for "Any Mac" does not build the metacodable framework as universal, so when the application is started, it immediately crashes with:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Seahorse OSX [24061]
Path:                  /Volumes/NETWORK/*/Seahorse OSX.app/Contents/MacOS/Seahorse OSX
Identifier:            com.eolcoder.SeahorseOSX
Version:               1.0 (1.0)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2025-02-21 13:52:54.5771 -0600
OS Version:            macOS 15.3.1 (24D70)
Report Version:        12
Anonymous UUID:        A585B7F8-B1FB-F97D-44A8-E4BF8E81E5B9

Sleep/Wake UUID:       106D7B90-0F91-40F2-AA52-DEDF5407D2FE

Time Awake Since Boot: 53000 seconds
Time Since Wake:       2415 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: @rpath/MetaCodable.framework/Versions/A/MetaCodable
Referenced from: <C18762B5-FBF3-39EF-AC5A-962059E0B2C1> /Volumes/NETWORK/*/Seahorse OSX.app/Contents/MacOS/Seahorse OSX
Reason: tried: '/Users/robertengels/Seahorse/DerivedData/Seahorse/Build/Products/Debug/PackageFrameworks/MetaCodable.framework/Versions/A/MetaCodable' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/robertengels/Seahorse/DerivedData/Seahorse/Build/Products/Debug/PackageFrameworks/MetaCodable.framework/Versions/A/MetaCodable' (no such file), '/Volumes/robertengels/Seahorse/DerivedData/Seahorse/Build/Products/Debug/Seahorse OSX.app/Contents/MacOS/Frameworks/MetaCodable.framework/Versions/A/MetaCodable' (no such file), '/Users/robertengels/Seahorse/DerivedData/Seahorse/Build/Products/Debug/PackageFrameworks/MetaCodable.framework/Versions/A/MetaCodable' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/robertengels/Seahorse/DerivedData/Seahorse/
(terminated at launch; ignore backtrace)

OSX 13.7.3
XCode 15.2
Swift 5.9.2

The file is actually present at the path /Users/robertengels/Seahorse/DerivedData/Seahorse/Build/Products/Debug/PackageFrameworks/MetaCodable.framework/Versions/A/MetaCodable but it is not a universal binary so it doesn't load.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions