pointfreeco/swift-navigation

FullScreenCover causes linker crash and app won't start on macOS 10.15

nrudnyk opened this issue · 1 comments

Description

When i try to use SwiftUINavigaion, linker fails with the following message on macOS 10.15

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Symbol not found: _$s7SwiftUI4ViewPAAE15fullScreenCover11isPresented9onDismiss7contentQrAA7BindingVySbG_yycSgqd__yctAaBRd__lFQOMQ
  Referenced from: /Applications/Ubiquity.app/Contents/MacOS/Ubiquity
  Expected in: /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
 in /Applications/Ubiquity.app/Contents/MacOS/Ubiquity

looks that the @available(macOS, unavailable) doesn't work in FullScreenCover.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

  • I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
  • If possible, I've reproduced the issue using the main branch of this package.
  • This issue hasn't been addressed in an existing GitHub issue or discussion.

Expected behavior

app runs without a crash

Actual behavior

crashes while linking, so the app won't even start

Steps to reproduce

  • Create whatever simple application
  • archieve it with macos10.15 support
  • try to run ot on macOS 10.15
  • crash while linking

SwiftUI Navigation version information

14ac251

Destination operating system

macOS 10.15

Xcode version information

Version 14.1 (14B47b)

Swift Compiler version information

swift-driver version: 1.62.15 Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
Target: x86_64-apple-macosx13.0

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.