Search results for

“file uri scheme”

81,710 results found

Post

Replies

Boosts

Views

Activity

Reply to iCloud Sync not working with iPhone, works fine for Mac.
We should not be expected to all file feedbacks for Apple to fix a critical bug that should not have shipped in the first place. CloudKit is opaque and difficult enough to implement and test that there is sometimes no way to know if we are at fault or if it’s some quirk of the system. Only apple could have caught this bug with certainty and they should be performing a root cause analysis about why it shipped at all. Apple’s own sample app fails. Why is that not an automated test?
3d
nobrowse mount option ignored?
Shouldn't it be supported? Also is there a way to disable spotlight indexing on a mounted folder? mds_stores is going wild on fskit volumes. mount -o nobrowse -t passthrough ~/Downloads ~/mnt alexf@MacBook-Pro-3 build % mount file:///Users/alexf/Downloads/ on /Users/alexf/mnt (passthrough, local, nodev, nosuid, noowners, noatime, fskit, mounted by alexf)```
1
0
42
3d
Reply to Supported way to expose an iPhone+controller as a macOS gamepad without restricted entitlements?
Thank you! this is very helpful and clarifies the issue a lot. I will go ahead and file a request for a Core HID development variant. Regarding the SIP / AMFI workaround: I understand the security concerns, and I agree that lowering system security is not an ideal solution. Of course there isn't a way to enable that only while the app is in use isn't it? That would be an acceptable risk for me. Or is it inherently a reboot-level change? In parallel, I will also explore mapping to keyboard and mouse events as a fallback, even though that is not the original target and is clearly less suitable than a true controller-visible solution. 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 understand it's possible on Windows. Thanks again for the detailed explanation.
Topic: App & System Services SubTopic: Drivers Tags:
3d
Reply to Localization in Swift macOS console Apps.
I have managed to wrap a command line tool into a .app package and to test my package localization. while this works it's obviously not the idle way to test a package localization. Just waiting to see if I get any more responses from someone who has actually tried to do this. Just to recap, there is nothing special here, just a command line tool with a Localization.xcstrings file that has one sentence both in English and fr-CA.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
3d
Reply to Xcode now hangs; SDKs are "status unavailable"
I filed a similar report yesterday... Xcode 26.4 (17E192) Simulators Keep Showing As Unavailable After Successfully Intalling Them FB22346008 ... with sysdiagnose tarball and screen shots. Am also running Tahoe 26.4. I spent the better part of this evening removing the following items: /Applications/Xcode.app /Library/Developer ~/Library/Developer ~/Caches/com.apple.dt.* ~/Preferences/com.apple.dt.* /private/var/tmp/com.apple.CoreSimulator.SimDevice.* rebooting my machine, and then reinstalling Xcode 26.4 (Apple Silicon) and the command line tools. I then used xcrun simctl to flush all of my devices and runtimes. I spent a lot of time fighting Xcode because after removing old simulators, Xcode automatically downloads them all again (SMH!). Once Xcode seemed to stabilize its downloads (using xcrun simctl list to monitor everything), I then added the iOS, watchOS, and tvOS simulators for 26.4. So far, things seem to be behaving. We'll see whether or not I wake up tomorrow to joy or despair. I have a 20
4d
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
461
4d
Localization in Swift macOS console Apps.
Is it possible to build localization into console apps, developed in SwiftUI in Xcode26. I have created a catalog, (.xcstrings file) with an English and fr-CA string. I have tried to display the French text without success. I am using the console app to test a package which also has English/French text. English text works fine in both package and the console main, but I cannot generate the French. From what I can discover so far it's not possible without bundling it as a .app, (console app). Looking for anyone who has crossed this bridge.
7
0
260
4d
Reply to Crashes occur on iOS 26.4
Since updating the OS to 26.4, the app has been crashing more often after I launch it. Please post the full crash log, using the instructions found here. Additional information: The app was developed using Unity. After contacting Unity, they indicated that based on the crash logs, it is highly likely that a “Segmentation Fault” occurred. A Segmentation Fault just means your app attempted to access invalid memory, which doesn't actually tell you very much about why you actually crashed. The document Diagnosing memory, thread, and crash issues early has a good overview of the tools that can help file this sort of issue, followed by some specific examples of what can cause this kind of failure. I suspect the “Segmentation Fault” is caused by insufficient memory. 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 rea
4d
Reply to System-wide deadlock in removexattr from revisiond / APFS
Are you sure it isn't an auth event? Without going into too much detail, it's possible, but unlikely given the methods in the stack that led to the deadlock. Auth events are primarily for security and integrity protection. What are you actually doing to the files? I suspect you're copying them, but wouldn't mind confirming that. The method on the stack is -[MyPathHelper fetchFileTypeForFileAtPath:], which is mostly used for scanning and reporting. Having said that, my suggestion to whitelist RevisionD is really about what it does, not how it's doing it. I was mostly thinking of its interaction with extended attributes, as we see the target threads touching those as well. I will post more detail in the FB ticket, and we can dive deeper there.
Topic: App & System Services SubTopic: Core OS Tags:
4d
Reply to Slow launch of app on iOS Simulator 26.4
I'd like you to try something — go into your scheme, and uncheck Debug Executable from the Run tab. When you click Run, Xcode will run your app with going through the process to attach LLDB. Does the launch performance after this look more like you're expecting? If so, we'd really appreciate getting diagnostics so we can look into the root cause of this slow down. Add the following to your ~/.lldbinit file, and the restart Xcode to ensure this is enabled: log enable gdb-remote packets --timestamp -f /tmp/log_packets.txt Before you launch your app, run the following in Terminal: sample lldb-rpc-server 60 --wait -file /tmp/sample.txt Attach both of those files that those commands placed in /tmp on your bug report, and let me know here when that's done. I also suggest removing the log line from ~/.lldbinit so it's not always logging debugger packets. @Code4Food, it'd be helpful if you could run the same tests and collect the same data, and attach them to your own bug report. P
4d
Reply to CGSetDisplayTransferByTable is broken on macOS Tahoe 26.4 RC (and 26.3.1) with MacBook M5 Pro, Max and Neo
Thank you for the additional detail on the EDR/auto-brightness inconsistency — that's a useful and distinct report. Please do file a bug report for this second issue. Include a description of the two behaviors (auto-brightness on vs. off) and the inconsistent state you described. I'll check the status next time I do a sweep of forums posts where I've suggested bug reports and post any information about changes I am able to share to this thread. I’m happy to make sure your bug gets routed to the right team. Bug Reporting: How and Why? has tips on creating your bug report.
Topic: Graphics & Games SubTopic: General Tags:
4d
Reply to Previews for SwiftUI views in Packages don't work in Xcode 26.4
I was able to replicate this issue in a very simple way, within a new project created with the standard Xcode template, to which I added a Swift Package as a library (MyLibrary). This is the Package definition: // swift-tools-version: 6.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: MyLibrary, platforms: [.iOS(.v18)], products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( name: MyLibrary, targets: [MyLibrary] ), ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. // Targets can depend on other targets in this package and products from dependencies. .target( name: MyLibrary, path: Sources/MyLibrary ), ], swiftLanguageModes: [.v6] ) If the target name is equal to library name (MyLibrary) the preview of SwiftUIView works as expected. If I change the target name (for example MyLibrar
4d
Reply to Supported way to expose an iPhone+controller as a macOS gamepad without restricted entitlements?
What I’m trying to understand is whether Apple supports any path for this on macOS that does NOT require restricted entitlements or paid-program-only capabilities. So, let me lay out the state of things that you listed: Both DriverKit and Core HID require restricted entitlements. All DriverKit entitlements have Development Only variants which allow those entitlements to be used in development signed builds without any approval (they're added through the portal like any other entitlement). Virtual Core HID does not currently have a development variant, but that's an issue I'm looking into correcting (r.173531752). In both cases, that means using these entitlements currently requires joining the paid program. If you'd like to see us expand these to the free account as well, please file a bug asking for that and then post the bug number back here. Also, to be clear, that is a serious request - I'd like to look at expanding the availability of these entitlements, but that's hard to justify without a bit
Topic: App & System Services SubTopic: Drivers Tags:
4d
Reply to iCloud Sync not working with iPhone, works fine for Mac.
We should not be expected to all file feedbacks for Apple to fix a critical bug that should not have shipped in the first place. CloudKit is opaque and difficult enough to implement and test that there is sometimes no way to know if we are at fault or if it’s some quirk of the system. Only apple could have caught this bug with certainty and they should be performing a root cause analysis about why it shipped at all. Apple’s own sample app fails. Why is that not an automated test?
Replies
Boosts
Views
Activity
3d
nobrowse mount option ignored?
Shouldn't it be supported? Also is there a way to disable spotlight indexing on a mounted folder? mds_stores is going wild on fskit volumes. mount -o nobrowse -t passthrough ~/Downloads ~/mnt alexf@MacBook-Pro-3 build % mount file:///Users/alexf/Downloads/ on /Users/alexf/mnt (passthrough, local, nodev, nosuid, noowners, noatime, fskit, mounted by alexf)```
Replies
1
Boosts
0
Views
42
Activity
3d
Reply to Supported way to expose an iPhone+controller as a macOS gamepad without restricted entitlements?
Thank you! this is very helpful and clarifies the issue a lot. I will go ahead and file a request for a Core HID development variant. Regarding the SIP / AMFI workaround: I understand the security concerns, and I agree that lowering system security is not an ideal solution. Of course there isn't a way to enable that only while the app is in use isn't it? That would be an acceptable risk for me. Or is it inherently a reboot-level change? In parallel, I will also explore mapping to keyboard and mouse events as a fallback, even though that is not the original target and is clearly less suitable than a true controller-visible solution. 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 understand it's possible on Windows. Thanks again for the detailed explanation.
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
3d
Reply to Localization in Swift macOS console Apps.
I have managed to wrap a command line tool into a .app package and to test my package localization. while this works it's obviously not the idle way to test a package localization. Just waiting to see if I get any more responses from someone who has actually tried to do this. Just to recap, there is nothing special here, just a command line tool with a Localization.xcstrings file that has one sentence both in English and fr-CA.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
3d
Reply to Xcode now hangs; SDKs are "status unavailable"
I filed a similar report yesterday... Xcode 26.4 (17E192) Simulators Keep Showing As Unavailable After Successfully Intalling Them FB22346008 ... with sysdiagnose tarball and screen shots. Am also running Tahoe 26.4. I spent the better part of this evening removing the following items: /Applications/Xcode.app /Library/Developer ~/Library/Developer ~/Caches/com.apple.dt.* ~/Preferences/com.apple.dt.* /private/var/tmp/com.apple.CoreSimulator.SimDevice.* rebooting my machine, and then reinstalling Xcode 26.4 (Apple Silicon) and the command line tools. I then used xcrun simctl to flush all of my devices and runtimes. I spent a lot of time fighting Xcode because after removing old simulators, Xcode automatically downloads them all again (SMH!). Once Xcode seemed to stabilize its downloads (using xcrun simctl list to monitor everything), I then added the iOS, watchOS, and tvOS simulators for 26.4. So far, things seem to be behaving. We'll see whether or not I wake up tomorrow to joy or despair. I have a 20
Replies
Boosts
Views
Activity
4d
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
461
Activity
4d
Reply to iCloud Sync not working with iPhone, works fine for Mac.
Exactly same issue here since iOS26.4. Mac works as expected, on iOS not getting updates on cloud sync. Filed the feedback FB22353668
Replies
Boosts
Views
Activity
4d
Localization in Swift macOS console Apps.
Is it possible to build localization into console apps, developed in SwiftUI in Xcode26. I have created a catalog, (.xcstrings file) with an English and fr-CA string. I have tried to display the French text without success. I am using the console app to test a package which also has English/French text. English text works fine in both package and the console main, but I cannot generate the French. From what I can discover so far it's not possible without bundling it as a .app, (console app). Looking for anyone who has crossed this bridge.
Replies
7
Boosts
0
Views
260
Activity
4d
Reply to Crashes occur on iOS 26.4
Since updating the OS to 26.4, the app has been crashing more often after I launch it. Please post the full crash log, using the instructions found here. Additional information: The app was developed using Unity. After contacting Unity, they indicated that based on the crash logs, it is highly likely that a “Segmentation Fault” occurred. A Segmentation Fault just means your app attempted to access invalid memory, which doesn't actually tell you very much about why you actually crashed. The document Diagnosing memory, thread, and crash issues early has a good overview of the tools that can help file this sort of issue, followed by some specific examples of what can cause this kind of failure. I suspect the “Segmentation Fault” is caused by insufficient memory. 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 rea
Replies
Boosts
Views
Activity
4d
Reply to System-wide deadlock in removexattr from revisiond / APFS
Are you sure it isn't an auth event? Without going into too much detail, it's possible, but unlikely given the methods in the stack that led to the deadlock. Auth events are primarily for security and integrity protection. What are you actually doing to the files? I suspect you're copying them, but wouldn't mind confirming that. The method on the stack is -[MyPathHelper fetchFileTypeForFileAtPath:], which is mostly used for scanning and reporting. Having said that, my suggestion to whitelist RevisionD is really about what it does, not how it's doing it. I was mostly thinking of its interaction with extended attributes, as we see the target threads touching those as well. I will post more detail in the FB ticket, and we can dive deeper there.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
4d
Reply to Slow launch of app on iOS Simulator 26.4
I'd like you to try something — go into your scheme, and uncheck Debug Executable from the Run tab. When you click Run, Xcode will run your app with going through the process to attach LLDB. Does the launch performance after this look more like you're expecting? If so, we'd really appreciate getting diagnostics so we can look into the root cause of this slow down. Add the following to your ~/.lldbinit file, and the restart Xcode to ensure this is enabled: log enable gdb-remote packets --timestamp -f /tmp/log_packets.txt Before you launch your app, run the following in Terminal: sample lldb-rpc-server 60 --wait -file /tmp/sample.txt Attach both of those files that those commands placed in /tmp on your bug report, and let me know here when that's done. I also suggest removing the log line from ~/.lldbinit so it's not always logging debugger packets. @Code4Food, it'd be helpful if you could run the same tests and collect the same data, and attach them to your own bug report. P
Replies
Boosts
Views
Activity
4d
Reply to NSURL - is it intended behavior for -URLByAppendingPathComponent: to allow appending multiple path components in one call?
If an app assumes it's appending only one path component on a directory it owns (like inside a package), it may think it is safe, but it can be tricked into overwriting files at unexpected file system locations.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
4d
Reply to CGSetDisplayTransferByTable is broken on macOS Tahoe 26.4 RC (and 26.3.1) with MacBook M5 Pro, Max and Neo
Thank you for the additional detail on the EDR/auto-brightness inconsistency — that's a useful and distinct report. Please do file a bug report for this second issue. Include a description of the two behaviors (auto-brightness on vs. off) and the inconsistent state you described. I'll check the status next time I do a sweep of forums posts where I've suggested bug reports and post any information about changes I am able to share to this thread. I’m happy to make sure your bug gets routed to the right team. Bug Reporting: How and Why? has tips on creating your bug report.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
4d
Reply to Previews for SwiftUI views in Packages don't work in Xcode 26.4
I was able to replicate this issue in a very simple way, within a new project created with the standard Xcode template, to which I added a Swift Package as a library (MyLibrary). This is the Package definition: // swift-tools-version: 6.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: MyLibrary, platforms: [.iOS(.v18)], products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( name: MyLibrary, targets: [MyLibrary] ), ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. // Targets can depend on other targets in this package and products from dependencies. .target( name: MyLibrary, path: Sources/MyLibrary ), ], swiftLanguageModes: [.v6] ) If the target name is equal to library name (MyLibrary) the preview of SwiftUIView works as expected. If I change the target name (for example MyLibrar
Replies
Boosts
Views
Activity
4d
Reply to Supported way to expose an iPhone+controller as a macOS gamepad without restricted entitlements?
What I’m trying to understand is whether Apple supports any path for this on macOS that does NOT require restricted entitlements or paid-program-only capabilities. So, let me lay out the state of things that you listed: Both DriverKit and Core HID require restricted entitlements. All DriverKit entitlements have Development Only variants which allow those entitlements to be used in development signed builds without any approval (they're added through the portal like any other entitlement). Virtual Core HID does not currently have a development variant, but that's an issue I'm looking into correcting (r.173531752). In both cases, that means using these entitlements currently requires joining the paid program. If you'd like to see us expand these to the free account as well, please file a bug asking for that and then post the bug number back here. Also, to be clear, that is a serious request - I'd like to look at expanding the availability of these entitlements, but that's hard to justify without a bit
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
4d