-
Notifications
You must be signed in to change notification settings - Fork 280
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
MacCatalyst support #96
Comments
I think this is an SDK bug in Xcode unfortunately. Please file a Feedback Request for this. |
If that turns out to be true, then it's good that it's "just" and SDK bug because SDK bugs can be fixed by using a newer Xcode release, I don't think the bug is in the OS itself (which would be a bigger issue). |
@innoreq yes, I think the issue is the presence of those:
despite the fact that they don't actually exist on the OSes if I'm not mistaken. I don't think |
@innoreq hmm, actually, I just tried that and it works just fine for me. See the gif below where I create an iOS app with swift-log which I then use for Catalyst just fine: |
@innoreq I would suggest to start with a normal Xcode app project and to then add the swift-log dependency through File -> Swift Packages -> Add Package Dependency. Like this: |
@innoreq is this still an issue? |
I think this is done. |
I experience a Catalyst problem - is there a solution or workaround?
Expected behavior
I expected the library to work also in a combined iOS/macOS project (Catalyst).
Actual behavior
I created a lightweight wrapper around the lib and put it into a "Log" Swift Package.
For "import Logging", the compiler tells:
"Logging is not available when building for Mac Catalyst. Consider using
#if !targetEnvironment(macCatalyst)to conditionally import this framework."
SwiftLog version/commit hash
The
Package.swift
content for theLog
wrapper:Swift & OS version (output of
swift --version && uname -a
)Xcode 11.0 (11A419c) / Swift 5 / macOS 10.15 / iOS 13.0
The text was updated successfully, but these errors were encountered: