Search results for

“show when run”

115,079 results found

Post

Replies

Boosts

Views

Activity

Reclaiming cached data from an `enumerateDirectory` call
If I'm in an enumerateDirectory call, I can very quickly fill in the fileID, parentID, and (maybe) the type attributes based on the directory entry I have loaded. That is, I can quickly fill in anything that is contained in the dirent structure in dirent.h, plus the parentID. However, if any other attributes are requested (say, flags), or if the file system doesn't store the filetype in the directory entry, then I need to do additional I/O and load an inode. If I have to load an inode, I might keep a reference to it and assume that I can clean it up later whenever there is a matching call to reclaimItem. But in the enumerateDirectory call, I never provide an FSItem to the system! By observation, I see that normally, a call to enumerateDirectory of this nature is followed up by a lookupItem call for every single fetched item, and then assumedly the system can later reclaim it if need be. At least, I tried various ways of listing directories, and each way I tried showed this behavior. If that's the cas
6
0
222
2d
Reply to Under what conditions can a LocalizedStringResource be serialised?
Yes, LocalizedStringResource conforms to Codable so that it can be serialized when sending it between two processes. The serialized representation effectively contains a path to the bundle and some extra information to ensure you can read from that bundle. The serialized representation isn't suitable for sending between devices (the path to the bundle may be different) or storing on-disk long term (the path may no longer exist or may have been moved) - it's really designed for sending between two running processes on the same system. If you do deserialize a LocalizedStringResource that is no longer valid then it will just fallback to the default value (same behavior as if the key or table didn't exist in the provided bundle without serialization). No need to worry about the specifics of the token you mentioned, LocalizedStringResource handles this gracefully. Please feel free to file a feedback (and share the number here) if you think there's any wording that we could add to the documentation to help
Topic: UI Frameworks SubTopic: General Tags:
2d
Getting a basic URL Filter to work
I haven’t been able to get this to work at any level! I’m running into multiple issues, any light shed on any of these would be nice: I can’t implement a bloom filter that produces the same output as can be found in the SimpleURLFilter sample project, after following the textual description of it that’s available in the documentation. No clue what my implementation is doing wrong, and because of the nature of hashing, there is no way to know. Specifically: The web is full of implementations of FNV-1a and MurmurHash3, and they all produce different hashes for the same input. Can we get the proper hashes for some sample strings, so we know which is the “correct” one? Similarly, different implementations use different encodings for the strings to hash. Which should we use here? The formulas for numberOfBits and numberOfHashes give Doubles and assign them to Ints. It seems we should do this conversing by rounding them, is this correct? Can we get a sample correct value for the combined hash, so we can ve
75
0
6k
3d
CoreBluetooth connection never starts
I'm scanning for peripherals, and keep references to multiple CBUUIDs - one for each peripheral. I then start a connection to the peripheral. I never get a callback to say the connection succeeded, failed, or disconnected. I have a Mini-Moreph Bluetooth sniffer. The sniffer shows that the iPhone never tried to connect to any of the peripherals. The iPhone HCI logs show that a create connection request was sent, but a cancel connection request was sent 0.018 seconds later. No feedback was given to my application through CoreBluetooth. I've filed this through Feedback Assistant, but expect nothing will come of the report.
8
0
502
3d
Platform SSO registration dialogs remain after later success
We’re investigating a Platform SSO registration issue on macOS and wanted to check whether others have seen similar behavior or know whether this is expected system behavior. Scenario: Our extension implements ASAuthorizationProviderExtensionRegistrationHandler for device and user registration. On failure we complete with ASAuthorizationProviderExtensionRegistrationResult.failed, and on success we complete with .success. What we’re seeing: If registration fails multiple times, macOS shows multiple system dialogs saying: Registration failed and will automatically retry in a few minutes. If we do not close those earlier failure dialogs and then start another registration that succeeds, the old failure dialogs remain visible and do not dismiss automatically. They have to be closed manually one by one. From our side, these appear to be system-owned Platform SSO dialogs, not app-owned windows. We only return the registration result via the handler completion. Any guidance on whether macOS is expected to r
3
0
378
3d
Reply to `URLSessionConfiguration.connectionProxyDictionary` Fails to Disable HTTP(s) Proxy on iOS 26.x
Given that this works on iOS 18 and fails on iOS 26, you should definitely file a bug about it. Please post your bug number, just for the record. As to what you can do about it right now, I have one quick suggestion: Toggle the usesClassicLoadingMode property. That is: usesClassicLoadingMode defaults to true. If your code is currently setting it to false, remove that code. If your code is not currently setting usesClassicLoadingMode at all, or setting it to true, try setting it to false. Honestly, I don’t think that’ll help, but it’s easy test to run so I’m gonna recommend that you run it now just in case. Please reply back here with your results. If, as I suspect, this doesn’t change things, we can then talk about other potential paths forward. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
3d
Reply to Error Domain=NSURLErrorDomain Code=-1000 "bad URL"
Hmmm, tricky. Error -1000 is NSURLErrorBadURL (or, equivalently, kCFURLErrorBadURL). There are a variety of ways this can crop up, for example: If the resulting NSURLRequest returns nil for the URL property. If the URL’s host property is nil. Or the system is configured to use a proxy and its host property is nil. It’s not easy to replicate these conditions. Moreover, the full error message you included in your post rules out the first two cases because it shows this: NSErrorFailingURLStringKey=https://update.flashforge.com/api/… In this thread I raise two possible causes of this, Custom URL protocols and proxies. I recommend that you check your code for the former, just in case. However, given that this only shows up on some user’s devices, it seems like a proxy problem is more likely. Are you able to capture a sysdiagnose log from a user who has this issue? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: Core OS Tags:
3d
How to delete iOS simulator runtimes?
There are multiple iOS simulator runtimes located at /System/Library/AssetsV2/com_apple_MobileAsset_iOSSimulatorRuntime which I don't need. I tried the following approaches to delete them but not working. Xcode > Settings > Components > Delete (It can delete some but not all of them) xcrun simctl runtime list (It doesn't show the old runtimes) sudo rm (Operation not permitted) sudo rm -rf cc1f035290d244fca4f74d9d243fcd02d2876c27.asset Password: rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset/AssetData/096-69246-684.dmg: Operation not permitted rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset/AssetData: Operation not permitted rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset/Info.plist: Operation not permitted rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset/version.plist: Operation not permitted rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset: Operation not permitted I have two questions: Why xcrun simctl runtime list is unable to list some old runtimes? How to delete them?
3
0
702
3d
Can CLI apps not use SecItemAdd?
tl;dr: The title and/or can I even add a keychain entitlement to a cli app? I'm trying to store a generated private key and certificate properly in a CLI app. The call to SecItemAdd always results in an error with message A required entitlement isn't present. I assume this is errSecMissingEntitlement, and its docs say it happens when you specify an access group to which your app doesn’t belong. But I'm not even specifying one. Here's a small excerpt (I know it's not a MVCE but the question is pretty general anyway): func storeCert(_ cert: Data) throws { let addQuery = [ kSecClass: kSecClassCertificate, kSecValueRef: cert, kSecAttrLabel: CERT_USER_LABEL, kSecAttrApplicationLabel: CERT_APP_LABEL ] as [String: Any] let status = SecItemAdd(addQuery as CFDictionary, nil) guard status == errSecSuccess else { let msg = SecCopyErrorMessageString(status, nil) as String? ?? throw MyErr.generic(message: Unable to store cert: (msg)) } } I can't add the keychain entitlement to my CLI target, it doesn't show as a
1
0
250
3d
Reply to Can CLI apps not use SecItemAdd?
Let’s start with some terminology. On Apple platforms we typically use the terms app and application to refer to things with a GUI that the user launches from the Finder (on macOS), Home screen (on iOS), and so on. If you’re building a program that you expect the user to run in Terminal, that’s a command-line tool. Using the keychain from a command-line tool is a bit tricky because: We generally recommend that folks using the data protection keychain rather than the file-base keychain. Access to the data protection keychain is mediated by restricted entitlements, that is, entitlements that must be authorised by a provisioning profile. It’s hard to sign a command-line tool with such entitlements because there’s no obvious place to put said provisioning profile. Now, all of that is gonna sound like word salad if you’re new to the Mac, so lemme drop in some links: TN3127 Inside Code Signing: Requirements explains the different keychain implementations on macOS. TN3125 Inside Code Signing: Provisioning P
Topic: Privacy & Security SubTopic: General Tags:
3d
Clarification on Priority/Order of a system with multiple network extensions
We have a Man In The Middle proxy that supports all kind of protocols (http, tls, dns, mail protocols, grpc, etc...)... On apple devices we are running it using the Network Extension framework as a NETransparentProxy. First of all, thank you for the framework, took a while to learn the ins and outs but it works nicely and runs smooth... However now that we start to roll it out to customers we see issues here and there.. For most it works fine, but for some that use other proxy/vpn solutions they run into all kind of connectivity issues... E.g. some customers run products from companies like zscaler, fortinet, tailscale etc... First we weren't sure if you could even run multiple TransparentProxy's that have the same network capture rules (e.g. the entire TCP range), but turns out that is fine as we tested it with a demo proxy of ours as well as the product version, both deployed as system extensions NETransparentProxy, and it is all fine.. However also here the orde
2
0
108
3d
Reply to Contacts permission not requested on production build (iPhone 16/17 Pro Max)
Can you clarify what you mean by “production bundle identifier”? Most apps use a single bundle ID for both development and distribution. Are you doing something special to vary bundle ID in those two cases? ps The majority of weird ‘only shows up in production’ problems I see are caused by Debug vs Release build changes, rather than code signing changes. I talk about this more in Isolating Code Signing Problems from Build Problems. However, the process there assumes you’re using the same bundle ID in both cases, and if you’re not then… well… things get more complex. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Privacy & Security SubTopic: General Tags:
3d
TimePicker numeric pad popover renders as a narrow bar on iPadOS 26.4.1
When tapping the currently selected time in a TimePicker (wheel style) component to invoke the inline numeric pad popover, the popover renders incorrectly on iPadOS 26.4.1 — it appears as a very narrow single-line/bar rather than the full numeric keypad layout. Steps to Reproduce: Run Reminder, create a new reminder and add a custom time Tap the currently selected time value to trigger the numeric pad popover Observe the popover layout Expected Result: A properly sized popover appears containing a full numeric keypad, allowing direct numeric input of the time value — consistent with behavior on iPadOS 18.x Actual Result: The popover appears as an extremely narrow horizontal bar (single line height), making the numeric pad unusable Regression: Works correctly on iPadOS 18.x through iPadOS 26.3. Broken on iPadOS 26.4.1 (Xcode 26.x simulator and/or physical device). https://www.youtube.com/shorts/bd3pYA3B-iI https://www.youtube.com/shorts/wSHzepHBwEY Feedback: FB22517457
Topic: UI Frameworks SubTopic: UIKit
2
0
301
4d
Reclaiming cached data from an `enumerateDirectory` call
If I'm in an enumerateDirectory call, I can very quickly fill in the fileID, parentID, and (maybe) the type attributes based on the directory entry I have loaded. That is, I can quickly fill in anything that is contained in the dirent structure in dirent.h, plus the parentID. However, if any other attributes are requested (say, flags), or if the file system doesn't store the filetype in the directory entry, then I need to do additional I/O and load an inode. If I have to load an inode, I might keep a reference to it and assume that I can clean it up later whenever there is a matching call to reclaimItem. But in the enumerateDirectory call, I never provide an FSItem to the system! By observation, I see that normally, a call to enumerateDirectory of this nature is followed up by a lookupItem call for every single fetched item, and then assumedly the system can later reclaim it if need be. At least, I tried various ways of listing directories, and each way I tried showed this behavior. If that's the cas
Replies
6
Boosts
0
Views
222
Activity
2d
Reply to Under what conditions can a LocalizedStringResource be serialised?
Yes, LocalizedStringResource conforms to Codable so that it can be serialized when sending it between two processes. The serialized representation effectively contains a path to the bundle and some extra information to ensure you can read from that bundle. The serialized representation isn't suitable for sending between devices (the path to the bundle may be different) or storing on-disk long term (the path may no longer exist or may have been moved) - it's really designed for sending between two running processes on the same system. If you do deserialize a LocalizedStringResource that is no longer valid then it will just fallback to the default value (same behavior as if the key or table didn't exist in the provided bundle without serialization). No need to worry about the specifics of the token you mentioned, LocalizedStringResource handles this gracefully. Please feel free to file a feedback (and share the number here) if you think there's any wording that we could add to the documentation to help
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
2d
Xcode 26.2 build crash when building project
Xcore 26.2 run on newly installed macOS 15.7.3 (24G419) crashes when attempting to build assets backtrace
Replies
1
Boosts
0
Views
248
Activity
2d
Getting a basic URL Filter to work
I haven’t been able to get this to work at any level! I’m running into multiple issues, any light shed on any of these would be nice: I can’t implement a bloom filter that produces the same output as can be found in the SimpleURLFilter sample project, after following the textual description of it that’s available in the documentation. No clue what my implementation is doing wrong, and because of the nature of hashing, there is no way to know. Specifically: The web is full of implementations of FNV-1a and MurmurHash3, and they all produce different hashes for the same input. Can we get the proper hashes for some sample strings, so we know which is the “correct” one? Similarly, different implementations use different encodings for the strings to hash. Which should we use here? The formulas for numberOfBits and numberOfHashes give Doubles and assign them to Ints. It seems we should do this conversing by rounding them, is this correct? Can we get a sample correct value for the combined hash, so we can ve
Replies
75
Boosts
0
Views
6k
Activity
3d
CoreBluetooth connection never starts
I'm scanning for peripherals, and keep references to multiple CBUUIDs - one for each peripheral. I then start a connection to the peripheral. I never get a callback to say the connection succeeded, failed, or disconnected. I have a Mini-Moreph Bluetooth sniffer. The sniffer shows that the iPhone never tried to connect to any of the peripherals. The iPhone HCI logs show that a create connection request was sent, but a cancel connection request was sent 0.018 seconds later. No feedback was given to my application through CoreBluetooth. I've filed this through Feedback Assistant, but expect nothing will come of the report.
Replies
8
Boosts
0
Views
502
Activity
3d
Platform SSO registration dialogs remain after later success
We’re investigating a Platform SSO registration issue on macOS and wanted to check whether others have seen similar behavior or know whether this is expected system behavior. Scenario: Our extension implements ASAuthorizationProviderExtensionRegistrationHandler for device and user registration. On failure we complete with ASAuthorizationProviderExtensionRegistrationResult.failed, and on success we complete with .success. What we’re seeing: If registration fails multiple times, macOS shows multiple system dialogs saying: Registration failed and will automatically retry in a few minutes. If we do not close those earlier failure dialogs and then start another registration that succeeds, the old failure dialogs remain visible and do not dismiss automatically. They have to be closed manually one by one. From our side, these appear to be system-owned Platform SSO dialogs, not app-owned windows. We only return the registration result via the handler completion. Any guidance on whether macOS is expected to r
Replies
3
Boosts
0
Views
378
Activity
3d
Reply to `URLSessionConfiguration.connectionProxyDictionary` Fails to Disable HTTP(s) Proxy on iOS 26.x
Given that this works on iOS 18 and fails on iOS 26, you should definitely file a bug about it. Please post your bug number, just for the record. As to what you can do about it right now, I have one quick suggestion: Toggle the usesClassicLoadingMode property. That is: usesClassicLoadingMode defaults to true. If your code is currently setting it to false, remove that code. If your code is not currently setting usesClassicLoadingMode at all, or setting it to true, try setting it to false. Honestly, I don’t think that’ll help, but it’s easy test to run so I’m gonna recommend that you run it now just in case. Please reply back here with your results. If, as I suspect, this doesn’t change things, we can then talk about other potential paths forward. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
3d
Reply to Error Domain=NSURLErrorDomain Code=-1000 "bad URL"
Hmmm, tricky. Error -1000 is NSURLErrorBadURL (or, equivalently, kCFURLErrorBadURL). There are a variety of ways this can crop up, for example: If the resulting NSURLRequest returns nil for the URL property. If the URL’s host property is nil. Or the system is configured to use a proxy and its host property is nil. It’s not easy to replicate these conditions. Moreover, the full error message you included in your post rules out the first two cases because it shows this: NSErrorFailingURLStringKey=https://update.flashforge.com/api/… In this thread I raise two possible causes of this, Custom URL protocols and proxies. I recommend that you check your code for the former, just in case. However, given that this only shows up on some user’s devices, it seems like a proxy problem is more likely. Are you able to capture a sysdiagnose log from a user who has this issue? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
3d
How to delete iOS simulator runtimes?
There are multiple iOS simulator runtimes located at /System/Library/AssetsV2/com_apple_MobileAsset_iOSSimulatorRuntime which I don't need. I tried the following approaches to delete them but not working. Xcode > Settings > Components > Delete (It can delete some but not all of them) xcrun simctl runtime list (It doesn't show the old runtimes) sudo rm (Operation not permitted) sudo rm -rf cc1f035290d244fca4f74d9d243fcd02d2876c27.asset Password: rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset/AssetData/096-69246-684.dmg: Operation not permitted rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset/AssetData: Operation not permitted rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset/Info.plist: Operation not permitted rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset/version.plist: Operation not permitted rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset: Operation not permitted I have two questions: Why xcrun simctl runtime list is unable to list some old runtimes? How to delete them?
Replies
3
Boosts
0
Views
702
Activity
3d
Can CLI apps not use SecItemAdd?
tl;dr: The title and/or can I even add a keychain entitlement to a cli app? I'm trying to store a generated private key and certificate properly in a CLI app. The call to SecItemAdd always results in an error with message A required entitlement isn't present. I assume this is errSecMissingEntitlement, and its docs say it happens when you specify an access group to which your app doesn’t belong. But I'm not even specifying one. Here's a small excerpt (I know it's not a MVCE but the question is pretty general anyway): func storeCert(_ cert: Data) throws { let addQuery = [ kSecClass: kSecClassCertificate, kSecValueRef: cert, kSecAttrLabel: CERT_USER_LABEL, kSecAttrApplicationLabel: CERT_APP_LABEL ] as [String: Any] let status = SecItemAdd(addQuery as CFDictionary, nil) guard status == errSecSuccess else { let msg = SecCopyErrorMessageString(status, nil) as String? ?? throw MyErr.generic(message: Unable to store cert: (msg)) } } I can't add the keychain entitlement to my CLI target, it doesn't show as a
Replies
1
Boosts
0
Views
250
Activity
3d
Reply to Can CLI apps not use SecItemAdd?
Let’s start with some terminology. On Apple platforms we typically use the terms app and application to refer to things with a GUI that the user launches from the Finder (on macOS), Home screen (on iOS), and so on. If you’re building a program that you expect the user to run in Terminal, that’s a command-line tool. Using the keychain from a command-line tool is a bit tricky because: We generally recommend that folks using the data protection keychain rather than the file-base keychain. Access to the data protection keychain is mediated by restricted entitlements, that is, entitlements that must be authorised by a provisioning profile. It’s hard to sign a command-line tool with such entitlements because there’s no obvious place to put said provisioning profile. Now, all of that is gonna sound like word salad if you’re new to the Mac, so lemme drop in some links: TN3127 Inside Code Signing: Requirements explains the different keychain implementations on macOS. TN3125 Inside Code Signing: Provisioning P
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
3d
Clarification on Priority/Order of a system with multiple network extensions
We have a Man In The Middle proxy that supports all kind of protocols (http, tls, dns, mail protocols, grpc, etc...)... On apple devices we are running it using the Network Extension framework as a NETransparentProxy. First of all, thank you for the framework, took a while to learn the ins and outs but it works nicely and runs smooth... However now that we start to roll it out to customers we see issues here and there.. For most it works fine, but for some that use other proxy/vpn solutions they run into all kind of connectivity issues... E.g. some customers run products from companies like zscaler, fortinet, tailscale etc... First we weren't sure if you could even run multiple TransparentProxy's that have the same network capture rules (e.g. the entire TCP range), but turns out that is fine as we tested it with a demo proxy of ours as well as the product version, both deployed as system extensions NETransparentProxy, and it is all fine.. However also here the orde
Replies
2
Boosts
0
Views
108
Activity
3d
Reply to Contacts permission not requested on production build (iPhone 16/17 Pro Max)
Can you clarify what you mean by “production bundle identifier”? Most apps use a single bundle ID for both development and distribution. Are you doing something special to vary bundle ID in those two cases? ps The majority of weird ‘only shows up in production’ problems I see are caused by Debug vs Release build changes, rather than code signing changes. I talk about this more in Isolating Code Signing Problems from Build Problems. However, the process there assumes you’re using the same bundle ID in both cases, and if you’re not then… well… things get more complex. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
3d
TimePicker numeric pad popover renders as a narrow bar on iPadOS 26.4.1
When tapping the currently selected time in a TimePicker (wheel style) component to invoke the inline numeric pad popover, the popover renders incorrectly on iPadOS 26.4.1 — it appears as a very narrow single-line/bar rather than the full numeric keypad layout. Steps to Reproduce: Run Reminder, create a new reminder and add a custom time Tap the currently selected time value to trigger the numeric pad popover Observe the popover layout Expected Result: A properly sized popover appears containing a full numeric keypad, allowing direct numeric input of the time value — consistent with behavior on iPadOS 18.x Actual Result: The popover appears as an extremely narrow horizontal bar (single line height), making the numeric pad unusable Regression: Works correctly on iPadOS 18.x through iPadOS 26.3. Broken on iPadOS 26.4.1 (Xcode 26.x simulator and/or physical device). https://www.youtube.com/shorts/bd3pYA3B-iI https://www.youtube.com/shorts/wSHzepHBwEY Feedback: FB22517457
Topic: UI Frameworks SubTopic: UIKit
Replies
2
Boosts
0
Views
301
Activity
4d
Stuck on "Sending analysis to App Store Connect
Hey, im running a MacBook Pro m2 26.4.1 and Xcode 26.4. I'm trying to upload to App Store Connect and it's getting stuck on Sending analysis to App Store Connect.... now what's interesting my Mac mini m4. same iOS works fine? Any ideas
Replies
2
Boosts
0
Views
162
Activity
4d