Search results for

“file uri scheme”

81,744 results found

Post

Replies

Boosts

Views

Activity

Reply to how to inhibit -fprofile-instr-generate passed to linker
It is caused by code coverage being injected by test plan that is autogenerated in scheme. Disabling code coverage for driver target and deleting test scheme will fix the problem. However, you might want to have testing with your project. But it looks like any test plan inside same project will inject profile-instr-generate. Not sure how to have testing for main app, and no code coverage flag injected for driver. Seems like bug in Xcode.
2w
Static library links on device but fails on iOS Simulator
I’m working on an iOS workspace with: a static library project: M800SDK a test app project: TestAppObj I was able to build M800SDK for iOS Simulator on Apple Silicon as a simulator static library, and I also verified the architectures in the produced .a file. However, when I link the app target against that simulator build and try to build TestAppObj for iOS Simulator, I get the following linker errors: Undefined symbols for architecture arm64: _OBJC_CLASS_$_TokenMngr clang++: error: linker command failed with exit code 1 Additional context: The library links and works correctly when building the app for a physical iPhone. And the public header TokenMngr.h is found correctly by the app target. The app target is compiled as Objective-C++ where needed. The library is linked in the app target under “Link Binary With Libraries”. Could you help me understand: Is it possible to run on iOS Simulator ? the recommended way to package and consume this library for iOS Simulator on Apple Silicon? Also I am aware
3
0
97
2w
Reply to How to monitor heart rate in background without affecting Activity Rings?
Hi @Ziqiao Chen and everyone, Thank you @simonfromhelix for reviving this thread. @Ziqiao Chen — I tested the frontmost app state approach as you suggested. Sharing the full results here in case they're useful. == Test Setup == Disabled HKWorkoutSession entirely (no workout session started) Used only HKAnchoredObjectQuery for heart rate sampling Set Return to Clock → PowerNap (per-app Custom) → After 1 Hour Ran the app, then lowered my wrist to simulate a real nap scenario == Results == With Xcode debugger attached: HR sampling worked great (~5 second intervals), continuous and stable This initially gave me hope! Without Xcode debugger (real-world scenario): The app was terminated by the system within ~10 minutes, even with Return to Clock set to 1 hour for this specific app After lowering my wrist, the screen turned off and the app was suspended/killed shortly after Zero heart rate samples were collected The Xcode debugger appears to elevate the app's priority, masking the real behavior Digital Crown: Pressi
2w
The SecKeyCreateSignature method always prompts for the current user's login password.
I downloaded a P12 file (containing a private key) from the company server, and retrieved the private key from this P12 file using a password : private func loadPrivateKeyFromPKCS12(path: String, password: String) throws -> SecKey? { let p12Data: Data do { p12Data = try Data(contentsOf: fileURL) } catch let readError { ... } let options: [CFString: Any] = [ kSecImportExportPassphrase: password as CFString ] var items: CFArray? let status = SecPKCS12Import(p12Data as CFData, options as CFDictionary, &items) guard status == errSecSuccess else { throw exception } var privateKey: SecKey? let idd = identity as! SecIdentity let _ = SecIdentityCopyPrivateKey(idd, &privateKey) return privateKey } However, when I use this private key to call SecKeyCreateSignature for data signing, a dialog box always pops up to ask user to input the Mac admin password. What confuses me is that this private key is clearly stored in the local P12 file, and there should be no access to the keychain i
1
0
80
2w
Reply to iOS 26.2 RC DeviceActivityMonitor.eventDidReachThreshold regression?
Thanks a lot for confirming that this is currently investigated! Can you say when this will be addressed? I have reported this horrible regression in iOS 26 beta 1 in June 2025. It’s kinda sad that this didn’t seem to have any priority for Apple to get addressed before the public version was released. In 3 months this bug report will be one year old. [quote='874099022, DTS Engineer, /thread/809410?answerId=874099022#874099022'] This is a known issue that is currently being investigated. If you have already filed a bug report for this issue, thank you. [/quote]
Topic: App & System Services SubTopic: General Tags:
2w
Instruments Malfunction
I’m reporting a severe reproducible issue in Instruments, specifically when using the SwiftUI instrument and opening Show Cause & Effect Graph. What happens: • Instruments becomes extremely laggy/unresponsive • The graph/detail area can turn solid magenta/pink • Memory usage rapidly increases (I observed around 18 GB, 25 GB, and up to 34 GB) • My Mac has crashed/restarted during this, or in other terms, had a kernel panic, where my Mac froze, and everything unresponsive. The Trackpad wouldn't even click. Important detail: • I could not find a generated kernel panic log after the crash/restart. Repro context: • SwiftUI iOS app profiled from Xcode • Trigger is specifically entering Show Cause & Effect Graph • Recordings can be short and still trigger it • Issue is much less severe or absent if I avoid that view What I already tried: • Rebooting • Short captures / fewer instruments • Clearing Xcode/Instruments caches/preferences • Retesting after cleanup • Reinstalling Xcode Is this a known Instruments r
2
0
126
2w
macOS Tahoe 26.4 Beta 4: Rosetta deprecation warning not shown — bug or intended behavior?
According to the release notes for macOS Tahoe 26.4 beta, a warning dialog should appear when launching apps that require Rosetta 2, informing users that these apps will stop working in a future macOS release. However, on my MacBook Air M1 running Tahoe 26.4 Beta 4 (25E5233c), no such warning appears when launching Intel (x86_64) apps. Test case: VLC media player Downloaded from the official VLC website: https://www.videolan.org/vlc/ Selected the Intel 64-bit version (vlc-3.0.21-intel64.dmg) Copied VLC.app to /Applications Code signature verified: Identifier: org.videolan.vlc Format: Mach-O thin (x86_64) Team ID: 75GAHG3SZQ Timestamp: June 2024 Flags: hardened runtime Notarization: accepted (Notarized Developer ID) spctl --assess --verbose /Applications/VLC.app → accepted, source=Notarized Developer ID Launched VLC.app — no Rosetta deprecation warning appeared System log findings: The following entry was repeated many times in the system log: Sandbox: oahd-helper deny(1) file-read-data /usr/libexec/r
7
0
336
2w
Reply to Waiting for review?
Hello, thanks you for your response, and noted. Yes, I did explain. My frustration is that the App is designed specifically for iPhone devices, and I thought I had selected the correct settings in Xcode, by removing all options other than iPhone. However, the reviewer tested the app on iPad, in compatibility mode, and as such, there was a display issue. I have now made the relevant telemetry adjustment to the info.plist file, in the hope that it can't be confused and used on an iPad in compatibility mode. My frustration has been that the expectations from what I have read suggest 24-48 hour review time, and my app is so simple, (1 page, 4 actions), no connectivity or database etc required. Thank you for your response though, it's all a bit new to me. Fingers crossed!
2w
Orphaning a CKAsset
I'm running into a problem in my attempt to clear CKAssets on the iCloud server. The documentation for CKAsset says: If you no longer require an asset that’s on the server, you don’t delete it. Instead, orphan the asset by setting any fields that contain the asset to nil and then saving the record. CloudKit periodically deletes orphaned assets from the server. I'm deleting image file assets which are properties on an ImageReference type (largeImage and thumbNailImage properties). When I delete an image, I am setting those properties to nil and sending the record for the ImageReference to iCloud using the async CKDatabase.modifyRecords method. This always results in an error: And of course the assets still appear in the CloudKit dashboard. What is the proper way of orphaning the assets on the CloudKit server?
4
0
294
2w
Can I move Xcode files to an external SSD safely?
Hi everyone, I’m running out of space on my Mac and I need to use an external SSD to free up room, especially because Xcode is taking a lot of storage. I want to know if it’s safe to move some Xcode files—projects, derived data, or system-related files—to an external SSD. Which files can I move safely, and which should stay on the internal drive? I want to avoid breaking anything or causing issues with Xcode or macOS. Also, is it the same situation if I use an external HDD instead of an SSD? Are there additional risks or performance issues to consider?
3
0
112
2w
Reply to Unacceptable Delay and No Response After One Month
I advise that you find a way to move on with your life. Don't let them play their game. Or you will get sick mentally and enter a long period of depression. No matter how harsh your words are, they are not going to listen, and they will ignore you. I left the entire Apple ecosystem after almost going crazy 16 years ago. Back then, an average wait time was 17 to 19 days. And I had about two dozen software updates and new software submissions waiting. It was frustrating when I had a software title, whose name contained the word 'Rip' and they rejected it by saying 'Illegal file sharing.'
2w
Reply to AVAudioSession : Audio issues when recording the screen in an app that changes IOBufferDuration on iOS 26.
Dear CRI_Omachi, While I am not aware of any changes made to IOBufferDuration in iOS 26, this seems like an issue that merits further investigation. Can you please open a bug report via Feedback Assistant? With it, please attach any documentation of this issue, such as logs, footage, or a focused sample project demonstrating this phenomenon. Once you open the bug report, please post the FB number here for my reference. If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why? Let me know if you'd like to know more, Richard Yeh  Developer Technical Support
2w
Reply to Clarification on clonefile / copyfile support of clone directories?
So, let me start here: Should I avoid 'cloning' directories in general with the copyfile function? No, quite the opposite. If you read the copyfile man page closely, you'll find that it's very careful to NEVER say that it clones directories. It either refers to cloning individual files or recursive cloning. Recursive cloning means using COPYFILE_CLONE on directories and is actually the standard behavior across all of our copy APIs (and the Finder). More specifically, COPYFILE_CLONE means that copy file calls clonefile for every possible individual file object and creates new objects for directories or anywhere it can't use clonefile. Note that this process is more sophisticated than it might seem, as it doesn't just use cloning within the same file system, but actually preserves clones across volumes (which is much trickier). copyfile() can also do standard copy all data copies on APFS but, to be honest, I've never come up with any good reason why you would do so, as it's b
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to How does Numbers.app detect that a document was moved to Recently Deleted, and can third-party apps implement the same behavior?
How does Numbers.app detect that a document has been moved to Recently Deleted? Can third-party apps implement the same behavior? In my reply on the other thread, I said this: I haven't looked at it in detail, but I suspect it's using a combination of security-scoped bookmark (for basic file tracking on the device) and the iCloud Document API. In particular, the key NSMetadataQueryUpdateRemovedItemsKey should be included in the NSMetadataQueryDidUpdateNotification you receive for deleted files. Have you tested this? As I'm fairly sure that's what Numbers is doing. One follow-up comment on this point from your other thread: Result: The file disappears from Files App Recently Deleted. In contrast, using [NSFileManager replaceItemAtURL:withItemAtURL:] keeps the file visible in Recently Deleted. Is this difference designed behavior? In the context of iCloud, delete/move and replaceItemAtURL are fundamentally different operations. In the first case, you deleted an exist
Topic: App & System Services SubTopic: General Tags:
2w
Reply to how to inhibit -fprofile-instr-generate passed to linker
It is caused by code coverage being injected by test plan that is autogenerated in scheme. Disabling code coverage for driver target and deleting test scheme will fix the problem. However, you might want to have testing with your project. But it looks like any test plan inside same project will inject profile-instr-generate. Not sure how to have testing for main app, and no code coverage flag injected for driver. Seems like bug in Xcode.
Replies
Boosts
Views
Activity
2w
Static library links on device but fails on iOS Simulator
I’m working on an iOS workspace with: a static library project: M800SDK a test app project: TestAppObj I was able to build M800SDK for iOS Simulator on Apple Silicon as a simulator static library, and I also verified the architectures in the produced .a file. However, when I link the app target against that simulator build and try to build TestAppObj for iOS Simulator, I get the following linker errors: Undefined symbols for architecture arm64: _OBJC_CLASS_$_TokenMngr clang++: error: linker command failed with exit code 1 Additional context: The library links and works correctly when building the app for a physical iPhone. And the public header TokenMngr.h is found correctly by the app target. The app target is compiled as Objective-C++ where needed. The library is linked in the app target under “Link Binary With Libraries”. Could you help me understand: Is it possible to run on iOS Simulator ? the recommended way to package and consume this library for iOS Simulator on Apple Silicon? Also I am aware
Replies
3
Boosts
0
Views
97
Activity
2w
Reply to How to monitor heart rate in background without affecting Activity Rings?
Hi @Ziqiao Chen and everyone, Thank you @simonfromhelix for reviving this thread. @Ziqiao Chen — I tested the frontmost app state approach as you suggested. Sharing the full results here in case they're useful. == Test Setup == Disabled HKWorkoutSession entirely (no workout session started) Used only HKAnchoredObjectQuery for heart rate sampling Set Return to Clock → PowerNap (per-app Custom) → After 1 Hour Ran the app, then lowered my wrist to simulate a real nap scenario == Results == With Xcode debugger attached: HR sampling worked great (~5 second intervals), continuous and stable This initially gave me hope! Without Xcode debugger (real-world scenario): The app was terminated by the system within ~10 minutes, even with Return to Clock set to 1 hour for this specific app After lowering my wrist, the screen turned off and the app was suspended/killed shortly after Zero heart rate samples were collected The Xcode debugger appears to elevate the app's priority, masking the real behavior Digital Crown: Pressi
Replies
Boosts
Views
Activity
2w
The SecKeyCreateSignature method always prompts for the current user's login password.
I downloaded a P12 file (containing a private key) from the company server, and retrieved the private key from this P12 file using a password : private func loadPrivateKeyFromPKCS12(path: String, password: String) throws -> SecKey? { let p12Data: Data do { p12Data = try Data(contentsOf: fileURL) } catch let readError { ... } let options: [CFString: Any] = [ kSecImportExportPassphrase: password as CFString ] var items: CFArray? let status = SecPKCS12Import(p12Data as CFData, options as CFDictionary, &items) guard status == errSecSuccess else { throw exception } var privateKey: SecKey? let idd = identity as! SecIdentity let _ = SecIdentityCopyPrivateKey(idd, &privateKey) return privateKey } However, when I use this private key to call SecKeyCreateSignature for data signing, a dialog box always pops up to ask user to input the Mac admin password. What confuses me is that this private key is clearly stored in the local P12 file, and there should be no access to the keychain i
Replies
1
Boosts
0
Views
80
Activity
2w
Reply to iOS 26.2 RC DeviceActivityMonitor.eventDidReachThreshold regression?
Thanks a lot for confirming that this is currently investigated! Can you say when this will be addressed? I have reported this horrible regression in iOS 26 beta 1 in June 2025. It’s kinda sad that this didn’t seem to have any priority for Apple to get addressed before the public version was released. In 3 months this bug report will be one year old. [quote='874099022, DTS Engineer, /thread/809410?answerId=874099022#874099022'] This is a known issue that is currently being investigated. If you have already filed a bug report for this issue, thank you. [/quote]
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
Instruments Malfunction
I’m reporting a severe reproducible issue in Instruments, specifically when using the SwiftUI instrument and opening Show Cause & Effect Graph. What happens: • Instruments becomes extremely laggy/unresponsive • The graph/detail area can turn solid magenta/pink • Memory usage rapidly increases (I observed around 18 GB, 25 GB, and up to 34 GB) • My Mac has crashed/restarted during this, or in other terms, had a kernel panic, where my Mac froze, and everything unresponsive. The Trackpad wouldn't even click. Important detail: • I could not find a generated kernel panic log after the crash/restart. Repro context: • SwiftUI iOS app profiled from Xcode • Trigger is specifically entering Show Cause & Effect Graph • Recordings can be short and still trigger it • Issue is much less severe or absent if I avoid that view What I already tried: • Rebooting • Short captures / fewer instruments • Clearing Xcode/Instruments caches/preferences • Retesting after cleanup • Reinstalling Xcode Is this a known Instruments r
Replies
2
Boosts
0
Views
126
Activity
2w
Reply to Radio station APP iOS
Hello. I can help you update the stream link and publish a new version as long as you have the original Xcode project files.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
macOS Tahoe 26.4 Beta 4: Rosetta deprecation warning not shown — bug or intended behavior?
According to the release notes for macOS Tahoe 26.4 beta, a warning dialog should appear when launching apps that require Rosetta 2, informing users that these apps will stop working in a future macOS release. However, on my MacBook Air M1 running Tahoe 26.4 Beta 4 (25E5233c), no such warning appears when launching Intel (x86_64) apps. Test case: VLC media player Downloaded from the official VLC website: https://www.videolan.org/vlc/ Selected the Intel 64-bit version (vlc-3.0.21-intel64.dmg) Copied VLC.app to /Applications Code signature verified: Identifier: org.videolan.vlc Format: Mach-O thin (x86_64) Team ID: 75GAHG3SZQ Timestamp: June 2024 Flags: hardened runtime Notarization: accepted (Notarized Developer ID) spctl --assess --verbose /Applications/VLC.app → accepted, source=Notarized Developer ID Launched VLC.app — no Rosetta deprecation warning appeared System log findings: The following entry was repeated many times in the system log: Sandbox: oahd-helper deny(1) file-read-data /usr/libexec/r
Replies
7
Boosts
0
Views
336
Activity
2w
Reply to Waiting for review?
Hello, thanks you for your response, and noted. Yes, I did explain. My frustration is that the App is designed specifically for iPhone devices, and I thought I had selected the correct settings in Xcode, by removing all options other than iPhone. However, the reviewer tested the app on iPad, in compatibility mode, and as such, there was a display issue. I have now made the relevant telemetry adjustment to the info.plist file, in the hope that it can't be confused and used on an iPad in compatibility mode. My frustration has been that the expectations from what I have read suggest 24-48 hour review time, and my app is so simple, (1 page, 4 actions), no connectivity or database etc required. Thank you for your response though, it's all a bit new to me. Fingers crossed!
Replies
Boosts
Views
Activity
2w
Orphaning a CKAsset
I'm running into a problem in my attempt to clear CKAssets on the iCloud server. The documentation for CKAsset says: If you no longer require an asset that’s on the server, you don’t delete it. Instead, orphan the asset by setting any fields that contain the asset to nil and then saving the record. CloudKit periodically deletes orphaned assets from the server. I'm deleting image file assets which are properties on an ImageReference type (largeImage and thumbNailImage properties). When I delete an image, I am setting those properties to nil and sending the record for the ImageReference to iCloud using the async CKDatabase.modifyRecords method. This always results in an error: And of course the assets still appear in the CloudKit dashboard. What is the proper way of orphaning the assets on the CloudKit server?
Replies
4
Boosts
0
Views
294
Activity
2w
Can I move Xcode files to an external SSD safely?
Hi everyone, I’m running out of space on my Mac and I need to use an external SSD to free up room, especially because Xcode is taking a lot of storage. I want to know if it’s safe to move some Xcode files—projects, derived data, or system-related files—to an external SSD. Which files can I move safely, and which should stay on the internal drive? I want to avoid breaking anything or causing issues with Xcode or macOS. Also, is it the same situation if I use an external HDD instead of an SSD? Are there additional risks or performance issues to consider?
Replies
3
Boosts
0
Views
112
Activity
2w
Reply to Unacceptable Delay and No Response After One Month
I advise that you find a way to move on with your life. Don't let them play their game. Or you will get sick mentally and enter a long period of depression. No matter how harsh your words are, they are not going to listen, and they will ignore you. I left the entire Apple ecosystem after almost going crazy 16 years ago. Back then, an average wait time was 17 to 19 days. And I had about two dozen software updates and new software submissions waiting. It was frustrating when I had a software title, whose name contained the word 'Rip' and they rejected it by saying 'Illegal file sharing.'
Replies
Boosts
Views
Activity
2w
Reply to AVAudioSession : Audio issues when recording the screen in an app that changes IOBufferDuration on iOS 26.
Dear CRI_Omachi, While I am not aware of any changes made to IOBufferDuration in iOS 26, this seems like an issue that merits further investigation. Can you please open a bug report via Feedback Assistant? With it, please attach any documentation of this issue, such as logs, footage, or a focused sample project demonstrating this phenomenon. Once you open the bug report, please post the FB number here for my reference. If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why? Let me know if you'd like to know more, Richard Yeh  Developer Technical Support
Replies
Boosts
Views
Activity
2w
Reply to Clarification on clonefile / copyfile support of clone directories?
So, let me start here: Should I avoid 'cloning' directories in general with the copyfile function? No, quite the opposite. If you read the copyfile man page closely, you'll find that it's very careful to NEVER say that it clones directories. It either refers to cloning individual files or recursive cloning. Recursive cloning means using COPYFILE_CLONE on directories and is actually the standard behavior across all of our copy APIs (and the Finder). More specifically, COPYFILE_CLONE means that copy file calls clonefile for every possible individual file object and creates new objects for directories or anywhere it can't use clonefile. Note that this process is more sophisticated than it might seem, as it doesn't just use cloning within the same file system, but actually preserves clones across volumes (which is much trickier). copyfile() can also do standard copy all data copies on APFS but, to be honest, I've never come up with any good reason why you would do so, as it's b
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to How does Numbers.app detect that a document was moved to Recently Deleted, and can third-party apps implement the same behavior?
How does Numbers.app detect that a document has been moved to Recently Deleted? Can third-party apps implement the same behavior? In my reply on the other thread, I said this: I haven't looked at it in detail, but I suspect it's using a combination of security-scoped bookmark (for basic file tracking on the device) and the iCloud Document API. In particular, the key NSMetadataQueryUpdateRemovedItemsKey should be included in the NSMetadataQueryDidUpdateNotification you receive for deleted files. Have you tested this? As I'm fairly sure that's what Numbers is doing. One follow-up comment on this point from your other thread: Result: The file disappears from Files App Recently Deleted. In contrast, using [NSFileManager replaceItemAtURL:withItemAtURL:] keeps the file visible in Recently Deleted. Is this difference designed behavior? In the context of iCloud, delete/move and replaceItemAtURL are fundamentally different operations. In the first case, you deleted an exist
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w