Search results for

file uri scheme

79,839 results found

Post

Replies

Boosts

Views

Activity

Reply to DEXT (IOUserSCSIParallelInterfaceController): Direct I/O Succeeds, but Buffered I/O Fails with Data Corruption on Large File Copies
This file confirms that we are indeed defining all the required keys (including kIOMaximumSegmentByteCount) before calling UserReportHBAConstraints, and it also demonstrates the SetProperties workaround we implemented to bypass the issue. Ahh, I see what’s going on. I believe UserReportHBAConstraints actually sets those values at the controller level (not the peripheral), and your ioreg snippet didn’t include the controller. Can you upload a full IORegistryExplorer snapshot just so I can confirm everything is correct? Aside from that, having read through the bug again, I think setting kIOMaximumByteCountRead/WriteKey on the peripheral is probably your best option. I want to double-check that with the engineering lead (he’s out sick today) just in case I’ve missed something, but I don’t think that will change anything. __ Kevin Elliott DTS Engineer, CoreOS/Hardware
Topic: App & System Services SubTopic: Drivers Tags:
2w
Reply to "Signing certificate" and post-installation assignment fail due to IOPCIPrimaryMatch
My current goal is to ship the PCIe DriverKit. I want my customers to be able to install our DriverKit without having to disable SIP or anything like that. Absolutely. Why is there a difference between the Apple Development value and the Developer ID value? The two different values happen because of the development only variant that's added to all accounts. (a) This is the development only configuration (which all accounts have): 0xFFFFFFFF&0x00000000 (b) And this is the specific configuration you were approved for, which is unique to your account: 0x00001916&0x0000FFFF Unfortunately, the portal and Xcode handling of these overlapping configurations doesn't work all that well. You can find a description of what's actually going on here. However, note that I don't think the flow described at the end of that post actually works today. However, according to the URL you provided, would manual signing using a provisioning file created with a Distribution Developer ID be better? First off, please file
Topic: Code Signing SubTopic: Entitlements Tags:
2w
pairedUUIDsDidChangeNotification never fires, even with MFi hearing aids paired
Hi everyone — I’m implementing the new Hearing Device Support API described here: https://developer.apple.com/documentation/accessibility/hearing-device-support I have MFi hearing aids paired and visible under Settings → Accessibility → Hearing Devices, and I’ve added the com.apple.developer.hearing.aid.app entitlement (and also tested with Wireless Accessory Configuration: https://developer.apple.com/documentation/bundleresources/entitlements/com.apple.external-accessory.wireless-configuration ). com.apple.developer.hearing.aid.app xxxxx but the app won't even compile with this entitlement Problem NotificationCenter.default.addObserver(...) for pairedUUIDsDidChangeNotification never fires — not on app launch, not after pairing/unpairing, and not after reconnecting the hearing aids. Because the notification never triggers, calls like: HearingDeviceSession.shared.pairedDevices always return an empty list. What I expected According to the docs, the notification should be posted whenever paired device UUIDs chan
1
0
494
2w
Reply to NSButtons disappear on macOS 26
Thank you for your post and the comprehensive description, including the accompanying images. It is intriguing to note that the button will be absent in iOS 26. Your application appears to be well-designed. May I request that you create a simple focused project where you can reproduce the same issue in iOS 26? The button disappears unless you add the key to the Info.plist file to disable Liquid Glass. If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project. Albert Pascual
  Worldwide Developer Relations.
