Search results for

“file uri scheme”

81,752 results found

Post

Replies

Boosts

Views

Activity

Reply to FileManager.replaceItemAt(_:withItemAt:) fails sporadically on ubiquitous items
What makes copies slow isn't the writes; it's the reads, since the data still has to be pulled off the disk so it can be sent back to write. That makes sense and does indeed seem to be the reason for the speed after first import (the developer of LibZip said much the same recently when I was asking for more details about how it takes advantage of file cloning). The initial read of the large file takes a while, but after that saving is fast, even on reopening the file (because it is read on open). Anyway, thanks again - this discussion has lead to some nice optimisations in the way I'm working with LibZip as well as working around the save error.
Topic: App & System Services SubTopic: Core OS Tags:
2w
FileManager.replaceItemAt(_:withItemAt:) fails sporadically on ubiquitous items
I’m encountering a strange, sporadic error in FileManager.replaceItemAt(_:withItemAt:) when trying to update files that happen to be stored in cloud containers such as iCloud Drive or Dropbox. Here’s my setup: I have an NSDocument-based app which uses a zip file format (although the error can be reproduced using any kind of file). In my NSDocument.writeToURL: implementation, I do the following: Create a temp folder using FileManager.url(for: .itemReplacementDirectory, in: .userDomainMask, appropriateFor: fileURL, create: true). Copy the original zip file into the temp directory. Update the zip file in the temp directory. Move the updated zip file into place by moving it from the temp directory to the original location using FileManager.replaceItemAt(_:withItemAt:). This all works perfectly - most of the time. However, very occasionally I receive a save error caused by replaceItemAt(_withItemAt:) failing. Saving can work fine for hundreds of times, but then
15
0
337
2w
Reply to File Export from iOS - eventually import too
It took me a little bit to realize that tapping on the text in the Share to Files interface provided a way to change the file name - when I share one item. In some online tutorials there was a way to set the full filename (like Export.csv) - but maybe that's only when writing to the app's file directory. Would you agree? I can't really think of a clean way to be able to name 2 files in that interface - so I fully understand why that's not available - and therefore I don't plan to proceed to a feedback for this. I should be able to combine elements so that I'm only sharing 1 item in for my original request. Could you clarify how DTS works now relative to these questions answered here on the forum? Since I did ask for a DTS - does this count as one? It doesn't matter to me right now because my dev account will renew soon. Thanks so much!
Topic: UI Frameworks SubTopic: SwiftUI
2w
Reply to Cannot find devices in RemoteImmersiveSpace
Hi @hungng Could you try running the Spatial Rendering App template and see if you can reproduce the issue there? To do so: Create a new project in Xcode by choosing File > New > Project. Navigate to the macOS section of the template chooser. Select the Spatial Rendering App template. Let me know if you run into the same issue with the template, thanks!
Topic: Spatial Computing SubTopic: General Tags:
2w
Reply to Broken autocomplete in Xcode 26
Thank you for your post. I see that you have already submitted those files for the issue and appreciate your efforts. The team is currently experiencing high workloads and only communicates when a fix is released due to company policies. I can assure you that this issue is on the team’s priority list. It has been marked as an existing bug and will be addressed as soon as a fix is available. Once the fix is released, the team will notify you via Feedback Assistant to test the new release. I understand that the process can sometimes be slow, and this bug may have been present for a longer period than anticipated. Albert Pascual
  Worldwide Developer Relations.
