Post

Replies

Boosts

Views

Activity

Reply to Crashes in _os_semaphore_dispose.cold since Xcode 13 beta 5
Same here. Tried all that stuff as well. It doesn't happen when not attached to the debugger... but that's not exactly helpful. @milutz Do you have a simple use case? And have you filed a Feedback? I'm seeing the same, triggered by either RunLoop or Firebase, but always ending in the same Semaphore issue. ** Note: I CANNOT reproduce this if I run Xcode and simulator from an Intel mac running macOS beta.
Topic: Community SubTopic: Apple Developers Tags:
Aug ’21
Reply to Crashes in _os_semaphore_dispose.cold since Xcode 13 beta 5
It's an iOS beta bug -- see iOS beta release notes : https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-15-beta-release-notes Debugging Known Issues Using dispatch semaphores in an iOS app running in a device simulator on a Mac with Apple silicon running macOS 11 will cause the app to crash. (81783378) Workaround: In Xcode, select Product > Scheme > Edit Scheme, then deselect Run > Options > Queue Debugging > “Enable backtrace recording.”
Topic: Community SubTopic: Apple Developers Tags:
Aug ’21
Reply to os_log configuration iOS
Here's the real answer: You need to use add an OSLogPreferences dictionary to your app's "Info.plist" file. For details, open Terminal and type man 5 os_log. The general structure will be something like this:     <key>OSLogPreferences</key>     <dict>         <key>put.your.subsystem.name.here</key>         <dict>             <key>put.your.category.name.here</key>             <dict>                 <key>Level</key>                 <dict>                     <key>Enable</key>                     <string>Debug</string>                     <key>Persist</key>                     <string>Debug</string>                 </dict>                 <key>Enable-Private-Data</key>                 <true/>             </dict>         </dict>     </dict> In Xcode, this looks like this: You enter a subsystem and category when you instantiate your Logger in Swift, something like this: import OSLog let myLogger = Logger(subsystem: "com.example.mycompany.mysubsystem", category: "kittens") logger.log("Hello there!") The dictionary under OSLogPreferences can have multiple subsystems, and each subsystem can list one or more categories. You can also use the special category key, DEFAULT-OPTIONS, to define common settings for all categories in a subsystem. So, if you used the single subsystem, com.example.mycompany.mysubsystem, you could do something like this:     <key>OSLogPreferences</key>     <dict>         <key>com.example.mycompany.mysubsystem</key>         <dict>             <key>DEFAULT-OPTIONS</key>             <dict>                 <key>Level</key>                 <dict>                     <key>Enable</key>                     <string>Debug</string>                     <key>Persist</key>                     <string>Debug</string>                 </dict>                 <key>Enable-Private-Data</key>                 <true/>             </dict>         </dict>     </dict> In both of my examples, the Enable-Private-Data key isn't required, but I include it so that everything doesn't say when you try to look at your logs. Thanks to @eskimo for pointing me to this man page.
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’23
Reply to ERROR: Unrecognized attribute string flag '?' in attribute string "T@"NSString",?,R,C" for property debugDescription
Thanks for the reply! We fixed this two ways: // debugDescription is... because Swift, I guess. + (MTLPropertyStorage)storageBehaviorForPropertyWithKey:(NSString *)propertyKey { if ([propertyKey isEqualToString:@"debugDescription"]) { return MTLPropertyStorageNone; } else { return [super storageBehaviorForPropertyWithKey:propertyKey]; } } @end In our base model type: + (MTLPropertyStorage)storageBehaviorForPropertyWithKey:(NSString *)propertyKey { if ([@[ @"isSubmitting", @"submitting", @"debugDescription" ] containsObject:propertyKey]) { return MTLPropertyStorageNone; } else { return [super storageBehaviorForPropertyWithKey:propertyKey]; } } @end Oh, there is also an fpritntf that actually generates this output in MTLEXTRuntimeExtensions.m, starting at line 601. You can comment that out or delete it and change it to a "break;" statement, like this:
Jan ’25
Reply to Crashes in _os_semaphore_dispose.cold since Xcode 13 beta 5
Same here. Tried all that stuff as well. It doesn't happen when not attached to the debugger... but that's not exactly helpful. @milutz Do you have a simple use case? And have you filed a Feedback? I'm seeing the same, triggered by either RunLoop or Firebase, but always ending in the same Semaphore issue. ** Note: I CANNOT reproduce this if I run Xcode and simulator from an Intel mac running macOS beta.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Crashes in _os_semaphore_dispose.cold since Xcode 13 beta 5
Can anyone confirm -- have you seen this issue when your mac is also running on the latest macOS beta?
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Crashes in _os_semaphore_dispose.cold since Xcode 13 beta 5
It's an iOS beta bug -- see iOS beta release notes : https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-15-beta-release-notes Debugging Known Issues Using dispatch semaphores in an iOS app running in a device simulator on a Mac with Apple silicon running macOS 11 will cause the app to crash. (81783378) Workaround: In Xcode, select Product > Scheme > Edit Scheme, then deselect Run > Options > Queue Debugging > “Enable backtrace recording.”
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Filling Paid Apps agreement info.
No idea. Same happened with me. Did you figure something out?
Replies
Boosts
Views
Activity
Mar ’22
Reply to os_log configuration iOS
Here's the real answer: You need to use add an OSLogPreferences dictionary to your app's "Info.plist" file. For details, open Terminal and type man 5 os_log. The general structure will be something like this:     <key>OSLogPreferences</key>     <dict>         <key>put.your.subsystem.name.here</key>         <dict>             <key>put.your.category.name.here</key>             <dict>                 <key>Level</key>                 <dict>                     <key>Enable</key>                     <string>Debug</string>                     <key>Persist</key>                     <string>Debug</string>                 </dict>                 <key>Enable-Private-Data</key>                 <true/>             </dict>         </dict>     </dict> In Xcode, this looks like this: You enter a subsystem and category when you instantiate your Logger in Swift, something like this: import OSLog let myLogger = Logger(subsystem: "com.example.mycompany.mysubsystem", category: "kittens") logger.log("Hello there!") The dictionary under OSLogPreferences can have multiple subsystems, and each subsystem can list one or more categories. You can also use the special category key, DEFAULT-OPTIONS, to define common settings for all categories in a subsystem. So, if you used the single subsystem, com.example.mycompany.mysubsystem, you could do something like this:     <key>OSLogPreferences</key>     <dict>         <key>com.example.mycompany.mysubsystem</key>         <dict>             <key>DEFAULT-OPTIONS</key>             <dict>                 <key>Level</key>                 <dict>                     <key>Enable</key>                     <string>Debug</string>                     <key>Persist</key>                     <string>Debug</string>                 </dict>                 <key>Enable-Private-Data</key>                 <true/>             </dict>         </dict>     </dict> In both of my examples, the Enable-Private-Data key isn't required, but I include it so that everything doesn't say when you try to look at your logs. Thanks to @eskimo for pointing me to this man page.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to SwiftData + CloudKit -- data not loaded on fresh install
Per suggestion in Slack's "data-frameworks" WWDC 2023 channel, I submitted Feedback, as FB12245665.
Replies
Boosts
Views
Activity
Jun ’23
Reply to SwiftData + CloudKit -- data not loaded on fresh install
I don’t recall the exact differences offhand, but if you create a new project using SwiftData and without CloudKit, the setup is slightly different. I didn’t have any trouble with data persistence between runs.
Replies
Boosts
Views
Activity
Jun ’23
Reply to ERROR: Unrecognized attribute string flag '?' in attribute string "T@"NSString",?,R,C" for property debugDescription
Thanks for the reply! We fixed this two ways: // debugDescription is... because Swift, I guess. + (MTLPropertyStorage)storageBehaviorForPropertyWithKey:(NSString *)propertyKey { if ([propertyKey isEqualToString:@"debugDescription"]) { return MTLPropertyStorageNone; } else { return [super storageBehaviorForPropertyWithKey:propertyKey]; } } @end In our base model type: + (MTLPropertyStorage)storageBehaviorForPropertyWithKey:(NSString *)propertyKey { if ([@[ @"isSubmitting", @"submitting", @"debugDescription" ] containsObject:propertyKey]) { return MTLPropertyStorageNone; } else { return [super storageBehaviorForPropertyWithKey:propertyKey]; } } @end Oh, there is also an fpritntf that actually generates this output in MTLEXTRuntimeExtensions.m, starting at line 601. You can comment that out or delete it and change it to a "break;" statement, like this:
Replies
Boosts
Views
Activity
Jan ’25
Reply to How to retrieve the App Icon?
Hey, not exactly what I wanted, but that's a cool site. 😀 Thanks!
Replies
Boosts
Views
Activity
Feb ’25
Reply to Core ML Model performance far lower on iOS 17 vs iOS 16 (iOS 17 not using Neural Engine)
Did you ever get any resolution to this or figure out what was happening?
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Is there a way to download payments data programmatically from App Store Connect?
It appears this is still missing in 2025.
Replies
Boosts
Views
Activity
Mar ’25
Reply to search result not showing .xib (Xcode 16.2)
Still an issue in Xcode 16.3
Replies
Boosts
Views
Activity
Apr ’25
Reply to Fetching app version release dates with App Store Connect API
Hi all. Anyone have some thoughts on this? My TSI is case 12309455 and my feedback is FB16730940. Neither has had any informational replies of any sort. Any help would be great. thanks
Replies
Boosts
Views
Activity
Apr ’25
Reply to Variable name auto-complete gone from lldb?
Same here. Also still an issue in Xcode 16.4 RC
Replies
Boosts
Views
Activity
May ’25
Reply to AVCaptureVideoPreviewLayer not working in iPadOS26 when using Windowed Apps mode
I ran into a similar issue. Video to the AVCaptureVideoPreviewLayer immediately stops updating/rendering when switching from full screen to a windowed size. Then I found this: https://developer.apple.com/documentation/AVKit/accessing-the-camera-while-multitasking-on-ipad
Topic: UI Frameworks SubTopic: General
Replies
Boosts
Views
Activity
Aug ’25