Search results for

“file uri scheme”

81,707 results found

Post

Replies

Boosts

Views

Activity

How to upload large videos with PHAssetResourceUploadJobChangeRequest?
I'm implementing a PHBackgroundResourceUploadExtension to back up photos and videos from the user's library to our cloud storage service. Our existing upload infrastructure uses chunked uploads for large files (splitting videos into smaller byte ranges and uploading each chunk separately). This approach: Allows resumable uploads if interrupted Stays within server-side request size limits Provides granular progress tracking Looking at the PHAssetResourceUploadJobChangeRequest.createJob(destination:resource:) API, I don't see a way to specify byte ranges or create multiple jobs for chunks of the same resource. Questions: Does the system handle large files (1GB+) automatically under the hood, or is there a recommended maximum file size for a single upload job? Is there a supported pattern for chunked/resumable uploads, or should the destination URL endpoint handle the entire file in one request? If our server requires chunked uploads (e.g., BITS protocol with CreateSession → F
4
0
536
2w
Reply to Recurring FigXPCUtilities / FigCaptureSourceRemote err=-17281 logs when using AVCaptureVideoDataOutput on iOS 26.x
Thanks for this interesting post! I'm not an expert on that field nor that API. Hope one of the engineers on that team can jump into this thread for better info. These specific FigXPCUtilities and FigCaptureSourceRemote logs are almost certainly benign internal framework noise rather than a regression or a flaw in your capture pipeline. Looking up the err=-17281 is a CoreMedia error code that, without knowing here, typically points to a minor XPC synchronization hiccup, a port invalidation, or an asynchronous state mismatch during the setup or teardown of the capture session? I believe this logs are for information only and should be removed. Code paths that silently recovered in older iOS versions often have their log levels elevated in newer releases (or beta releases), resulting in console spam. If your AVCaptureVideoDataOutputSampleBufferDelegate is successfully receiving CMSampleBuffer frames and your preview layer is rendering smoothly. You can safely ignore these logs. If you want to temporarily hide t
2w
Reply to ManipulationComponent Not Translating using indirect input
I confirm the issue is still present on visionOS 26.3.1 and on visionOS 26.4 beta as well. I noticed the issue across different apps using ManipulationComponent. Removing the widgets solves the issue. Not all widgets cause the issue though. For instance, the Photos or Calendar widgets cause the issue while Clock or Weather widgets do not cause any issue in my testings. I did file a Feedback FB22262491.
Topic: Spatial Computing SubTopic: General Tags:
2w
Reply to Localized version of Application = Spam??
Thanks for the post, very interesting you went to an approached that will create a duplicate app instead of localization. I would actually focus on the reason you can’t localize in another language as that API has been proven to be great. I think we should focus on that. Apple’s automated systems and human reviewers are trained to flag apps that look and function similarly to existing apps. I believe the primary goal is to keep the App Store clean the preference is that a single app supports multiple languages and features, rather than having separate apps for different regions or languages. I think on the final result having 2 apps on the same region with different languages. If both apps are available in the same region that could be a really bad experience for the users. Let’s focus on the reason you can’t localize. Localization isn't just translating words; it's adapting the software. Developers extract all hard-coded text in the app and put them into a file called. The app then pulls the correct
2w
Reply to App Store doesn't display English among available languages for my new app
I found a fix. You can right click an entry in the catalog and select Mark as Reviewed and it will then create an en.lproj folder and file. In source code view you can bulk edit state : new to state : translated for all English values. On build it will also then remove extractionState : extracted_with_value from each entry and all strings will be in the en.lprog strings file.
2w
Reply to Broken autocomplete in Xcode 26
@AlkensoDev I would recommend to file a bug because I'm unable to reproduce it on the latest release of Xcode. I would also recommend when filing the bug to provide your sysdiagnose as maybe could be something on the set up of your environment. 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? Albert Pascual
  Worldwide Developer Relations.