2w
TestFlight Screenshots Downloads
I have an iOS app build that is being tested. The user has provided feedback and screenshots that I can see in Connect. But I cannot download the zip file of the screenshot and feedback information. There are 3 screenshots. Each time I try it just times out. I have tried on a couple of different computers with the same result. Can you help please? Thanks
4
0
1.1k
2w
Reply to FSKit passthrough sample fails to mount
Please try again after a restart. I went through this process myself and hit very similar symptoms. I found that fskitd had a bunch of threads stuck like this: 816 _dispatch_call_block_and_release + 32 (libdispatch.dylib + 7004) [0x19b4ceb5c] 816 ??? (fskitd + 132900) [0x100988724] 816 ??? (fskitd + 86796) [0x10097d30c] 816 ??? (fskitd + 87588) [0x10097d624] 816 ??? (fskitd + 50740) [0x100974634] 816 objc_sync_enter + 20 (libobjc.A.dylib + 70452) [0x19b245334] 816 816 __ulock_wait2 + 8 (libsystem_kernel.dylib + 60532) [0x19b656c74] *816 ??? (kernel.release.t6031 + 6477368) [0xfffffe0008ea1638] (blocked by turnstile waiting for fskitd [634] thread 0x30444d) Worse yet, the number of threads kept growing, every time I retried the mount command! I was able to clear this by restarting, after which the mount command worked as expected. I did some spelunking based on internal resources and it seems that these threads are deadlocked due to some previous error starting the extension. Hence my idea to restart, in an a
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to Xcode 16 warning about missing symbols of static framework
The only way out of it was to create a build post-action script to generate the missing dsym file. Here is the gist of the script: set -euo pipefail if [ -z ${ARCHIVE_PATH:-} ]; then exit 0 fi APP_PATH=$ARCHIVE_PATH/Products/Applications/App_Product_Name.app if [ ! -d $APP_PATH/Contents ]; then exit 0 fi BIN=$APP_PATH/Contents/Frameworks/Framework_Name.framework/Framework_Name OUT=$ARCHIVE_PATH/dSYMs/Framework_Name.framework.dSYM OUT_DWARF=$OUT/Contents/Resources/DWARF/Framework_Name if [ ! -f $BIN ]; then exit 0 fi if [ ! -f $OUT_DWARF ]; then mkdir -p $ARCHIVE_PATH/dSYMs rm -rf $OUT xcrun dsymutil $BIN -o $OUT fi if [ ! -f $OUT_DWARF ]; then exit 1 fi BIN_UUIDS=$(xcrun dwarfdump --uuid $BIN | awk '{print $2}' | sort) DSYM_UUIDS=$(xcrun dwarfdump --uuid $OUT_DWARF | awk '{print $2}' | sort) if [ $BIN_UUIDS != $DSYM_UUIDS ]; then exit 1 fi
2w
Reply to Recording a Packet Trace
Which bit? I was unaware that I could simply run both mitmproxy as well as rvictl and tcpdump at the same time. However I did just that; inspecting the trace file (in Wireshark) revealed the following (bundle name redacted): [Process Information: com.apple.WebKit(1114) [(1111)]] [Id: 1114] [Name: com.apple.WebKit] But I guess you are right in that this does not tell me anything I did not already know. Furthermore I do not see any TLS handshake messages after the server sent its certificate along with the Finished message which confirms that there might be some sort of pinning going on.
2w
Reply to SpeechAnalyzer.start(inputSequence:) fails with _GenericObjCError nilError, while the same WAV succeeds with start(inputAudioFile:)
I've been working with SpeechAnalyzer.start(inputSequence:) on macOS 26 and got streaming transcription working. A few things that might help: Make sure the AVAudioFormat you use to create AnalyzerInput buffers exactly matches what bestAvailableAudioFormat() returns. Even subtle mismatches (e.g., interleaved vs non-interleaved, different channel layouts) can cause the nilError without a descriptive message. I found that feeding buffers that are too small (< 4096 frames) occasionally triggers this error. Try using larger chunks â I settled on 8192 frames per buffer. The bufferStartTime parameter needs to be monotonically increasing and consistent with the actual audio duration. If there are gaps or overlaps in the timestamps, the stream mode can fail silently or throw nilError. Instead of replaying a WAV file as chunked buffers, I'd suggest testing with live audio from AVCaptureSession first. In my experience, live capture â AnalyzerInput works more reliably than simulated streaming from a file
Topic: Media Technologies SubTopic: Audio Tags:
2w
SpeechAnalyzer.start(inputSequence:) fails with _GenericObjCError nilError, while the same WAV succeeds with start(inputAudioFile:)
I'm trying to use the new Speech framework for streaming transcription on macOS 26.3, and I can reproduce a failure with SpeechAnalyzer.start(inputSequence:). What is working: SpeechAnalyzer + SpeechTranscriber offline path using start(inputAudioFile:finishAfterFile:) same Spanish WAV file transcribes successfully and returns a coherent final result What is not working: SpeechAnalyzer + SpeechTranscriber stream path using start(inputSequence:) same WAV, replayed as AnalyzerInput(buffer:bufferStartTime:) fails once replay starts with: _GenericObjCError domain=Foundation._GenericObjCError code=0 detail=nilError I also tried: DictationTranscriber instead of SpeechTranscriber no realtime pacing during replay Both still fail in stream mode with the same error. So this does not currently look like a ScreenCaptureKit issue or a Python integration issue. I reduced it to a pure Swift CLI repro. Environment: macOS 26.3 (25D122) Xcode 26.3 Swift 6.2.4 Apple Silicon Mac Has anyone here gotten SpeechAnalyzer.star
1
0
346
2w
Reply to FileManager.replaceItemAt(_:withItemAt:) fails sporadically on ubiquitous items
What makes copies slow isn't the writes; it's the reads, since the data still has to be pulled off the disk so it can be sent back to write. That makes sense and does indeed seem to be the reason for the speed after first import (the developer of LibZip said much the same recently when I was asking for more details about how it takes advantage of file cloning). The initial read of the large file takes a while, but after that saving is fast, even on reopening the file (because it is read on open). Anyway, thanks again - this discussion has lead to some nice optimisations in the way I'm working with LibZip as well as working around the save error.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
FileManager.replaceItemAt(_:withItemAt:) fails sporadically on ubiquitous items
I’m encountering a strange, sporadic error in FileManager.replaceItemAt(_:withItemAt:) when trying to update files that happen to be stored in cloud containers such as iCloud Drive or Dropbox. Here’s my setup: I have an NSDocument-based app which uses a zip file format (although the error can be reproduced using any kind of file). In my NSDocument.writeToURL: implementation, I do the following: Create a temp folder using FileManager.url(for: .itemReplacementDirectory, in: .userDomainMask, appropriateFor: fileURL, create: true). Copy the original zip file into the temp directory. Update the zip file in the temp directory. Move the updated zip file into place by moving it from the temp directory to the original location using FileManager.replaceItemAt(_:withItemAt:). This all works perfectly - most of the time. However, very occasionally I receive a save error caused by replaceItemAt(_withItemAt:) failing. Saving can work fine for hundreds of times, but then
Replies
15
Boosts
0
Views
337
Activity
2w
Reply to Family Controls extensions stuck in "Submitted"
@voyage11 Please file a code-level support request with your Team ID for assistance.
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
2w
Reply to Why are Family Controls API requests taking this long?
@SamuelOsondu Did you use the following link to file a code-level support request: https://developer.apple.com/support/technical If not, please use this link to file a code-level support request that includes your Team ID.
Replies
Boosts
Views
Activity
2w
Reply to File Export from iOS - eventually import too
It took me a little bit to realize that tapping on the text in the Share to Files interface provided a way to change the file name - when I share one item. In some online tutorials there was a way to set the full filename (like Export.csv) - but maybe that's only when writing to the app's file directory. Would you agree? I can't really think of a clean way to be able to name 2 files in that interface - so I fully understand why that's not available - and therefore I don't plan to proceed to a feedback for this. I should be able to combine elements so that I'm only sharing 1 item in for my original request. Could you clarify how DTS works now relative to these questions answered here on the forum? Since I did ask for a DTS - does this count as one? It doesn't matter to me right now because my dev account will renew soon. Thanks so much!
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
2w
Reply to WKWebView could not access local javascript files
Thanks Apple, I filed DTS ticket, and get the solution from Apple Engineer. It is resolved.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
Reply to Cannot find devices in RemoteImmersiveSpace
Hi @hungng Could you try running the Spatial Rendering App template and see if you can reproduce the issue there? To do so: Create a new project in Xcode by choosing File > New > Project. Navigate to the macOS section of the template chooser. Select the Spatial Rendering App template. Let me know if you run into the same issue with the template, thanks!
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
Reply to WKWebView could not access local javascript files
Hi, If this is still reproducing, could you file a feedback report, and possibly attach a demo Xcode project that is reproducing the issue?
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
Reply to Broken autocomplete in Xcode 26
Thank you for your post. I see that you have already submitted those files for the issue and appreciate your efforts. The team is currently experiencing high workloads and only communicates when a fix is released due to company policies. I can assure you that this issue is on the team’s priority list. It has been marked as an existing bug and will be addressed as soon as a fix is available. Once the fix is released, the team will notify you via Feedback Assistant to test the new release. I understand that the process can sometimes be slow, and this bug may have been present for a longer period than anticipated. Albert Pascual
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
2w
TestFlight Screenshots Downloads
I have an iOS app build that is being tested. The user has provided feedback and screenshots that I can see in Connect. But I cannot download the zip file of the screenshot and feedback information. There are 3 screenshots. Each time I try it just times out. I have tried on a couple of different computers with the same result. Can you help please? Thanks
Replies
4
Boosts
0
Views
1.1k
Activity
2w
Reply to FSKit passthrough sample fails to mount
Please try again after a restart. I went through this process myself and hit very similar symptoms. I found that fskitd had a bunch of threads stuck like this: 816 _dispatch_call_block_and_release + 32 (libdispatch.dylib + 7004) [0x19b4ceb5c] 816 ??? (fskitd + 132900) [0x100988724] 816 ??? (fskitd + 86796) [0x10097d30c] 816 ??? (fskitd + 87588) [0x10097d624] 816 ??? (fskitd + 50740) [0x100974634] 816 objc_sync_enter + 20 (libobjc.A.dylib + 70452) [0x19b245334] 816 816 __ulock_wait2 + 8 (libsystem_kernel.dylib + 60532) [0x19b656c74] *816 ??? (kernel.release.t6031 + 6477368) [0xfffffe0008ea1638] (blocked by turnstile waiting for fskitd [634] thread 0x30444d) Worse yet, the number of threads kept growing, every time I retried the mount command! I was able to clear this by restarting, after which the mount command worked as expected. I did some spelunking based on internal resources and it seems that these threads are deadlocked due to some previous error starting the extension. Hence my idea to restart, in an a
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to Xcode 16 warning about missing symbols of static framework
The only way out of it was to create a build post-action script to generate the missing dsym file. Here is the gist of the script: set -euo pipefail if [ -z ${ARCHIVE_PATH:-} ]; then exit 0 fi APP_PATH=$ARCHIVE_PATH/Products/Applications/App_Product_Name.app if [ ! -d $APP_PATH/Contents ]; then exit 0 fi BIN=$APP_PATH/Contents/Frameworks/Framework_Name.framework/Framework_Name OUT=$ARCHIVE_PATH/dSYMs/Framework_Name.framework.dSYM OUT_DWARF=$OUT/Contents/Resources/DWARF/Framework_Name if [ ! -f $BIN ]; then exit 0 fi if [ ! -f $OUT_DWARF ]; then mkdir -p $ARCHIVE_PATH/dSYMs rm -rf $OUT xcrun dsymutil $BIN -o $OUT fi if [ ! -f $OUT_DWARF ]; then exit 1 fi BIN_UUIDS=$(xcrun dwarfdump --uuid $BIN | awk '{print $2}' | sort) DSYM_UUIDS=$(xcrun dwarfdump --uuid $OUT_DWARF | awk '{print $2}' | sort) if [ $BIN_UUIDS != $DSYM_UUIDS ]; then exit 1 fi
Replies
Boosts
Views
Activity
2w
Reply to Recording a Packet Trace
Which bit? I was unaware that I could simply run both mitmproxy as well as rvictl and tcpdump at the same time. However I did just that; inspecting the trace file (in Wireshark) revealed the following (bundle name redacted): [Process Information: com.apple.WebKit(1114) [(1111)]] [Id: 1114] [Name: com.apple.WebKit] But I guess you are right in that this does not tell me anything I did not already know. Furthermore I do not see any TLS handshake messages after the server sent its certificate along with the Finished message which confirms that there might be some sort of pinning going on.
Replies
Boosts
Views
Activity
2w
Reply to SpeechAnalyzer.start(inputSequence:) fails with _GenericObjCError nilError, while the same WAV succeeds with start(inputAudioFile:)
I've been working with SpeechAnalyzer.start(inputSequence:) on macOS 26 and got streaming transcription working. A few things that might help: Make sure the AVAudioFormat you use to create AnalyzerInput buffers exactly matches what bestAvailableAudioFormat() returns. Even subtle mismatches (e.g., interleaved vs non-interleaved, different channel layouts) can cause the nilError without a descriptive message. I found that feeding buffers that are too small (< 4096 frames) occasionally triggers this error. Try using larger chunks â I settled on 8192 frames per buffer. The bufferStartTime parameter needs to be monotonically increasing and consistent with the actual audio duration. If there are gaps or overlaps in the timestamps, the stream mode can fail silently or throw nilError. Instead of replaying a WAV file as chunked buffers, I'd suggest testing with live audio from AVCaptureSession first. In my experience, live capture â AnalyzerInput works more reliably than simulated streaming from a file
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
2w
SpeechAnalyzer.start(inputSequence:) fails with _GenericObjCError nilError, while the same WAV succeeds with start(inputAudioFile:)
I'm trying to use the new Speech framework for streaming transcription on macOS 26.3, and I can reproduce a failure with SpeechAnalyzer.start(inputSequence:). What is working: SpeechAnalyzer + SpeechTranscriber offline path using start(inputAudioFile:finishAfterFile:) same Spanish WAV file transcribes successfully and returns a coherent final result What is not working: SpeechAnalyzer + SpeechTranscriber stream path using start(inputSequence:) same WAV, replayed as AnalyzerInput(buffer:bufferStartTime:) fails once replay starts with: _GenericObjCError domain=Foundation._GenericObjCError code=0 detail=nilError I also tried: DictationTranscriber instead of SpeechTranscriber no realtime pacing during replay Both still fail in stream mode with the same error. So this does not currently look like a ScreenCaptureKit issue or a Python integration issue. I reduced it to a pure Swift CLI repro. Environment: macOS 26.3 (25D122) Xcode 26.3 Swift 6.2.4 Apple Silicon Mac Has anyone here gotten SpeechAnalyzer.star
Replies
1
Boosts
0
Views
346
Activity
2w