Post

Replies

Boosts

Views

Activity

Reply to What restrictions does didReceiveRemoteNotification have when the app is started in background by the system?
Thank you. A conclusion to this topic is that I indeed had a crash in my application that only happened when it was launched in the background to receive the notification. A helpful technique that I knew about, but didn’t recall immediately, is to build and run the app with Xcode, but in the scheme options, set the “Launch” option from “Automatically” to “Wait for the executable to be launched”. This way, I can run the app on the device where it will be launched when it receives a remote notification, and the Xcode debugger is attached to the app and can easily be used for debugging.
Oct ’24
Reply to Driving NavigationSplitView with something other than List?
I don’t need NavigationStack as my detail. What I meant is that NavigationSplitView behaves as stack on iPhone, yet it doesn’t seem to have the kind of programmatic control for navigation that NavigationStack has. If I had NavigationStack as my content/detail view, it wouldn’t help with controlling navigation on the first level (sidebar). I have seen the video. Everything about NavigationStack there looks great, but it doesn’t help me. All NavigationSplitView examples there are with a simple list in sidebar. It appears there is some magic going on with binding the List selection to NavigationSplitView state. I can’t figure out how it should behave with non-List or if it’s even possible.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’22
Reply to NavigationSplitView not working as shown in "What's new with SwiftUI" session
Thank you! I got exactly the same. I was building a simple list-detail interface with NavigationSplitView and wondering why it was not updating the detail contents. Wrapping the column content in ZStack helped. Just in case others hit it, here’s my code. struct Thing: Identifiable, Hashable {     let id: UUID     let name: String } struct ContentView: View {     let things: [Thing]     @State private var selectedThing: Thing?     var body: some View {         NavigationSplitView {             List(things, selection: $selectedThing) { thing in                 NavigationLink(value: thing) {                         Text("navlink: \(thing.name)")                 }             }         } detail: { // This is the ZStack wrapper, hopefully won’t be needed when 91311311 is fixed.           ZStack {             if let selectedThing {               Text("There is a thing: \(selectedThing.name)")             } else {               Text("There is no thing.")             }           }         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’22
Reply to "NO_CRASH_STACK + 0" Crash (only on testflight)
Check out this other thread which describes the root cause, which is Xcode versions. https://developer.apple.com/forums/thread/696197 I am one of the people affected. When I built an app for Testflight with Xcode 13.1 (App Store version), it crashes on launch when installed from TestFlight, as everyone describes. The same app built and uploaded with Xcode 13.2 RC (no code changes on my side, only build number bump) installs from Testflight and runs fine on both iOS 14 and 15.
Dec ’21
Reply to SpeechTranscriber not supported
I just hit this bug where SpeechTranscriber is not available on iOS 26 Simulator using latest tools. Annoying and unexpected. Why?
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Nov ’25
Reply to What restrictions does didReceiveRemoteNotification have when the app is started in background by the system?
Thank you. A conclusion to this topic is that I indeed had a crash in my application that only happened when it was launched in the background to receive the notification. A helpful technique that I knew about, but didn’t recall immediately, is to build and run the app with Xcode, but in the scheme options, set the “Launch” option from “Automatically” to “Wait for the executable to be launched”. This way, I can run the app on the device where it will be launched when it receives a remote notification, and the Xcode debugger is attached to the app and can easily be used for debugging.
Replies
Boosts
Views
Activity
Oct ’24
Reply to How do I test if my app is restarted correctly when receiving push notifications?
Thank you. Indeed, I now see "didReceiveRemoteNotification” called reasonably reliably for a background notification, and the app started from scratch, after I have killed the app from Xcode debug session.
Replies
Boosts
Views
Activity
Sep ’24
Reply to Xcode Cloud build gets stuck after completion?
Possibly something temporary on the server side. Today, it is again working correctly as expected, and the actions and builds complete successfully with a green checkmark.
Replies
Boosts
Views
Activity
Nov ’22
Reply to CloudKit key and encryption errors on iOS 15 beta 1 on Simulator?
This keeps happening to me with Xcode 14 and iOS 16 simulator. The one extra insight I have is that it seems to be iCloud account specific. I use two iCloud accounts for testing. This happens with one but not the other. So whoever gets this might try with another iCloud account.
Replies
Boosts
Views
Activity
Nov ’22
Reply to Driving NavigationSplitView with something other than List?
I don’t need NavigationStack as my detail. What I meant is that NavigationSplitView behaves as stack on iPhone, yet it doesn’t seem to have the kind of programmatic control for navigation that NavigationStack has. If I had NavigationStack as my content/detail view, it wouldn’t help with controlling navigation on the first level (sidebar). I have seen the video. Everything about NavigationStack there looks great, but it doesn’t help me. All NavigationSplitView examples there are with a simple list in sidebar. It appears there is some magic going on with binding the List selection to NavigationSplitView state. I can’t figure out how it should behave with non-List or if it’s even possible.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to NavigationSplitView not working as shown in "What's new with SwiftUI" session
Thank you! I got exactly the same. I was building a simple list-detail interface with NavigationSplitView and wondering why it was not updating the detail contents. Wrapping the column content in ZStack helped. Just in case others hit it, here’s my code. struct Thing: Identifiable, Hashable {     let id: UUID     let name: String } struct ContentView: View {     let things: [Thing]     @State private var selectedThing: Thing?     var body: some View {         NavigationSplitView {             List(things, selection: $selectedThing) { thing in                 NavigationLink(value: thing) {                         Text("navlink: \(thing.name)")                 }             }         } detail: { // This is the ZStack wrapper, hopefully won’t be needed when 91311311 is fixed.           ZStack {             if let selectedThing {               Text("There is a thing: \(selectedThing.name)")             } else {               Text("There is no thing.")             }           }         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to iOS app crashes at launch on Testflight for iOS 14 and below but not iOS 15+
See a related thread. Apparently this is caused by Xcode versions. Apple did something which causes TestFlight builds to crash when built with older Xcodes, but it works when using 13.2 RC. https://developer.apple.com/forums/thread/696197
Replies
Boosts
Views
Activity
Dec ’21
Reply to "NO_CRASH_STACK + 0" Crash (only on testflight)
Check out this other thread which describes the root cause, which is Xcode versions. https://developer.apple.com/forums/thread/696197 I am one of the people affected. When I built an app for Testflight with Xcode 13.1 (App Store version), it crashes on launch when installed from TestFlight, as everyone describes. The same app built and uploaded with Xcode 13.2 RC (no code changes on my side, only build number bump) installs from Testflight and runs fine on both iOS 14 and 15.
Replies
Boosts
Views
Activity
Dec ’21
Reply to iOS 15 beta 4 CloudKit Auth Error
Everything appears fixed for me in Beta 5. I don’t use NSPersistentCloudkitContainer, just staight CloudKit calls. I wish Apple was more diligent in documenting this in release notes though. There’s nothing about this in Xcode or iOS beta release notes.
Replies
Boosts
Views
Activity
Aug ’21
Reply to iOS 15 beta 4 CloudKit Auth Error
Seeing the same error on both macOS 12 beta 4 and iOS 15 beta 4 simulator. <CKError 0x600001a2dbc0: "Account Temporarily Unavailable" (1028/2011); "Account temporarily unavailable due to bad or missing auth token"> Filed FB9435854.
Replies
Boosts
Views
Activity
Jul ’21
Reply to ShareRecord: Unable to find applicationIdentifier for containerId
Same here. Works on iOS, but not macOS. On iOS simulator, opening a CloudKit Share URL works fine. On macOS, I get the same kind of error. Filed FB9326669.
Replies
Boosts
Views
Activity
Jul ’21
Reply to Why can’t I use @Binding to manage NavigationList selection state?
The behavior of this has improved in recent versions. Now everything works as expected.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to registerForRemoteNotifications not working at all in Big Sur?
Same here as recent posters. Finally fixed in Big Sur 11.4, works again in both production and developer environments.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’21