Replies: 4 comments 2 replies
-
Hi @nrudnyk, I just started a fresh project targeting macOS 10.15 and it seems to work just fine. Can you provide a minimal project that reproduces the problem? Also I am not sure this is actually a problem with the library, so I am going to covert it to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Hello @mbrandonw, thanks for the prompt reply, and please accept my appologies for a delayed response. Here is the sample project: TestProj.zip But while it works perfectly fine on macOS 11+ it crashes on macOS 10.15. Here is the notarized dmg So if I were to remove reference to remove the following: var body: some View {
Switch(viewStore.binding(\.$item.type)) {
CaseLet(/Item.Kind.general) { $general in
GeneralItemView(title: viewStore.item.name, type: "GENERAL")
}
CaseLet(/Item.Kind.firstType) { $first in
GeneralItemView(title: viewStore.item.name, type: "FIRST")
}
CaseLet(/Item.Kind.secondType) { $second in
GeneralItemView(title: viewStore.item.name, type: "SECOND")
}
}
} and remove Hope that this helps identify the root cause of the issue. If there's anything I can do to help - please let me know. |
Beta Was this translation helpful? Give feedback.
-
@mbrandonw one more unrelated thing, is there any way to build and run TCA on macOS 10.15, which supports only XCode of version 12.4? While i can tell XCode to use latest swift compiler tools, i didn't figure out a way to replace swift-tool which is used by swift package manager... The reason i faced this is that i wanted to debug some issues on macOS 10.15 directly on the target machine, but couldn't resolve all the TCA packages... If there's some wellknown approach - i would greatly appreciate if you point me to he right direction |
Beta Was this translation helpful? Give feedback.
-
@nrudnyk I'm seeing this same crash (opened a discussion before i saw this thread). did you ever get this figured out? |
Beta Was this translation helpful? Give feedback.
-
Description
When i try to use
SwiftUINavigation
, linker fails with the following message on macOS 10.15looks that the
@available(macOS, unavailable)
doesn't work inFullScreenCover.swift
or I'm not sure while linker tries to load mentioned symbol.If there's some suggestion on what could i do - please let me know.
As a side note, I was having issues with trying to run TCA and SwiftUI-navigation on macOS 10.15 system with debugging purposes. That is due to required swift-tools version 5.6 required, but macOS 10.15 only supports XCode 12.4, which has swift-tools of version 5.3. Maybe you can suggest how to overcome this one as well. Thanks!
Checklist
main
branch of this package.Expected behavior
app runs without a crash
Actual behavior
crashes while linking, so the app won't even start
Steps to reproduce
SwiftUI Navigation version information
14ac251
Destination operating system
macOS 10.15
Xcode version information
Version 14.1 (14B47b)
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions