Post

Replies

Boosts

Views

Activity

Apple ID dissapears from Xcode and build is failing
I'm calling this command to export archive: xcodebuild -exportArchive -archivePath .build/XYZ.xcarchive -exportPath .build/XYZ.ipa -exportOptionsPlist Authenticator/ExportOptions.plist -quiet -allowProvisioningUpdates Here is my exportOptions file content <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>method</key> <string>app-store-connect</string> <key>signingStyle</key> <string>automatic</string> <key>teamID</key> <string>ABCD</string> </dict> </plist> Most of the time this command fail with this error: error: exportArchive No Accounts error: exportArchive No signing certificate "iOS Distribution" found What we found is that our Apple ID just disappear from Xcode and we need to add it again manually. So there are two questions here: Why Apple ID account dissapears and how I can fix this? Is there an option to not use Apple ID account in Xcode and for example to use -authenticationKeyID flags of xcodebuild? Just to mention this happens only on our CI machine and not locally.
1
0
948
Mar ’25
View pops automatically when in navigation view
I want to have a navigation view with 3 views where the third view need to pop to the root view when button is clicked.Here is the code I'm implementing: import SwiftUI class NavigationHelper: ObservableObject { @Published var selection:String? = nil } struct View1: View { @ObservedObject var navigationHelper:NavigationHelper = NavigationHelper() var body: some View { NavigationView{ VStack { Text("View1") .padding() Button { navigationHelper.selection = "View2" } label: { Text("Go To View2") } NavigationLink(tag: "View2", selection: $navigationHelper.selection) { View2() } label: { EmptyView() }.isDetailLink(false) } }.environmentObject(navigationHelper) } } struct View2: View { @EnvironmentObject var navigationHelper:NavigationHelper var body: some View { VStack { Text("View2") .padding() Button { navigationHelper.selection = "View3" } label: { Text("Go To View3") } NavigationLink(tag: "View3", selection: $navigationHelper.selection) { View3() } label: { EmptyView() } } } } struct View3: View { @EnvironmentObject var navigationHelper:NavigationHelper var body: some View { VStack { Text("View3") .padding() Button { navigationHelper.selection = nil } label: { Text("Go To Root") } } } } When View3 is opened it pops back to View1 when opened and cannot understand why? For some reason the selection property becomes nil maybe.
3
0
874
Nov ’21
Apple ID dissapears from Xcode and build is failing
I'm calling this command to export archive: xcodebuild -exportArchive -archivePath .build/XYZ.xcarchive -exportPath .build/XYZ.ipa -exportOptionsPlist Authenticator/ExportOptions.plist -quiet -allowProvisioningUpdates Here is my exportOptions file content <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>method</key> <string>app-store-connect</string> <key>signingStyle</key> <string>automatic</string> <key>teamID</key> <string>ABCD</string> </dict> </plist> Most of the time this command fail with this error: error: exportArchive No Accounts error: exportArchive No signing certificate "iOS Distribution" found What we found is that our Apple ID just disappear from Xcode and we need to add it again manually. So there are two questions here: Why Apple ID account dissapears and how I can fix this? Is there an option to not use Apple ID account in Xcode and for example to use -authenticationKeyID flags of xcodebuild? Just to mention this happens only on our CI machine and not locally.
Replies
1
Boosts
0
Views
948
Activity
Mar ’25
View pops automatically when in navigation view
I want to have a navigation view with 3 views where the third view need to pop to the root view when button is clicked.Here is the code I'm implementing: import SwiftUI class NavigationHelper: ObservableObject { @Published var selection:String? = nil } struct View1: View { @ObservedObject var navigationHelper:NavigationHelper = NavigationHelper() var body: some View { NavigationView{ VStack { Text("View1") .padding() Button { navigationHelper.selection = "View2" } label: { Text("Go To View2") } NavigationLink(tag: "View2", selection: $navigationHelper.selection) { View2() } label: { EmptyView() }.isDetailLink(false) } }.environmentObject(navigationHelper) } } struct View2: View { @EnvironmentObject var navigationHelper:NavigationHelper var body: some View { VStack { Text("View2") .padding() Button { navigationHelper.selection = "View3" } label: { Text("Go To View3") } NavigationLink(tag: "View3", selection: $navigationHelper.selection) { View3() } label: { EmptyView() } } } } struct View3: View { @EnvironmentObject var navigationHelper:NavigationHelper var body: some View { VStack { Text("View3") .padding() Button { navigationHelper.selection = nil } label: { Text("Go To Root") } } } } When View3 is opened it pops back to View1 when opened and cannot understand why? For some reason the selection property becomes nil maybe.
Replies
3
Boosts
0
Views
874
Activity
Nov ’21