2w
Reply to ScreenCapture permissions disappear and don't return
Hi Quinn, thanks for the reply. We kind of expect the permissions to disappear when installing an update, but the main problem is that the CGRequestScreenCaptureAccess() doesn't work after that happens until a reboot. We expect that the call should cause the prom[pt to appear to allow the user to re-enable ScreenCapture. I have filed a bug report: FB22261705
Topic: Privacy & Security SubTopic: General Tags:
2w
DeviceActivityReportExtension sandbox blocks all output channels — how to export resolved Application.bundleIdentifier?
DeviceActivityReportExtension sandbox blocks all output channels — how to export resolved Application.bundleIdentifier? Application.bundleIdentifier only resolves to a non-nil value inside a DeviceActivityReportExtension (ExtensionKit/XPC). The main app and DeviceActivityMonitor extension always return nil. However, the Report Extension's sandbox silently blocks every output channel I've tested: UserDefaults (App Group): Reads succeed, writes silently dropped File writes (App Group container): Fail silently or throw HTTP requests: Network blocked entirely Local Notifications: Couldn't communicate with a helper application UIPasteboard: Writes silently fail iCloud KVS: synchronize() returns false Both targets share the same com.apple.security.application-groups entitlement and group identifier. The main app reads and writes to the shared container normally — only the extension's writes fail. This means resolved bundle identifiers can only be rendered in the extension's own SwiftUI view and cannot be c
4
0
181
2w
Reply to File Export from iOS - eventually import too
Thanks for these answers, but I'm afraid I need a bit more help. How do you go about presenting the activityViewController? Could you show this in a small example app? I had previously written this and it does share but it creates 2 files, and doesn't present any way to rename the file. import SwiftUI import UIKit struct ContentView: View { @State private var showShareSheet = false @State private var textItem1 = @State private var textItem2 = // @State private var shareItems: [Any] = [ // Check out this file!, // URL(fileURLWithPath: FileManager.documentsDirectory.path()) // Replace with a real file URL // ] var shareItems: [Any] { [ textItem1, textItem2 // URL(fileURLWithPath: TinySavedItems) ] } var body: some View { VStack { TextField(enter text, text: $textItem1) .padding() TextField(enter text, text: $textItem2) .padding() Button(Share, systemImage: square.and.arrow.up) { showShareSheet = true } .sheet(isPresented: $showShareSheet) { ActivityViewController(activityIt
Topic: UI Frameworks SubTopic: SwiftUI
2w
Reply to filecopy fails with errno 34 "Result too large" when copying from NAS
I'm experiencing this issue. Copy file works locally for these files but fails when coming from a NAS. Works from Finder in both cases, as previously described above. copyfile does not seem to provide a usable error. The callback is invoked twice and I get : what == COPYFILE_COPY_XATTR stage == COPYFILE_START Then the callback is invoked a second time with: what == COPYFILE_COPY_XATTR stage == COPYFILE_FINISH In both cases my callback function returns COPYFILE_CONTINUE. Then the copyfile function returns -1, errno is not set. Not getting a usable error unfortunately forces kind of jackhammer workarounds. Have you noticed this issue for files without resource forks (but use other xattrs) or is the resource fork the main cause?
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to Korean IME forces Smart Quotes, ignoring UITextInputTraits and OS Settings
Hello @iiil8 I would like to take a look at this. Can you file a report with Feedback Assistant https://developer.apple.com/feedback-assistant/ and attach a minimal sample project that reproduces this issue? Please reply with the FB number once complete.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
2w
Reply to MultiDatePicker bug in iOS26
Could you please file a feedback report and include the sample code that reproduces the issue. Once you do please share the Feedback ID number here for the record. Thanks
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
2w
Reply to UIDocumentPickerViewController allows to select file declared in Info.plist document types even when restricting to folder UTI
Thank you for filing FB22254960 . When your app declares support for public.text in CFBundleDocumentTypes, you're telling the system that your app can open text documents. The document picker respects your declaration and shows both the content types you explicitly request folder and the types your app supports.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
2w
How to upload large videos with PHAssetResourceUploadJobChangeRequest?
I'm implementing a PHBackgroundResourceUploadExtension to back up photos and videos from the user's library to our cloud storage service. Our existing upload infrastructure uses chunked uploads for large files (splitting videos into smaller byte ranges and uploading each chunk separately). This approach: Allows resumable uploads if interrupted Stays within server-side request size limits Provides granular progress tracking Looking at the PHAssetResourceUploadJobChangeRequest.createJob(destination:resource:) API, I don't see a way to specify byte ranges or create multiple jobs for chunks of the same resource. Questions: Does the system handle large files (1GB+) automatically under the hood, or is there a recommended maximum file size for a single upload job? Is there a supported pattern for chunked/resumable uploads, or should the destination URL endpoint handle the entire file in one request? If our server requires chunked uploads (e.g., BITS protocol with CreateSession → F
Replies
4
Boosts
0
Views
536
Activity
2w
Reply to Recurring FigXPCUtilities / FigCaptureSourceRemote err=-17281 logs when using AVCaptureVideoDataOutput on iOS 26.x
Thanks for this interesting post! I'm not an expert on that field nor that API. Hope one of the engineers on that team can jump into this thread for better info. These specific FigXPCUtilities and FigCaptureSourceRemote logs are almost certainly benign internal framework noise rather than a regression or a flaw in your capture pipeline. Looking up the err=-17281 is a CoreMedia error code that, without knowing here, typically points to a minor XPC synchronization hiccup, a port invalidation, or an asynchronous state mismatch during the setup or teardown of the capture session? I believe this logs are for information only and should be removed. Code paths that silently recovered in older iOS versions often have their log levels elevated in newer releases (or beta releases), resulting in console spam. If your AVCaptureVideoDataOutputSampleBufferDelegate is successfully receiving CMSampleBuffer frames and your preview layer is rendering smoothly. You can safely ignore these logs. If you want to temporarily hide t
Replies
Boosts
Views
Activity
2w
Reply to ManipulationComponent Not Translating using indirect input
I confirm the issue is still present on visionOS 26.3.1 and on visionOS 26.4 beta as well. I noticed the issue across different apps using ManipulationComponent. Removing the widgets solves the issue. Not all widgets cause the issue though. For instance, the Photos or Calendar widgets cause the issue while Clock or Weather widgets do not cause any issue in my testings. I did file a Feedback FB22262491.
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
Reply to Localized version of Application = Spam??
Thanks for the post, very interesting you went to an approached that will create a duplicate app instead of localization. I would actually focus on the reason you can’t localize in another language as that API has been proven to be great. I think we should focus on that. Apple’s automated systems and human reviewers are trained to flag apps that look and function similarly to existing apps. I believe the primary goal is to keep the App Store clean the preference is that a single app supports multiple languages and features, rather than having separate apps for different regions or languages. I think on the final result having 2 apps on the same region with different languages. If both apps are available in the same region that could be a really bad experience for the users. Let’s focus on the reason you can’t localize. Localization isn't just translating words; it's adapting the software. Developers extract all hard-coded text in the app and put them into a file called. The app then pulls the correct
Replies
Boosts
Views
Activity
2w
Reply to App Store doesn't display English among available languages for my new app
I found a fix. You can right click an entry in the catalog and select Mark as Reviewed and it will then create an en.lproj folder and file. In source code view you can bulk edit state : new to state : translated for all English values. On build it will also then remove extractionState : extracted_with_value from each entry and all strings will be in the en.lprog strings file.
Replies
Boosts
Views
Activity
2w
Reply to Broken autocomplete in Xcode 26
@AlkensoDev I would recommend to file a bug because I'm unable to reproduce it on the latest release of Xcode. I would also recommend when filing the bug to provide your sysdiagnose as maybe could be something on the set up of your environment. 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? Albert Pascual
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
2w
Reply to filecopy fails with errno 34 "Result too large" when copying from NAS
Sorry for the double post. But just a quick additional question. Am I better off working around the issue by retrying with the Carbon file manager or should I just skip the resource fork in the copyfile callback, then copy it over myself at the end?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to ScreenCapture permissions disappear and don't return
Hi Quinn, thanks for the reply. We kind of expect the permissions to disappear when installing an update, but the main problem is that the CGRequestScreenCaptureAccess() doesn't work after that happens until a reboot. We expect that the call should cause the prom[pt to appear to allow the user to re-enable ScreenCapture. I have filed a bug report: FB22261705
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
DeviceActivityReportExtension sandbox blocks all output channels — how to export resolved Application.bundleIdentifier?
DeviceActivityReportExtension sandbox blocks all output channels — how to export resolved Application.bundleIdentifier? Application.bundleIdentifier only resolves to a non-nil value inside a DeviceActivityReportExtension (ExtensionKit/XPC). The main app and DeviceActivityMonitor extension always return nil. However, the Report Extension's sandbox silently blocks every output channel I've tested: UserDefaults (App Group): Reads succeed, writes silently dropped File writes (App Group container): Fail silently or throw HTTP requests: Network blocked entirely Local Notifications: Couldn't communicate with a helper application UIPasteboard: Writes silently fail iCloud KVS: synchronize() returns false Both targets share the same com.apple.security.application-groups entitlement and group identifier. The main app reads and writes to the shared container normally — only the extension's writes fail. This means resolved bundle identifiers can only be rendered in the extension's own SwiftUI view and cannot be c
Replies
4
Boosts
0
Views
181
Activity
2w
Reply to File Export from iOS - eventually import too
Thanks for these answers, but I'm afraid I need a bit more help. How do you go about presenting the activityViewController? Could you show this in a small example app? I had previously written this and it does share but it creates 2 files, and doesn't present any way to rename the file. import SwiftUI import UIKit struct ContentView: View { @State private var showShareSheet = false @State private var textItem1 = @State private var textItem2 = // @State private var shareItems: [Any] = [ // Check out this file!, // URL(fileURLWithPath: FileManager.documentsDirectory.path()) // Replace with a real file URL // ] var shareItems: [Any] { [ textItem1, textItem2 // URL(fileURLWithPath: TinySavedItems) ] } var body: some View { VStack { TextField(enter text, text: $textItem1) .padding() TextField(enter text, text: $textItem2) .padding() Button(Share, systemImage: square.and.arrow.up) { showShareSheet = true } .sheet(isPresented: $showShareSheet) { ActivityViewController(activityIt
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
2w
Reply to filecopy fails with errno 34 "Result too large" when copying from NAS
I'm experiencing this issue. Copy file works locally for these files but fails when coming from a NAS. Works from Finder in both cases, as previously described above. copyfile does not seem to provide a usable error. The callback is invoked twice and I get : what == COPYFILE_COPY_XATTR stage == COPYFILE_START Then the callback is invoked a second time with: what == COPYFILE_COPY_XATTR stage == COPYFILE_FINISH In both cases my callback function returns COPYFILE_CONTINUE. Then the copyfile function returns -1, errno is not set. Not getting a usable error unfortunately forces kind of jackhammer workarounds. Have you noticed this issue for files without resource forks (but use other xattrs) or is the resource fork the main cause?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to NSProgress - way to publish progress to make the file url unselectable in Finder?
That does the thing! Thanks! And, yes, we probably should have documented all of this, so PLEASE file about this and post the bug number back here. I filed FB22260532
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
2w