Search results for

“file uri scheme”

81,715 results found

Post

Replies

Boosts

Views

Activity

Reply to Apple watch Xcode pairing & connection issues
You can also kill it by sudo pkill -9 remotepairingd If you encounter an instance where you actually find this necessary, please file a Feedback Assistant Report which includes a devicectl diagnose (and separate mac / phone / watch sysdiagnoses if they're not all collected by it). There are no known issues for which this step should be necessary, so if there are issues, we want to know about them. make sure NOT to un-pair your device If you un-pair or you accidentally tap the button to not trust, the only way to get the prompt to appear again is by physically re-connecting the phone. watch is ON throughout the connecting process Yes, and it needs to remain unlocked throughout the DDI mounting process as well. If the device locks before the DDI mounting completes, you will need to re-attempt mounting the DDI. --Jeremy jeremyhu at apple dot com
1d
Reply to System-wide deadlock in removexattr from revisiond / APFS
I was mostly thinking of its interaction with extended attributes, as we see the target threads touching those as well. Just to clarify something, what's really going on here isn't really xattr access. The resource fork has a bit of a strange history, as it predates general xattr support by ~15 years and doesn't really fit into the same mold as any other xattr. It originally had its own API access path through FSReadFork and the ..namedfork/rsrc suffix to open and, more importantly, is routinely MUCH larger than any other xattr, most of which are measured in “bytes. The resource fork was basically added to the more general xattr implementation, rather than being implemented as a native part of the original implementation. Several years ago, we repurposed the resource fork and used it to implement file system level compression of specific files, which is what's happening here. Critically, these files look like standard data files and are accessed by reading the file
Topic: App & System Services SubTopic: Core OS Tags:
1d
Reply to Xcode now hangs; SDKs are "status unavailable"
File a bug report. I think Apple's bug algorithms won't flag anything unless there are multiple reports on the same bug. Although their Music app still can't properly handle gapless song lists reliably (e.g., Pink Floyd) and yet multiple people have been yelling about this over the years, so I may be off base as to how they prioritize their work. I don't think they have anyone to put the fear of God into them any more like Steve Jobs did when the engineers generated bad code.
1d
Reply to My macOS app is unable to read a Managed Preferences plist unless the App Sandbox is disabled. Is there any solution to read the MDM plist file while the sandbox is still enabled?
Could you please suggest the recommended approach? First off, as a clarification, what are you actually trying read here? If this is your apps preference file (meaning, it has your apps bundle ID), then NSUserDefaults (or CFPreference) will read automatically without any special code. Similarly, if this ISN'T your apps data, then what's the relationship between your app and the data you're trying to read? __ Kevin Elliott DTS Engineer, CoreOS/Hardware
Topic: App & System Services SubTopic: Core OS Tags:
1d
My macOS app is unable to read a Managed Preferences plist unless the App Sandbox is disabled. Is there any solution to read the MDM plist file while the sandbox is still enabled?
I created two sample apps — one sandboxed and one non‑sandboxed. I tested reading Managed Preferences using bash commands, CFPreferencesCopyValue for a domain, and defaults read. Everything works correctly only when the sandbox is disabled in the entitlements. When the sandbox is enabled, I’m unable to read values from /Library/Managed Preferences/. Is there any supported way for a sandboxed macOS app to read an MDM-delivered preference plist under /Library/Managed Preferences/? Any guidance on the correct and Apple‑supported method would be appreciated.
3
0
189
1d
Reply to Crashes occur on iOS 26.4
Part 2: No, not really. Memory exceptions (what a seg fault is) happen because you’re accessing memory that you either never allocated or have already freed, neither of which will happen due to direct lack of memory. Keep in mind that your app can't really run out of memory in the way you're describing. SO, the issue here is that the term memory is commonly used to describe two separate, but distinct, concepts: How much RAM your process is using. How much address space your process has been given by the system. The important thing to understand here is that those two factors are somewhat independent of each other. In simple terms, address space is what you actually use when you call “malloc, but RAM usage doesn't change until you actually touch the memory you've malloc'd. Similarly, the question here: is it possible that memory usage has increased significantly in iOS 26.4 compared to previous OS versions? ...doesn't really make sense in the context of address space. Real RAM usage changes considerably from r
1d
Reply to Crashes occur on iOS 26.4
Part 1: Thank you for your reply. I have attached the log file. I apologize for the inconvenience, but please take a look. So, starting with the log, the first thing that jumps out at me is that it's ascribing the crash to this stack in thread 0: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread: 0 libsystem_kernel.dylib 0x24a42ccd4 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x24a43030c mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x24a43022c mach_msg2 + 4 [inlined] 3 libsystem_kernel.dylib 0x24a43022c mach_msg_overwrite + 424 4 libsystem_kernel.dylib 0x24a430078 mach_msg + 24 5 CoreFoundation 0x19b9dfea4 __CFRunLoopServiceMachPort + 160 6 CoreFoundation 0x19b9a9f94 __CFRunLoopRun + 1188 7 CoreFoundation 0x19b9a91d0 _CFRunLoopRunSpecificWithOptions + 532 8 GraphicsServices 0x240eb7498 GSEventRunModal + 120 9 UIKitCore 0x1a166d2cc -[UIApplication _run] + 796 10 UIKitCore 0x1a15d8158 UIApplicationMain + 332 11 UnityFramework 0x11cbfbb08 12 sekai 0x1020bbbb8 13 dyld 0x1985bdc1c start + 6928
1d
Core Data Migration Strategy: store relocation, schema changes and CloudKit adoption in a single release?
I am planning a Core Data migration for a macOS app targeting macOS 12 and later and I would appreciate guidance on structuring the rollout to minimise risk. Context The app currently uses a SQLite store located at: ~/Library/Containers/com.company.AppName/Data/Library/Application Support/AppName I want to: Relocate the persistent store to an app group container: ~/Library/Group Containers/group.com.company.AppName Perform schema migration, including: Renaming attributes Deleting attributes Using a custom NSEntityMigrationPolicy subclass Adopt iCloud sync using NSPersistentCloudKitContainer Potentially leverage staged migration (macOS 14+) Additionally, I intend to port the app to iOS, so the end state needs to support an app group container and CloudKit with the latest schema from the outset. Questions Store relocation vs schema migration Is it advisable to perform store relocation and schema migration in a single step, or should these be separate releases? If combined, are there pitfalls when moving the SQL
3
0
91
2d
Reply to Supported way to expose an iPhone+controller as a macOS gamepad without restricted entitlements?
I will go ahead and file a request for a Core HID development variant. Perfect, thank you. FYI, I can't guarantee anything will change, but I'd like to get this sorted out as soon as possible, so this might be working relatively soon (at least on paid accounts). One comment here: More broadly, I think it would be very valuable to have a simple user-space API for controller virtualization available to hobbyists and personal developers as well, even if limited to development builds. I've seen a few requests asking about providing this support to the free account tier, not just the paid tier. It's a reasonable suggestion, but I did want to explain that the main reason the development entitlements are restricted to paid accounts is as a form of practical security protection. The idea here is that the underlying details of development signing's limitations: Builds only run on the specific devices that were registered when the signing profile was generated. Registering a device requires extracting informat
Topic: App & System Services SubTopic: Drivers Tags:
2d
As of macOS 26.4, WKWebView content disappears after 3 seconds when part of a legacy ScreenSaver view hierarchy.
The title says it all, and I've filed FB FB22353950 that includes an Xcode 26.4 Screen Saver test project, QT movie demonstrating the error, and a PDF with complete steps to build and test. I'm asking here just to learn if this sounds familiar. The SS built on 26.4 fails in 26.4, works fine on 26.3.1. I'll supply the test files if there's interest. Thanks.
2
0
465
2d
Reply to How to renew visionOS Enterprise API entitlement / license?
Hey @Jir_253, You can generate a new license file in the Developer portal. Please see this help article for additional details. If you have any issues, or would like to request enhancements, please provide feedback on the Enterprise APls for visionOS using Feedback Assistant. Feel free to post the feedback number here when you do. Bug Reporting: How and Why? has tips on creating your bug report. Thanks, Michael
Topic: Spatial Computing SubTopic: General Tags:
2d
Reply to [FB21797091] Regression: Universal Links/AASA Fetching Fails for IDN on iOS 16+
@catelinecz May I ask you 2 things if I may. Can you create a new thread and post your code there so can be a separate thread? Can you also create an enhancement request for the universal links team to take a look? If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why? Albert 
  Worldwide Developer Relations.
Topic: App & System Services SubTopic: General Tags:
2d
Reply to Apple watch Xcode pairing & connection issues
You can also kill it by sudo pkill -9 remotepairingd If you encounter an instance where you actually find this necessary, please file a Feedback Assistant Report which includes a devicectl diagnose (and separate mac / phone / watch sysdiagnoses if they're not all collected by it). There are no known issues for which this step should be necessary, so if there are issues, we want to know about them. make sure NOT to un-pair your device If you un-pair or you accidentally tap the button to not trust, the only way to get the prompt to appear again is by physically re-connecting the phone. watch is ON throughout the connecting process Yes, and it needs to remain unlocked throughout the DDI mounting process as well. If the device locks before the DDI mounting completes, you will need to re-attempt mounting the DDI. --Jeremy jeremyhu at apple dot com
Replies
Boosts
Views
Activity
1d
Reply to System-wide deadlock in removexattr from revisiond / APFS
I was mostly thinking of its interaction with extended attributes, as we see the target threads touching those as well. Just to clarify something, what's really going on here isn't really xattr access. The resource fork has a bit of a strange history, as it predates general xattr support by ~15 years and doesn't really fit into the same mold as any other xattr. It originally had its own API access path through FSReadFork and the ..namedfork/rsrc suffix to open and, more importantly, is routinely MUCH larger than any other xattr, most of which are measured in “bytes. The resource fork was basically added to the more general xattr implementation, rather than being implemented as a native part of the original implementation. Several years ago, we repurposed the resource fork and used it to implement file system level compression of specific files, which is what's happening here. Critically, these files look like standard data files and are accessed by reading the file
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1d
Reply to Xcode now hangs; SDKs are "status unavailable"
File a bug report. I think Apple's bug algorithms won't flag anything unless there are multiple reports on the same bug. Although their Music app still can't properly handle gapless song lists reliably (e.g., Pink Floyd) and yet multiple people have been yelling about this over the years, so I may be off base as to how they prioritize their work. I don't think they have anyone to put the fear of God into them any more like Steve Jobs did when the engineers generated bad code.
Replies
Boosts
Views
Activity
1d
Reply to SwiftUI Chart scrolling on macOS
Report filed: FB22373888
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
1d
Reply to My macOS app is unable to read a Managed Preferences plist unless the App Sandbox is disabled. Is there any solution to read the MDM plist file while the sandbox is still enabled?
Could you please suggest the recommended approach? First off, as a clarification, what are you actually trying read here? If this is your apps preference file (meaning, it has your apps bundle ID), then NSUserDefaults (or CFPreference) will read automatically without any special code. Similarly, if this ISN'T your apps data, then what's the relationship between your app and the data you're trying to read? __ Kevin Elliott DTS Engineer, CoreOS/Hardware
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1d
My macOS app is unable to read a Managed Preferences plist unless the App Sandbox is disabled. Is there any solution to read the MDM plist file while the sandbox is still enabled?
I created two sample apps — one sandboxed and one non‑sandboxed. I tested reading Managed Preferences using bash commands, CFPreferencesCopyValue for a domain, and defaults read. Everything works correctly only when the sandbox is disabled in the entitlements. When the sandbox is enabled, I’m unable to read values from /Library/Managed Preferences/. Is there any supported way for a sandboxed macOS app to read an MDM-delivered preference plist under /Library/Managed Preferences/? Any guidance on the correct and Apple‑supported method would be appreciated.
Replies
3
Boosts
0
Views
189
Activity
1d
Reply to Crashes occur on iOS 26.4
Part 2: No, not really. Memory exceptions (what a seg fault is) happen because you’re accessing memory that you either never allocated or have already freed, neither of which will happen due to direct lack of memory. Keep in mind that your app can't really run out of memory in the way you're describing. SO, the issue here is that the term memory is commonly used to describe two separate, but distinct, concepts: How much RAM your process is using. How much address space your process has been given by the system. The important thing to understand here is that those two factors are somewhat independent of each other. In simple terms, address space is what you actually use when you call “malloc, but RAM usage doesn't change until you actually touch the memory you've malloc'd. Similarly, the question here: is it possible that memory usage has increased significantly in iOS 26.4 compared to previous OS versions? ...doesn't really make sense in the context of address space. Real RAM usage changes considerably from r
Replies
Boosts
Views
Activity
1d
Reply to Crashes occur on iOS 26.4
Part 1: Thank you for your reply. I have attached the log file. I apologize for the inconvenience, but please take a look. So, starting with the log, the first thing that jumps out at me is that it's ascribing the crash to this stack in thread 0: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread: 0 libsystem_kernel.dylib 0x24a42ccd4 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x24a43030c mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x24a43022c mach_msg2 + 4 [inlined] 3 libsystem_kernel.dylib 0x24a43022c mach_msg_overwrite + 424 4 libsystem_kernel.dylib 0x24a430078 mach_msg + 24 5 CoreFoundation 0x19b9dfea4 __CFRunLoopServiceMachPort + 160 6 CoreFoundation 0x19b9a9f94 __CFRunLoopRun + 1188 7 CoreFoundation 0x19b9a91d0 _CFRunLoopRunSpecificWithOptions + 532 8 GraphicsServices 0x240eb7498 GSEventRunModal + 120 9 UIKitCore 0x1a166d2cc -[UIApplication _run] + 796 10 UIKitCore 0x1a15d8158 UIApplicationMain + 332 11 UnityFramework 0x11cbfbb08 12 sekai 0x1020bbbb8 13 dyld 0x1985bdc1c start + 6928
Replies
Boosts
Views
Activity
1d
Reply to iCloud Sync not working with iPhone, works fine for Mac.
Thank you all for filing the feedback reports, which do help. If possible, would you please verify with iOS 26.5 beta (23F5043g) to see if the issue goes away, and update the status here? Thanks again! Best, —— Ziqiao Chen  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
2d
Core Data Migration Strategy: store relocation, schema changes and CloudKit adoption in a single release?
I am planning a Core Data migration for a macOS app targeting macOS 12 and later and I would appreciate guidance on structuring the rollout to minimise risk. Context The app currently uses a SQLite store located at: ~/Library/Containers/com.company.AppName/Data/Library/Application Support/AppName I want to: Relocate the persistent store to an app group container: ~/Library/Group Containers/group.com.company.AppName Perform schema migration, including: Renaming attributes Deleting attributes Using a custom NSEntityMigrationPolicy subclass Adopt iCloud sync using NSPersistentCloudKitContainer Potentially leverage staged migration (macOS 14+) Additionally, I intend to port the app to iOS, so the end state needs to support an app group container and CloudKit with the latest schema from the outset. Questions Store relocation vs schema migration Is it advisable to perform store relocation and schema migration in a single step, or should these be separate releases? If combined, are there pitfalls when moving the SQL
Replies
3
Boosts
0
Views
91
Activity
2d
Reply to Supported way to expose an iPhone+controller as a macOS gamepad without restricted entitlements?
I will go ahead and file a request for a Core HID development variant. Perfect, thank you. FYI, I can't guarantee anything will change, but I'd like to get this sorted out as soon as possible, so this might be working relatively soon (at least on paid accounts). One comment here: More broadly, I think it would be very valuable to have a simple user-space API for controller virtualization available to hobbyists and personal developers as well, even if limited to development builds. I've seen a few requests asking about providing this support to the free account tier, not just the paid tier. It's a reasonable suggestion, but I did want to explain that the main reason the development entitlements are restricted to paid accounts is as a form of practical security protection. The idea here is that the underlying details of development signing's limitations: Builds only run on the specific devices that were registered when the signing profile was generated. Registering a device requires extracting informat
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
2d
As of macOS 26.4, WKWebView content disappears after 3 seconds when part of a legacy ScreenSaver view hierarchy.
The title says it all, and I've filed FB FB22353950 that includes an Xcode 26.4 Screen Saver test project, QT movie demonstrating the error, and a PDF with complete steps to build and test. I'm asking here just to learn if this sounds familiar. The SS built on 26.4 fails in 26.4, works fine on 26.3.1. I'll supply the test files if there's interest. Thanks.
Replies
2
Boosts
0
Views
465
Activity
2d
Reply to How to renew visionOS Enterprise API entitlement / license?
Hey @Jir_253, You can generate a new license file in the Developer portal. Please see this help article for additional details. If you have any issues, or would like to request enhancements, please provide feedback on the Enterprise APls for visionOS using Feedback Assistant. Feel free to post the feedback number here when you do. Bug Reporting: How and Why? has tips on creating your bug report. Thanks, Michael
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
2d
Reply to [FB21797091] Regression: Universal Links/AASA Fetching Fails for IDN on iOS 16+
@catelinecz May I ask you 2 things if I may. Can you create a new thread and post your code there so can be a separate thread? Can you also create an enhancement request for the universal links team to take a look? If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why? Albert 
  Worldwide Developer Relations.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
2d
Reply to Clipboard issues with simulators
@Alonso- Thanks for you post, have you file a bug and do you have the FB number: https://developer.apple.com/forums/thread/820393?answerId=881554022#881554022 Albert 
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
2d