Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
itsthisjustin opened this issue Sep 19, 2024 · 8 comments
Assignees
Labels
bug Something isn't working investigate

Comments

@itsthisjustin
Copy link

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.

@sanzaru
Copy link
Owner

sanzaru commented Sep 19, 2024

@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 sanzaru self-assigned this Sep 19, 2024
@itsthisjustin
Copy link
Author

itsthisjustin commented Sep 19, 2024

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.

@sanzaru
Copy link
Owner

sanzaru commented Sep 19, 2024

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.

@itsthisjustin
Copy link
Author

itsthisjustin commented Sep 19, 2024

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?)

@sanzaru sanzaru added bug Something isn't working investigate labels Sep 19, 2024
@sanzaru
Copy link
Owner

sanzaru commented Sep 20, 2024

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.

@gferrara8596
Copy link

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

@sanzaru
Copy link
Owner

sanzaru commented Sep 23, 2024

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?

@gferrara8596
Copy link

gferrara8596 commented Sep 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working investigate
Projects
None yet
Development

No branches or pull requests

3 participants