Search results for

“file uri scheme”

81,711 results found

Post

Replies

Boosts

Views

Activity

Reply to MacOS 26.4 beta “Failed to prepare software update”
Thanks for reply, Albert. Interestingly, installation of MacOS 24.6 beta 4 was successful in safe mode on both my Intel iMac and my M1 Max MBP the second time I tried (a day later). Every time I attempted an upgrade, the Mac appeared to re-download the full OS file so not sure a corrupted cached file would explain it; also the bug presented itself on two systens with different processors. I wonder if Apple fixed a bug in the installer overnight. I did post the issue in the Developer Feedback app, and got a request for more information, asking if I was able to install in safe mode (when I had already said that I was not). In any case, all good now. :)
Topic: Community SubTopic: Apple Developers Tags:
3w
Reply to App group broken on Sequoia
Thanks, Quinn! The first problem is that the entitlements validated flag is not set -- here's the relevant text: code signing info = valid refuse invalid pages kill on invalid pages require enforcement allowed mach-o platform dyld And the codesign result shows that the new app group is not present, just the old one: Executable=/Applications/MyApp.app/Contents/PlugIns/EMPFileProvider.appex/Contents/MacOS/EMPFileProvider [Dict] [Key] com.apple.security.app-sandbox [Value] [Bool] true [Key] com.apple.security.network.client [Value] [Bool] true [Key] keychain-access-groups [Value] [Array] [String] XXXXXXXXXX.com.mydomain.MyApp.Shared [Key] com.apple.security.application-groups [Value] [Array] [String] group.com.mydomain.MyApp [Key] com.apple.application-identifier [Value] [String] $(AppIdentifierPrefix)$(PRODUCT_BUNDLE_IDENTIFIER) ...which is odd because the embedded.provisionprofile inside the .appex lists all three: com.apple.security.application-groups group.XXXXXXXXXX.com.mydomain.MyApp group.com.mydomain.My
Topic: Code Signing SubTopic: Entitlements Tags:
3w
Reply to Unable to install Metal toolchain through Xcode Cloud
removing the script didn't fix for me. the script had been holding it together till now, but something changed recently. Ok — since this sounds like a recent change, it would be helpful for us to get a bug report from you so we can look into this further. It would be helpful if you could detail the exact configuration you've set for this build environment (macOS version and Xcode versions), and a link to a specific build. Once that's filed, please post the FB number here so I can locate your report. — Ed Ford,  DTS Engineer
3w
Reply to AppIntent search schema opens app as only option
I presume you looked at implementing code like this, from the documentation: @AppIntent(schema: .system.search) struct ExampleSearchIntent: ShowInAppSearchResultsIntent { static var searchScopes: [StringSearchScope] = [.general] var criteria: StringSearchCriteria func perform() async throws -> some IntentResult { let searchString = criteria.term print(Searching for (searchString)) // ... // Code that navigates to your app's search and enters the search string into a search field. // ... return .result() } } The key type here, ShowInAppSearchResultsIntent, is a clear indication of the intended behavior of showing search results inside of the app. Also, testing your intent in the Shortcuts app is an excellent way to test. Do I need to do AppIntents without the schema and wait until there is a search schema that does not open the app, or should I be using a different schema? What am I missing? It's worth considering the larger picture of what someone does with your intent after the search — in many cases, the
3w
Reply to New project with new AppIntent throws build error
To see what happened here, I used Xcode 26.4 beta 3 to create a new multi-platform app. I added a new file, added an import statement for App Intents, and then copied in the snippet of getting started code from the documentation. Indeed, this fails to compile. That new project's default build setting configuration is: Swift Langage Version: Swift 5 Approachable Concurrency: Yes Default Actor Isolation: MainActor To allow this to compile, I change the Default Actor Isolation build setting to nonisolated instead. This is worth a bug report — please use Feedback Assistant to report it, and post the FB number here so I can follow up on it. — Ed Ford,  DTS Engineer
3w
Reply to How to upload large videos with PHAssetResourceUploadJobChangeRequest?
Thanks for the post. I'm not an expert on that API, not even close to that, so I'm inviting other engineers to jump into this thread and provide their options on the 3 questions. This is a PhotoKit upload asset for background process. As noted the extension processes uploads only while enabled. Disable the extension when a person signs out or disables cloud sync in your app. https://developer.apple.com/documentation/PhotoKit/uploading-asset-resources-in-the-background The PHAssetResourceUploadJobChangeRequest.createJob(destination:resource:) API is designed to hand off the entire upload process to a system daemon. Because the system daemon manages the network connection out-of-process (to preserve battery and allow the extension to be suspended or terminated), it imposes specific architectural constraints on how your backend must receive the data. Here is the limitations are documented https://developer.apple.com/documentation/photos/phphotoserror-swift.struct/limitexceeded Are you hitting any? I believe the
3w
Reply to Clarification on clonefile / copyfile support of clone directories?
The ‘strongly discouraged’ guidance only applies to directly using the clonefile function on directories, because it ties up the filesystem in ways that can be detrimental to the overall system health. On the other hand cloning directories recursively with copyfile is perfectly fine, because copyfile internally only calls clonefile on each file separately. Hope that helps clarify things.
Topic: App & System Services SubTopic: Core OS Tags:
3w
Reply to MacOS 26.4 beta “Failed to prepare software update”
Thanks for the post. This is extremely interesting, but I'm sure is frustrating as well. Are you able to complete the installation if you boot to safe mode? It seems it is almost certainly a corrupted OTA (Over-The-Air) delta update file cached on your system? The process terminates with Failed to prepare the software update or An error occurred while downloading the selected updates.”? When a beta update fails halfway or downloads a corrupted delta package, macOS will continuously try to use that broken file every time you hit Update, resulting in the same error. Can I ask you both to please create a bug for this issue? 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? Thanks!! Albert Pascual
  Worldwide Developer Relations.
Topic: Community SubTopic: Apple Developers Tags:
3w
Orphaned XCode simulator disk images
Recently I noticed that although my drive showed ~800Gb of usage, the folders within totally to around ~600Gb (and yes I was including hidden 'dot' files/folders. After some inspection I found that there are a whole set of Disk Media Images, that appear to be related to XCode simulators. Here's an extract from the command line diskutil list command: /dev/disk5 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +17.6 GB disk5 Physical Store disk4s1 1: APFS Volume iOS 26.2 Simulator 17.1 GB disk5s1 /dev/disk6 (disk image): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme +14.2 GB disk6 1: Apple_APFS Container disk7 14.2 GB disk6s1 /dev/disk7 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +14.2 GB disk7 Physical Store disk6s1 1: APFS Volume XROS 26.2 Simulator 13.8 GB disk7s1 /dev/disk8 (disk image): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme +17.2 GB disk8 1: Apple_APFS Container disk9 17.2 GB disk8s1 /dev/disk9 (synthesized)
1
0
80
3w
Apple CDN Returning HTML Instead of JSON for AASA File – Invalid Character '<' Error (Universal Links)
We are experiencing an issue where Apple’s CDN is not fetching the updated apple-app-site-association (AASA) file correctly for our domain. Domain - app.myloft-stage.com AASA File Locations (Both Return Correct JSON): https://app.myloft-stage.com/.well-known/apple-app-site-association https://app.myloft-stage.com/apple-app-site-association Both endpoints: Return HTTP 200 Return valid JSON Content-Type: application/json No redirects Valid SSL certificate JSON validated and correctly formatted Apple CDN URL - https://app-site-association.cdn-apple.com/a/v1/app.myloft-stage.com Error Returned by Apple CDN - {cause:invalid character 'u003c' looking for beginning of value} This error indicates that Apple CDN is receiving HTML content (starting with <) instead of JSON, even though the origin server returns proper JSON. Observations : Direct access to AASA file returns correct JSON. Apple CDN appears to be caching an older or incorrect response. The CDN response does not match the curre
1
0
106
3w
Reply to Apple CDN Returning HTML Instead of JSON for AASA File – Invalid Character '<' Error (Universal Links)
Thanks for the post and sorry that I have missed it, somehow went over all my filters, no excuses for me, thanks for your patience. Doing a simple request returns correct JSON with curl -v https://app.myloft-stage.com/.well-known/apple-app-site-association But with a simple user-agent we get a security issue: curl -I -A AASA-Bot/1.0 https://app.myloft-stage.com/.well-known/apple-app-site-association So the servers can’t not access the file. When you test the URL in your browser or via cURL, you are using a standard User-Agent. When Apple's CDN fetches the file, it uses a specific bot User-Agent and originates from Apple's IP subnets. Check your server/WAF access logs for requests to the /.well-known/apple-app-site-association path. Look for blocked requests or requests returning a 403/Challenge status for the AASA-Bot User-Agent. Whitelist all User-Agent and IPs in your firewall rules for that specific path. When all that is done, everything will start working in a few hours. Albert Pascual

Topic: App & System Services SubTopic: General Tags:
3w
Reply to _MPRemoteCommandEventDispatch crashes on iOS 26.x devices.
Hello @Highmore and @John24, Could you please attach a JSON version of any crash reports (.ips) to your thread? Please see Acquiring crash reports and diagnostic logs for details. Alternatively, you could also open a Bug Report via Feedback Assistant and attach a sysdiagnose log there. Bug Reports allow you to upload artifacts with private information if necessary, and provide you with feedback status updates as progress is made on issues. 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
Topic: Media Technologies SubTopic: Audio Tags:
3w
Reply to iOS 27 feature suggestion
It seems like this is an enhancement request. If you'd like us to consider adding the necessary functionality, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here. If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why? Albert Pascual
  Worldwide Developer Relations.
Topic: Design SubTopic: General Tags:
3w
Reply to XProtect makes app hang when running an AppleScript
Quinn- A user was reporting the crash which I could not reproduce locally. We are both running macOS 26.3 right after it came out (I upgraded to macOS 26 mostly because of this- rounded corners are annoying/wasteful, just saying). Code is on GitHub (https://github.com/com-entonos/Desktop-Icon-Manager) in particular ViewController.swift, line 114. This works for the user. The previous version of that file crashes at start for the user. The way the code crashed I could not explain (it was in a routine it should not be possible to reach at startup) unless there was UserDefaults value that changed. I had the user use 'defaults delete ...' to delete the relevant plist file, so I really don't know what the state of his machine was. If he had 'Automatically restore at start' checked, it would explain it. Default is not checked. He was at an university so who knows what IT does... Good luck.
Topic: Privacy & Security SubTopic: General Tags:
3w
In-App Purchases not loading in production / TestFlight — Previously missing Paid Apps Agreement — App rejected under Guideline 3.1.2
Hello, My app was rejected on iPad (iPad Air 11-inch M3, iPadOS 26.2.1) with two related issues: Guideline 2.1 – Performance – App Completeness “The app exhibited one or more bugs that would negatively impact users. Bug description: the premium subscription cannot be loaded properly.” Guideline 3.1.2 – Business – Payments – Subscriptions “The submission did not include all the required information for apps offering auto-renewable subscriptions.” I am using StoreKit 2 with SubscriptionStoreView to present the auto-renewable subscription. During development: Subscriptions load correctly in the simulator (sandbox). On real devices, I test without a local StoreKit configuration file to fetch products from App Store Connect. The subscription UI (title, duration, price) displays correctly when products are returned. At the time of review, the Paid Apps Agreement was not active. I suspect this may have caused the subscription products to fail loading on the review device. Since then: Paid Apps Agreement is
1
0
228
3w
Reply to MacOS 26.4 beta “Failed to prepare software update”
Thanks for reply, Albert. Interestingly, installation of MacOS 24.6 beta 4 was successful in safe mode on both my Intel iMac and my M1 Max MBP the second time I tried (a day later). Every time I attempted an upgrade, the Mac appeared to re-download the full OS file so not sure a corrupted cached file would explain it; also the bug presented itself on two systens with different processors. I wonder if Apple fixed a bug in the installer overnight. I did post the issue in the Developer Feedback app, and got a request for more information, asking if I was able to install in safe mode (when I had already said that I was not). In any case, all good now. :)
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
3w
Reply to App group broken on Sequoia
Thanks, Quinn! The first problem is that the entitlements validated flag is not set -- here's the relevant text: code signing info = valid refuse invalid pages kill on invalid pages require enforcement allowed mach-o platform dyld And the codesign result shows that the new app group is not present, just the old one: Executable=/Applications/MyApp.app/Contents/PlugIns/EMPFileProvider.appex/Contents/MacOS/EMPFileProvider [Dict] [Key] com.apple.security.app-sandbox [Value] [Bool] true [Key] com.apple.security.network.client [Value] [Bool] true [Key] keychain-access-groups [Value] [Array] [String] XXXXXXXXXX.com.mydomain.MyApp.Shared [Key] com.apple.security.application-groups [Value] [Array] [String] group.com.mydomain.MyApp [Key] com.apple.application-identifier [Value] [String] $(AppIdentifierPrefix)$(PRODUCT_BUNDLE_IDENTIFIER) ...which is odd because the embedded.provisionprofile inside the .appex lists all three: com.apple.security.application-groups group.XXXXXXXXXX.com.mydomain.MyApp group.com.mydomain.My
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
3w
Reply to Unable to install Metal toolchain through Xcode Cloud
removing the script didn't fix for me. the script had been holding it together till now, but something changed recently. Ok — since this sounds like a recent change, it would be helpful for us to get a bug report from you so we can look into this further. It would be helpful if you could detail the exact configuration you've set for this build environment (macOS version and Xcode versions), and a link to a specific build. Once that's filed, please post the FB number here so I can locate your report. — Ed Ford,  DTS Engineer
Replies
Boosts
Views
Activity
3w
Reply to AppIntent search schema opens app as only option
I presume you looked at implementing code like this, from the documentation: @AppIntent(schema: .system.search) struct ExampleSearchIntent: ShowInAppSearchResultsIntent { static var searchScopes: [StringSearchScope] = [.general] var criteria: StringSearchCriteria func perform() async throws -> some IntentResult { let searchString = criteria.term print(Searching for (searchString)) // ... // Code that navigates to your app's search and enters the search string into a search field. // ... return .result() } } The key type here, ShowInAppSearchResultsIntent, is a clear indication of the intended behavior of showing search results inside of the app. Also, testing your intent in the Shortcuts app is an excellent way to test. Do I need to do AppIntents without the schema and wait until there is a search schema that does not open the app, or should I be using a different schema? What am I missing? It's worth considering the larger picture of what someone does with your intent after the search — in many cases, the
Replies
Boosts
Views
Activity
3w
Reply to New project with new AppIntent throws build error
To see what happened here, I used Xcode 26.4 beta 3 to create a new multi-platform app. I added a new file, added an import statement for App Intents, and then copied in the snippet of getting started code from the documentation. Indeed, this fails to compile. That new project's default build setting configuration is: Swift Langage Version: Swift 5 Approachable Concurrency: Yes Default Actor Isolation: MainActor To allow this to compile, I change the Default Actor Isolation build setting to nonisolated instead. This is worth a bug report — please use Feedback Assistant to report it, and post the FB number here so I can follow up on it. — Ed Ford,  DTS Engineer
Replies
Boosts
Views
Activity
3w
Reply to How to upload large videos with PHAssetResourceUploadJobChangeRequest?
Thanks for the post. I'm not an expert on that API, not even close to that, so I'm inviting other engineers to jump into this thread and provide their options on the 3 questions. This is a PhotoKit upload asset for background process. As noted the extension processes uploads only while enabled. Disable the extension when a person signs out or disables cloud sync in your app. https://developer.apple.com/documentation/PhotoKit/uploading-asset-resources-in-the-background The PHAssetResourceUploadJobChangeRequest.createJob(destination:resource:) API is designed to hand off the entire upload process to a system daemon. Because the system daemon manages the network connection out-of-process (to preserve battery and allow the extension to be suspended or terminated), it imposes specific architectural constraints on how your backend must receive the data. Here is the limitations are documented https://developer.apple.com/documentation/photos/phphotoserror-swift.struct/limitexceeded Are you hitting any? I believe the
Replies
Boosts
Views
Activity
3w
Reply to Clarification on clonefile / copyfile support of clone directories?
The ‘strongly discouraged’ guidance only applies to directly using the clonefile function on directories, because it ties up the filesystem in ways that can be detrimental to the overall system health. On the other hand cloning directories recursively with copyfile is perfectly fine, because copyfile internally only calls clonefile on each file separately. Hope that helps clarify things.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
3w
Reply to MacOS 26.4 beta “Failed to prepare software update”
Thanks for the post. This is extremely interesting, but I'm sure is frustrating as well. Are you able to complete the installation if you boot to safe mode? It seems it is almost certainly a corrupted OTA (Over-The-Air) delta update file cached on your system? The process terminates with Failed to prepare the software update or An error occurred while downloading the selected updates.”? When a beta update fails halfway or downloads a corrupted delta package, macOS will continuously try to use that broken file every time you hit Update, resulting in the same error. Can I ask you both to please create a bug for this issue? 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? Thanks!! Albert Pascual
  Worldwide Developer Relations.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
3w
Orphaned XCode simulator disk images
Recently I noticed that although my drive showed ~800Gb of usage, the folders within totally to around ~600Gb (and yes I was including hidden 'dot' files/folders. After some inspection I found that there are a whole set of Disk Media Images, that appear to be related to XCode simulators. Here's an extract from the command line diskutil list command: /dev/disk5 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +17.6 GB disk5 Physical Store disk4s1 1: APFS Volume iOS 26.2 Simulator 17.1 GB disk5s1 /dev/disk6 (disk image): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme +14.2 GB disk6 1: Apple_APFS Container disk7 14.2 GB disk6s1 /dev/disk7 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +14.2 GB disk7 Physical Store disk6s1 1: APFS Volume XROS 26.2 Simulator 13.8 GB disk7s1 /dev/disk8 (disk image): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme +17.2 GB disk8 1: Apple_APFS Container disk9 17.2 GB disk8s1 /dev/disk9 (synthesized)
Replies
1
Boosts
0
Views
80
Activity
3w
Apple CDN Returning HTML Instead of JSON for AASA File – Invalid Character '<' Error (Universal Links)
We are experiencing an issue where Apple’s CDN is not fetching the updated apple-app-site-association (AASA) file correctly for our domain. Domain - app.myloft-stage.com AASA File Locations (Both Return Correct JSON): https://app.myloft-stage.com/.well-known/apple-app-site-association https://app.myloft-stage.com/apple-app-site-association Both endpoints: Return HTTP 200 Return valid JSON Content-Type: application/json No redirects Valid SSL certificate JSON validated and correctly formatted Apple CDN URL - https://app-site-association.cdn-apple.com/a/v1/app.myloft-stage.com Error Returned by Apple CDN - {cause:invalid character 'u003c' looking for beginning of value} This error indicates that Apple CDN is receiving HTML content (starting with <) instead of JSON, even though the origin server returns proper JSON. Observations : Direct access to AASA file returns correct JSON. Apple CDN appears to be caching an older or incorrect response. The CDN response does not match the curre
Replies
1
Boosts
0
Views
106
Activity
3w
Reply to Apple CDN Returning HTML Instead of JSON for AASA File – Invalid Character '<' Error (Universal Links)
Thanks for the post and sorry that I have missed it, somehow went over all my filters, no excuses for me, thanks for your patience. Doing a simple request returns correct JSON with curl -v https://app.myloft-stage.com/.well-known/apple-app-site-association But with a simple user-agent we get a security issue: curl -I -A AASA-Bot/1.0 https://app.myloft-stage.com/.well-known/apple-app-site-association So the servers can’t not access the file. When you test the URL in your browser or via cURL, you are using a standard User-Agent. When Apple's CDN fetches the file, it uses a specific bot User-Agent and originates from Apple's IP subnets. Check your server/WAF access logs for requests to the /.well-known/apple-app-site-association path. Look for blocked requests or requests returning a 403/Challenge status for the AASA-Bot User-Agent. Whitelist all User-Agent and IPs in your firewall rules for that specific path. When all that is done, everything will start working in a few hours. Albert Pascual

Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
3w
Reply to _MPRemoteCommandEventDispatch crashes on iOS 26.x devices.
Hello @Highmore and @John24, Could you please attach a JSON version of any crash reports (.ips) to your thread? Please see Acquiring crash reports and diagnostic logs for details. Alternatively, you could also open a Bug Report via Feedback Assistant and attach a sysdiagnose log there. Bug Reports allow you to upload artifacts with private information if necessary, and provide you with feedback status updates as progress is made on issues. 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
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
3w
Reply to iOS 27 feature suggestion
It seems like this is an enhancement request. If you'd like us to consider adding the necessary functionality, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here. If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why? Albert Pascual
  Worldwide Developer Relations.
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
3w
Reply to XProtect makes app hang when running an AppleScript
Quinn- A user was reporting the crash which I could not reproduce locally. We are both running macOS 26.3 right after it came out (I upgraded to macOS 26 mostly because of this- rounded corners are annoying/wasteful, just saying). Code is on GitHub (https://github.com/com-entonos/Desktop-Icon-Manager) in particular ViewController.swift, line 114. This works for the user. The previous version of that file crashes at start for the user. The way the code crashed I could not explain (it was in a routine it should not be possible to reach at startup) unless there was UserDefaults value that changed. I had the user use 'defaults delete ...' to delete the relevant plist file, so I really don't know what the state of his machine was. If he had 'Automatically restore at start' checked, it would explain it. Default is not checked. He was at an university so who knows what IT does... Good luck.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
3w
In-App Purchases not loading in production / TestFlight — Previously missing Paid Apps Agreement — App rejected under Guideline 3.1.2
Hello, My app was rejected on iPad (iPad Air 11-inch M3, iPadOS 26.2.1) with two related issues: Guideline 2.1 – Performance – App Completeness “The app exhibited one or more bugs that would negatively impact users. Bug description: the premium subscription cannot be loaded properly.” Guideline 3.1.2 – Business – Payments – Subscriptions “The submission did not include all the required information for apps offering auto-renewable subscriptions.” I am using StoreKit 2 with SubscriptionStoreView to present the auto-renewable subscription. During development: Subscriptions load correctly in the simulator (sandbox). On real devices, I test without a local StoreKit configuration file to fetch products from App Store Connect. The subscription UI (title, duration, price) displays correctly when products are returned. At the time of review, the Paid Apps Agreement was not active. I suspect this may have caused the subscription products to fail loading on the review device. Since then: Paid Apps Agreement is
Replies
1
Boosts
0
Views
228
Activity
3w