Search results for

file uri scheme

79,857 results found

Post

Replies

Boosts

Views

Activity

Reply to checkResourceIsReachableAndReturnError or fileExistsAtPath for security scoped resources
Thanks, I'll check explicitly for the combination of NSCocoaErrorDomain and NSFileReadNoSuchFileError then. For anyone ending up in this thread, note that NSFileNoSuchFileError is not the same error as what's being reported by checkResourceIsReachableAndReturnError. The error is: Domain=NSCocoaErrorDomain Code=260 The file “write-single-file.txt” couldn’t be opened because there is no such file. UserInfo={NSURL=file:///Users/torarne/write-single-file.txt, NSFilePath=/Users/torarne/write-single-file.txt, NSUnderlyingError=0xa83590c90 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}}
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’25
CryptoTokenKit: TKSmartCardSlotManager.default is nil on macOS (Designed for iPad) but works on iPadOS and macOS
I have an iOS/iPadOS app and 'm trying to communicate with usb smart card reader using CryptoTokenKit on all platforms (ios/ipados/macos). Minimal Repro Code import CryptoTokenKit import SwiftUI struct ContentView: View { @State var status = var body: some View { VStack { Text(Status: (status)) } .padding() .onAppear { let manager = TKSmartCardSlotManager.default if manager != nil { status = Initialized } else { status = Unsupported } } } } And my entitlement file has only one key: com.apple.security.smartcard = YES Behavior • iPadOS (on device): status = Initialized ✅ • macOS (native macOS app, with the required CryptoTokenKit entitlement): status = Initialized ✅ • macOS (Designed for iPad, regardless of CryptoTokenKit entitlement): status = Unsupported → TKSmartCardSlotManager.default is nil ❌ Expectation Given that the same iPadOS build initializes TKSmartCardSlotManager, I expected the iPad app running in Designed for iPad mode on Apple silicon Mac to behave the same (or to have a documented lim
2
0
124
Nov ’25
`xcresulttool merge` broken on Xcode 26.1+
Opened a FB already (FB20928652) but wanted to check here if anybody has seen similar or has better workarounds. xcresulttool merge appears to crash immediately after launch in Xcode 26.1 (and in 26.2b1). It does so regardless of any inputs passed in; the crash appears to be during argument parsing before any other logic is run, so it's not contingent on inputs. Working example from 26.0.1 (passing in arbitrary strings for a minimum-reproducible-case, so we expect to see an error message) : % /Applications/Xcode-26.0.1.app/Contents/Developer/usr/bin/xcresulttool merge --output-path a b c Error: File or directory doesn't exist at path: b. Usage: xcresulttool See 'xcresulttool --help' for more information. The same example crashes in 26.1: /Applications/Xcode-26.1.0.app/Contents/Developer/usr/bin/xcresulttool merge --output-path a b c zsh: trace trap /Applications/Xcode-26.1.0.app/Contents/Developer/usr/bin/xcresulttool merge Again, this does crash in real use cases as well, the arbitrary strings are
4
0
471
Nov ’25
Reply to iOS folder bookmarks
[quote='856443022, DTS Engineer, /thread/797469?answerId=856443022#856443022'] No, I'm talking about withoutImplicitStartAccessing. We explicitly say it does not apply to security-scoped bookmarks: [/quote] This option causes an implicit call to startAccessingSecurityScopedResource() on the returned URL when it’s ready to use the resource. The way this is written makes it sound like there will be a call to startAccessingSecurityScopedResource somewhere, so that a subsequent pair of explicit startAccessingSecurityScopedResource and stopAccessingSecurityScopedResource will still leave access at 1, leaking kernel resources. It his not the case? Is this consistent across macOS and iOS? This option isn’t applicable to security-scoped bookmarks. The documentation phrasing isn't clear about whether it's talking about NSURLBookmarkResolutionWithSecurityScope specifically (which is only available on macOS), or if it also applies to iOS (where all bookmarks are security scoped AFAIU from your earlier messages). Can you
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’25
Reply to Error when materializing files
We found the cause - this happens when extension returns content of different size (even larger) than the range for fetchPartialContents. In our case it happened quite rarely and the content was always larger - which is quite surprising looking at the docs in NSFileProviderPartialContentFetching.h: On-disk layout: (...) The file contents outside of the fetched range are ignored by the system. (...) For instance, if the fetchedRange is {offset:0x100000, length:0x1000} (...) The ranges {0, 0x100000}, and {0x101000, EOF} can be anything including sparse ranges. So actually in this example, if I understand correctly what fetched range refers to, if EOF > 0x101000 (i.e. fetched data extends beyond the range), the issue reproduces. FWIW leaving some more details in case it's useful for someone reading this: Analyzing sysdiagnose logs was quite helpful - in logs from log show --archive system_logs.logarchive we noticed this extent length is not as expected (524488 != 524288) and based on that quickly fou
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’25
Error when materializing files
Hello, we have a file provider based macOS app. Around June we started receiving reports that our users have problems when opening files. Sometimes they get Invalid argument alerts after double-clicking on a dataless file. We receive similar errors when trying to materialize the files programmatically from our app (not FP extension)(*): The operation could not be completed. Invalid argument code: 22 domain: NSPOSIXErrorDomain underlyingError: cannotMaterialize code: 33 domain: libfssync.VFSFileError We also see those errors with matching timestamps in the output from fileproviderctl dump: > (...) update-item: 🔶 last:(...) (-1min27s) (...) error:'NSError: POSIX 22 The operation couldn’t be completed. Invalid argument Underlying={NSError: libfssync.VFSFileError 33 cannotMaterialize }}' domain:none category: (...) At the same time our file provider extension receives fetchPartialContents call or no call at all. If it receives the call it finishes with success and
2
0
160
Nov ’25
Reply to How to perform bluetooth advertising from a MAC before login to the MAC
[quote='866814022, TataChaitanya, /thread/805809?answerId=866814022#866814022, /profile/TataChaitanya'] I am trying this as part of authorisation plug-in only. [/quote] Quoting myself here: [quote='865561022, DTS Engineer, /thread/805809?answerId=865561022#865561022'] There’s no supported way to do this. [/quote] and: [quote='865561022, DTS Engineer, /thread/805809?answerId=865561022#865561022'] My advice is that you file an enhancement request [/quote] I can answer your specific questions, but those answers won’t change this conclusion. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’25
Reply to Some items appear in keychain but not passwords
[quote='807782021, RickHedin, /thread/807782, /profile/RickHedin'] I don't understand why. [/quote] Yeah, that’s confusing. macOS has two keychain implementations, the file-based keychain and the data protection keychain. See TN3137 On Mac keychain APIs and implementations for more about this. The security tool puts the password into the file-based keychain. In Keychain Access that shows up in login. The Passwords app is centred around the data protection keychain, and hence doesn’t see it. There is no command-line tool access to the data protection keychain. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Nov ’25
Reply to Issue: Plain Executables Do Not Appear Under “Screen & System Audio Recording” on macOS 26.1 (Tahoe)
[quote='807898021, SadCat, /thread/807898, /profile/SadCat'] plain (non-bundled) executables that request screen recording access no longer appear [/quote] Indeed. I’ve seen reports of this for Full Disk Access — see this thread — but didn’t realise that it was affecting other TCC settings as well. IMO this is a bug and I encourage you to file it as such. When you’re done, post your bug number so that I can associate it with the bugs that originated from the Full Disk Access side of things. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Privacy & Security SubTopic: General Tags:
Nov ’25
Reply to Structured Concurrency with Network Framework Sample
[quote='807854021, nikhil2701, /thread/807854, /profile/nikhil2701'] this doesnt use the new structured concurrency. [/quote] Right. It was written before the new API was release and I haven’t updated it yet because most folks who want to do this need to support iOS 18, where the new API isn’t available. Oh, and I haven’t had time |-: [quote='807854021, nikhil2701, /thread/807854, /profile/nikhil2701'] I am particularly interested … TLS with PSK encryption support [/quote] AFAIK that’s not currently supported (r. 159170556)-:. I’d appreciate you filing an enhancement request for that. While we have a bug about it already, it’s an internal bug, and bugs from third-party developers can help in situations like this. Please post your bug number, just for the record. [quote='807854021, nikhil2701, /thread/807854, /profile/nikhil2701'] switching between Wifi and peer to peer interface [/quote] I’m not sure I understand that. Please elaborate. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Supp
Nov ’25
Reply to iOS fails to fetch AASA file for IDNs
Good afternoon. Example links: https://app-site-association.cdn-apple.com/a/v1/xn--montral-fya.ca https://xn--montral-fya.ca/.well-known/apple-app-site-association Reference number: FB21076762 Additionally, during testing we observed the following: When adding any domain containing xn-- anywhere in the string to the Associated Domains entitlements, the system does not attempt to fetch the AASA file.
Topic: App & System Services SubTopic: General Tags:
Nov ’25
Questions about migrating accounts between ServiceIDs
Our organization operates a web platform that hosts numerous newspaper properties. We recently acquired a new newspaper and are in the process of integrating it into our platform. As part of this transition, we’ve successfully transferred the App and App ID for the acquired newspaper into our Apple Developer portal. However, no Service ID associated with Sign in with Apple was included in the transfer. Our current implementation uses a single, unified Service ID for all existing newspaper properties. This Service ID facilitates OAuth via a centralized Identity Server. The organization we acquired provided a CSV file containing a list of transport_ids, and based on our understanding, we’re expected to use the Apple endpoint: https://appleid.apple.com/auth/usermigrationinfo to initiate a registration process by submitting our Service ID (client_id) along with each transport ID. This step is required before users can sign in, and it should return the existing relay email address. We have a few key conce
1
0
196
Nov ’25
The identity used to sign the executable is no longer valid
Hi there, When I deploy my app to the iPhone for testing, I get the following error: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.4gpZFc/extracted/c_mll.app : 0xe8008018 (The identity used to sign the Please ensure that the certificates used to sign your app have not expired. If this issue persists, please attach an IPA of your app when sending a report to Apple. executable is no longer valid.) My account was mistakenly deactivated by Apple last month. After appealing, Apple restored it at the end of last month. Currently, my Apple Developer account seems to be working fine. Today, I recreated the developer certificate and identifier, added the account in XCode, everything seemed fine, and I clicked the XCode button (Start the active scheme). The build was successful, but I got the error: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.4gpZFc/extracted/c_mll.app : 0xe8008018 (The identity
5
0
232
Nov ’25