Topic: UI Frameworks SubTopic: UIKit Tags:
2w
Reply to URLRequest(url:cachePolicy:timeoutInterval:) started to crash in iOS 26
[quote='868298022, bims, /thread/806594?answerId=868298022#868298022, /profile/bims'] Looking at the ips-file I found that it does not show the finding that Xcode show [/quote] Right. Xcode has MTE smarts beyond what the human readable crash report shows. To see the underlying data, open the JSON crash report and search for memoryErrorReport. With some reformatting you get this: memoryErrorReport : { faultAddress:0x0c00000d9de112c0, blamedAllocation: { size:48, allocationTrace:…, deallocationTrace:…, isFreed:true, address:0x0c00000d9de112c0 }, errorType:use-after-free }, The allocationTrace and deallocationTrace backtraces need further massaging. I did a hack-ish job of that and have included the results at the end of this post. I wanted the JSON crash report so that I could run it through some internal tools. I was able to do the first part of that today. I was hoping it might point me at some known bugs. It did, but those were resolved a while bug and thus are unlikely to be the cause of this issue
2w
Permission error occurs when I use setDefaultApplication(at:toOpen:completion:)
I'd like to set my macOS app written in Swift as default app when opening .mp4 file. I think I can do it with setDefaultApplication(at:toOpen:completion:). https://developer.apple.com/documentation/appkit/nsworkspace/3753002-setdefaultapplication However, permission error occurs when I use it. The error is: Error Domain=NSCocoaErrorDomain Code=256 The file couldn’t be opened. UserInfo={NSUnderlyingError=0x6000031d0150 {Error Domain=NSOSStatusErrorDomain Code=-54 permErr: permissions error (on file open)}} I tried to give my app full-disk access, but it didn't work. I also tried to use setDefaultApplication(at:toOpenFileAt:completion:), then it works with no error, but it effects on only one file. What I want to do is to set my app as default app of all .mp4 files. How do I achieve this? My code is like below: let bundleUrl = Bundle.main.bundleURL NSWorkspace.shared.setDefaultApplication(at: bundleUrl, toOpen: .mpeg4Movie) { error in print(error) } Thank you.
3
0
551
2w
Reply to Permission error occurs when I use setDefaultApplication(at:toOpen:completion:)
Is your app sandboxed? If so, this is not expected to work. The App Sandbox prevents apps from changing application bindings. You can see evidence for this if you dig into the error. The underlying error, -54, aka permErr, is being rendered as permissions error (on file open) but that’s just an accident of history. Launch Services is using it in the more generic sense of permission denied. And, yeah, please do file a bug against the docs. We should update both the NSWorkspace API documentation and the Review functionality that is incompatible with App Sandbox section of Protecting user data with App Sandbox. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: General Tags:
2w
Reply to "Signing certificate" and post-installation assignment fail due to IOPCIPrimaryMatch
My current goal is to ship the PCIe DriverKit. I want my customers to be able to install our DriverKit without having to disable SIP or anything like that. I tried the following value as suggested, and the build did indeed pass. 0xFFFFFFFF&0x00000000 After checking the contents of the downloaded provisioning file again, I was able to clarify the problem. The value in the file created in App Development wasn't set properly. Created a provisioning file with DriverKit App Development and checked the value of IOPCIPrimaryMatch. 0xFFFFFFFF&0x00000000 Created a provisioning file with the Distribution Developer ID and checked the value of IOPCIPrimaryMatch. 0x00001916&0x0000FFFF Why is there a difference between the Apple Development value and the Developer ID value? My account belongs to a corporate account. Is this related? Also, when I check your post, it seems like I've never created a provisioning file. That's strange. Is the local file on my PC
Topic: Code Signing SubTopic: Entitlements Tags:
2w
Reply to DEXT (IOUserSCSIParallelInterfaceController): Direct I/O Succeeds, but Buffered I/O Fails with Data Corruption on Large File Copies
Hi Kevin, Just a quick update: I have uploaded the source code (SetupHBAConstraints_Workaround.cpp) to the bug report (FB21256805). This file confirms that we are indeed defining all the required keys (including kIOMaximumSegmentByteCount) before calling UserReportHBAConstraints, and it also demonstrates the SetProperties workaround we implemented to bypass the issue. Best regards, Charles
Topic: App & System Services SubTopic: Drivers Tags:
2w
Display .icon files in SwiftUI
Is there a way to display a .icon file in SwiftUI? I want to show the app icon in the app itself but exporting and including the app icon as a PNG feels redundant. This would consume a lot of unnecessary storage especially when including a lot of alternative app icons. There has to be a better way Otherwise I would file a feedback for that Thank you
1
0
221
2w
How is BGContinuedProcessingTask intended to be used?
Hello, I'm trying to adopt the new BGContinuedProcessingTask API, but I'm having a little trouble imagining how the API authors intended it be used. I saw the WWDC talk, but it lacked higher-level details about how to integrate this API, and I can't find a sample project. I notice that we can list wildcard background task identifiers in our Info.plist files now, and it appears this is to be used with continued tasks - a user might start one video encoding, then while it is ongoing, enqueue another one from the same app, and these tasks would have identifiers such as MyApp.VideoEncoding.ABCD and MyApp.VideoEncoding.EFGH to distinguish them. When it comes to implementing this, is the expectation that we: a) Register a single handler for the wildcard pattern, which then figures out how to fulfil each request from the identifier of the passed-in task instance? Or b) Register a unique handler for each instance of the wildcard pattern? Since you can't unregister handlers, any resources captured by the hand
12
0
473
2w