I'm currently developing an app for iOS and macOS using Catalyst. With the changes in Xcode 12 I'm considering moving everything into the new Multiplatform app template.
When I created a new project using Multiplatform app including Tests I was surprised that I got only 2 test targets in my project. one for iOS and one for macOS.
Both targets contain templates for UITest classes. Now I'm wondering where to put my UnitTests? Is it intended to put the unit tests into the macOS- / iOS-test target or better to create a separate UnitTest target and put everything there? Maybe even create a Framework Target with tests for my shared code?
Post
Replies
Boosts
Views
Activity
I do have an app with a sidebar where I place my main navigation. When I navigate from the sidebar my DetailView is shown next to the sidebar as it should. But when I want to navigate from my MainView to a DetailView it's not working. The view is only shown as an overlay.
Is there any way I can navigate around my main window from the sidebar and from the main view itself?
import SwiftUI
@main
struct NavigationTestApp: App {
var body: some Scene {
WindowGroup {
NavigationView {
ContentView()
MainView()
}
}
}
}
struct ContentView: View {
var body: some View {
List {
NavigationLink(
destination: DetailView(),
label: {
Text("DetailView")
})
}
.listStyle(SidebarListStyle())
}
}
struct MainView: View {
var body: some View {
NavigationLink(
destination: DetailView(),
label: {
Text("Navigate") /* Navigation does not work properly here*/
})
.frame(width: 1280, height: 720)
}
}
struct DetailView: View {
var body: some View {
Text("DetailView")
.frame(width: 1280, height: 720)
}
}
Hi,
after 2 years of not updating my app on appstore i wanted to submit an update for my iOS app which also containts a watch app target.
When i try to submit it to upload it i get the following errors:
Failed registering bundle identifier
The app identifier "(myappBundleID).watchkitapp" cannot be registered to your development team because it is nit available. Change your bundle identifier to a unique string to try again.
No Profiles for "(myappBundleID).watchkitapp" were found.
Xcode culdn't find any iOS App Store provisining profiles matching "(myappBundleID).watchkitapp"
Since i have my app already in store with that bundle identifier i don't know why it can not be registered to my team. Also i don't want to change the bundle identifier because then i can not publish it as update to store.