App crashes at launch: ICCeryCore PackageProduct framework not embedded in .app #117

Closed
opened 2026-09-12 09:14:44 +01:00 by gronod · 0 comments
Owner

App crashes at launch on macOS 12 (SIGABRT, DYLD library missing):

Library not loaded: '@rpath/ICCeryCore_7B5160A3714042B2_PackageProduct.framework/...'

When app + test targets share the local ICCeryCore package, Xcode builds it as a dynamic package-product framework (PackageFrameworks) which is not embedded in ICCery.app — anything launching the app outside the test host (UI tests, manual launch) dies in dyld. Release packaging links it statically (only the app target builds), which is why the DMG binary doesn't hit this.

Fix: declare the product .static in Packages/ICCeryCore/Package.swift so every consumer links it directly; no framework to embed.

App crashes at launch on macOS 12 (SIGABRT, DYLD library missing): ``` Library not loaded: '@rpath/ICCeryCore_7B5160A3714042B2_PackageProduct.framework/...' ``` When app + test targets share the local `ICCeryCore` package, Xcode builds it as a dynamic package-product framework (PackageFrameworks) which is not embedded in ICCery.app — anything launching the app outside the test host (UI tests, manual launch) dies in dyld. Release packaging links it statically (only the app target builds), which is why the DMG binary doesn't hit this. Fix: declare the product `.static` in `Packages/ICCeryCore/Package.swift` so every consumer links it directly; no framework to embed.
gronod added the
Priority
Critical
1
Project/ICCery-v2Bug/Architecture
labels 2026-09-12 09:14:44 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gronod/iccery-v2-mac#117