Yesterday (2/7/24) was fine, and there has been an automatic (security?) update on my MacBook Pro (Ventura 13.6.4) overnight. Since then, Xcode does not have any platform available, simulator or actual connected devices.
The top bar of Xcode says "iOS 17.2 Not Installed" and when clicking to install, it installs the "iOS 17.2 Simulator" but not "iOS 17.2". Clicking "Get" refers to downloading the corresponding Simulator, which is already installed.
This is a serious issue preventing any deployment on device, simulator, or AppStore!
Please help!
Post
Replies
Boosts
Views
Activity
There is an issue with the NavigationStack in WatchOS 10 when used with TabView: the navigation back from a top bar NavigationLink destination can stay two or three times on the destination when trying to come back to the navigation root.
Here are the conditions for the issue to occur:
TabView inside NavigationStack
ToolbarItem associated with a tab from the TabView--not the whole TabView
ToolbarItem placed at .topBarLeading or .topBarTrailing
Notes:
Wrapping the tab with a NavigationStack inside TabView fails to run
Placing the ToolbarItem at .bottomBar works as expected
Second level NavigationLink from the destination also works as expected
Is there a way to fix? Or is it a WatchOS 10 issue. Thank you!
Code to replicate the issue:
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationStack {
TabView {
Text("Tab 1")
.toolbar {
ToolbarItem(placement: .topBarLeading) {
NavigationLink() {
Text("Destination")
} label: {
Image(systemName: "hand.tap")
}
}
}
Text("Tab 2")
}
.tabViewStyle(.verticalPage)
}
}
}
Run the app, tap the hand icon, and then tap the caret (or swipe right) to come back to the main screen. (It may require a second take to experience the issue.)