SimpleToast icon indicating copy to clipboard operation
SimpleToast copied to clipboard

As of macOS15 + Xcode 16 I get "Library not loaded: /System/Library/Frameworks/SwiftUICore.framework/SwiftUICore" from this package

Open itsthisjustin opened this issue 1 year ago • 8 comments

Not sure if it's your fault or mine but I just noticed this was the package the reference comes from. Super stuck at the moment so any ideas would be great.

itsthisjustin avatar Sep 19 '24 03:09 itsthisjustin

@itsthisjustin This error usually occurs when a library or framework has not been added to "Frameworks, Libraries, and Embedded Content" inside the "General" tab in your project's target and to "Link Binary With Libraries" inside the "Build Phases" tab.

Has the SimpleToast library been added in both places?

sanzaru avatar Sep 19 '24 18:09 sanzaru

To be clear, this issue is ONLY on xcode 16 and ONLY on macOS 14 and iOS 17 when build from xcode 16. iOS 18 and macOS 15 work fine.

itsthisjustin avatar Sep 19 '24 18:09 itsthisjustin

I can test this tomorrow on a macOS 14 device. However, it sounds more like an issue with Xcode, as it seems to be losing the reference to the library. Are you opening the same project file in different versions of Xcode? I’ve encountered various problems in the past by doing that.

sanzaru avatar Sep 19 '24 20:09 sanzaru

Opening the project on Xcode 15 works fine. Opening it on Xcode 16 does not work on macOS14. Opening it on Xcode 16 on macOS 15 works and runs, but not if you run the binary on macOS 14 or iOS 17. Removing your library fixes the issue on all OS's unfortunately (fortunately?)

itsthisjustin avatar Sep 19 '24 20:09 itsthisjustin

I tried several combinations but, unfortunately, I cannot reproduce your issue. I still suspect that your Xcode might be causing the problem. Perhaps removing and re-adding the package could help. For me, any combination of macOS and Xcode works.

sanzaru avatar Sep 20 '24 19:09 sanzaru

Downgrading to version 0.8.0 on swift package manager temporarily will resolve the problem

gferrara8596 avatar Sep 23 '24 08:09 gferrara8596

The changes between versions 0.8.0 and 0.9.0 mainly focus on the drag gesture. 🤔

@gferrara8596 @itsthisjustin do you use the library via SPM or CocoaPods?

sanzaru avatar Sep 23 '24 20:09 sanzaru

Before yesterday with cocoapods but now with spm

gferrara8596 avatar Sep 24 '24 12:09 gferrara8596

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 19 '25 03:10 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Nov 03 '25 03:11 github-actions[bot]