You have probably managed to get this resolved by now, but this was a bug in 11.4 which is fixed in 11.5. I ran into the same issue because I have a lot of early apps with app specific prefixes. I am now running into issues with 11.5 uploading these to App Store Connect, as it looks like this too requires a Team ID prefix. Maybe they fixed it in one place and not another!
Post
Replies
Boosts
Views
Activity
I'm afraid using a valid placement also doesn't work in this example. I have been having issues with this myself. Only .bottomBar appears to work. Using .navigationBarTrailing, .primaryAction, .navigationBarLeading etc all fail.
struct TestContentView: View {
var body: some View {
NavigationView() {
List() {
Text("a")
Text("b")
Text("c")
}
.listStyle(SidebarListStyle())
.navigationTitle("Navigation")
}.toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
Button(action: {}) {
Text("add")
}
}
}
}
}
I have submitted a feedback issue over this. I don't believe it's currently working as expected. The same is true when assigning toolbar items to a sheet on iOS as well. Only automatic and bottomBar seem to work there.
Has anyone managed to get to the bottom of this? I have the same issue. Connected to GitHub just fine. I am on Xcode 14.1 and the issues persists.