Search results for

file uri scheme

79,855 results found

Post

Replies

Boosts

Views

Activity

Reply to Standalone Watch App Woes
More Context: Xcode 26.1.1 New standalone watchOS project - default settings. There is a project with two targets - an iOS target and a watchOS target. The iOS target is at default - no code added or taken away all certificates and profiles point to my distribution certificate and provisioning. The bundle_id's seem good. The Project and ios share a bundle id of com.myteam.myapp The watchOS bundle id is com.myteam.myapp.watchkitapp There are identifiers for both in App Store Connect. The app compiles and runs on the simulator with no errors, all sizes, all languages. I do not have a watch connected to the account, but the code has been tested and I can't imagine that the lack of a physical device is causing the problem The scheme has the 3 archs in top to botton project, ios, watchOS - all marked to do everything they can and everything I see is marked to release. This is my first swift program and xcode experience, so I am confident that the error is my understanding of the workflow. thank you anyone
Nov ’25
Reply to Xcode and Reading documents from a URL connection.
[quote='866620022, Apple_Fox, /thread/807599?answerId=866620022#866620022, /profile/Apple_Fox'] I do use URLsession. [/quote] OK. Then let’s use this thread to focus on the networking side of things. Once you’ve got that working, you can start a new thread with an appropriate subtopic and tags for your next step. URLSession is a very flexible API, so there are numerous ways you might use it to download a file. However, let’s explore a simple form. Imagine you have a button like this: Button(Download) { Task { await runDownload() } } That calls the runDownload() function, which looks like this: func runDownload() async { do { print(will run download) let url = URL(string: https://example.com)! let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: 60.0) let (downloadURL, response) = try await URLSession.shared.download(for: request) let httpResponse = response as! HTTPURLResponse print(did run download, status: (httpResponse.statusCode), downloadURL: (downloadU
Nov ’25
Reply to Xcode 26 Crashes on Launching App After macOS + Xcode Update (M3 Mac)
I update to the latest Xcode : Version 26.1.1 (17B100) Toolchain: Swift 6.2 Release 2025-09-11 (a) and MacOS to the latest : 26.1 (25B78) and still have the same crash problem, I give the crash report to an AI to summarize it : Primary Issue Assertion Failure in Scheme Execution: The crash occurred during scheme execution operations, specifically when Xcode was trying to create an execution operation for running a scheme. Key Technical Details Crash Location Thread 0 (main thread) crashed with SIGABRT (Abort trap: 6) Trigger: Assertion failure in IDEScheme class Specific Method: -[IDEScheme _executionOperationForSchemeOperationParameters:build:onlyBuild:buildParameters:title:buildLog:dontActuallyRunCommands:restorePersistedBuildResults:deviceAvailableChecker:error:actionCallbackBlock:] Crash Sequence Assertion triggered in IDEScheme operations Assertion handler called abort() Main thread terminated with abort signal The crash appears to be an internal Xcode assertion triggered by in
Nov ’25
Reply to Activating application from Terminal occasionally fails on macOS 26
[quote='807805021, 1024jp, /thread/807805, /profile/1024jp'] I’ve already filed this issue: FB21087054 [/quote] Thanks. That’s definitely the best path forward for this. It’s hard to think of a way to work around given that a) none of your code is running, and b) it affects system apps. This is likely fallout from a general effort to stop apps stealing focus from other apps. Check out the yieldActivation(toApplicationWithBundleIdentifier:) and other related method for more background on that. However, Terminal is the frontmost app, and it should be the responsible code for any command-line tools that you run, so I would expect this to work. And it does work most of the time, hence my comment that a bug report was the best path here. If you’re able to reproduce not-returning case, a sysdiagnose log from that might yield a useful insight. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Nov ’25
App intent with parameter launches app before taking user input
I built a couple of app intents for macOS, which generally work great. However, I'm struggling with configuring an app intent that takes a parameter, so that it doesn't require the app to launch before presenting people with the list of options. If the app is running and I run the intent in Spotlight, I can see the message defined by the intent's parameterSummary and I can select a parameter from the list of entities. If the app is not running, it is launched first and only then the intent message fully populates in Spotlight and allows parameter selection. What I've tried: Support background or deferred mode in the intent. Conformed the entities to IndexedEntity. Conformed the entity query to EnumerableEntityQuery, implementing suggestedEntities and allEntities. Conformed the entity query to EntityStringQuery. Donated the intent to Spotlight on app launch. Donated the entities to Spotlight on app launch, both using indexSearchableItems and indexAppEntities. Not sure if both are required or if the latter is j
0
0
75
Nov ’25
Question About iOS Link Association Behavior and How to Reset App-Link Preferences
Hello, I would like to clarify how link association and app-opening preferences work in iOS, specifically when a user opens a URL in a browser that can be handled by an installed application. I have noticed the following behavior: When a user taps a URL that can be opened by an app, iOS sometimes asks whether to open the link in the app or continue in the browser. After choosing an option once (for example, Open in App or Stay in Browser), it seems that this preference becomes persistent. Even after deleting the application and reinstalling it, the browser (Safari or third-party browsers) sometimes continues to open the link directly in the browser without asking the user again. In some cases, it appears impossible to reset or clear this association, and the user is not prompted again to choose how the link should be opened. My questions are: How exactly does iOS store link-handling preferences between apps and browsers? Are these preferences saved on the system level, inside Safari, or associated with the ap
2
0
212
Nov ’25
General iOS/iPadOS 26 decoding bug: MP4 unexpectedly hangs, video image frozen, audio goes on
Playback of any kind of HD H.264 MP4 files (720p, 50fps) could randomly cause a stalled image. Playback does not stop in such a case. Image is frozen/stalled. Audio goes on. Timeline goes on. By tapping play/pause or scrubbing in the timeline, the playback recovers. It could also happen, if you are scrubbing in the timeline, especially to areas not loaded already (progressive MP4 download). Behaviour is always the same: image is stalled/frozen, audio goes on. To reproduce: use example project https://developer.apple.com/documentation/AVKit/playing-video-content-in-a-standard-user-interface Example file: https://www.keepinmind.info/test.mp4
0
0
163
Nov ’25
Activating application from Terminal occasionally fails on macOS 26
On macOS Tahoe 26 activating GUI apps from command-line often fails. It launches the app but not brings to the foreground as expected. For example, running the following commands in Terminal is expected to launch Pages and bring it to the foreground. open /Applications/Pages.app or osascript -e `tell application Pages to activate` Moreover, they sometimes not return in Terminal. These commands worked as expected until macOS 15 but no more in macOS 26. The tricky part is that this failure doesn't happen 100% of the time; it occurs randomly. However, since multiple users of my app have reported the same symptoms, and I can reproduce it not only with my app but also with apps bundled to macOS, I don't believe this is an issue specific to my environment alone. I’ve already filed this issue: FB21087054 Open version: https://github.com/1024jp/AppleFeedback/issues/87 However, I’d like to know if any workaround exists or my understanding is wrong, especially for case with osascript.
3
0
138
Nov ’25
DEXT (IOUserSCSIParallelInterfaceController): Direct I/O Succeeds, but Buffered I/O Fails with Data Corruption on Large File Copies
Hi all, We are migrating a SCSI HBA driver from KEXT to DriverKit (DEXT), with our DEXT inheriting from IOUserSCSIParallelInterfaceController. We've encountered a data corruption issue that is reliably reproducible under specific conditions and are hoping for some assistance from the community. Hardware and Driver Configuration: Controller: LSI 3108 DEXT Configuration: We are reporting our hardware limitations to the framework via the UserReportHBAConstraints function, with the following key settings: // UserReportHBAConstraints... addConstraint(kIOMaximumSegmentAddressableBitCountKey, 0x20); // 32-bit addConstraint(kIOMaximumSegmentCountWriteKey, 129); addConstraint(kIOMaximumByteCountWriteKey, 0x80000); // 512KB Observed Behavior: Direct I/O vs. Buffered I/O We've observed that the I/O behavior differs drastically depending on whether it goes through the system file cache: 1. Direct I/O (Bypassing System Cache) -> 100% Successful When we use fio with the direct=1 flag, our read/write and data ve
13
0
455
Nov ’25
Reply to VisionOS Enterprise API Not Working
Thank you for the response. I've completed all the requested debugging steps nothing worked. I think it is an issue on your system where the license has not been activated yet. Steps Completed: App reinstallation: I deleted the app, reinstalled it, and ran it. The app successfully prompts for and receives camera access permission. Debug print statements: I added print statements to track execution flow: In CameraSessionManager.runCameraFrameProvider: Camera authorization is GRANTED Provider STARTS successfully Provider state remains initialized (never transitions to running) In CameraSessionManager.observeCameraFrameUpdates: No camera formats available from CameraVideoFormat.supportedVideoFormats() Code never reaches leftCameraFeed.update because no formats are returned Current setup verified: Enterprise entitlement com.apple.developer.arkit.main-camera-access.allow is present in provisioning profile Enterprise.license file (can share ID via email if you require it) is embedded in app bundle under Co
Topic: Spatial Computing SubTopic: ARKit Tags:
Nov ’25
Reply to VisionOS Enterprise API Not Working
Hi @vision_pro_developer2000 Thanks for bringing this to our attention. While I investigate, I'd appreciate it if you can do some or all of the following: Delete the app, reinstall it, then run it and tell me if the app prompts you for permission to access the main camera. Add some print statements to the app to isolate the point of failure. Tell me how far you get. Specifically, in CameraSessionManager.runCameraFrameProvider determine if the provider starts. In CameraSessionManager.observeCameraFrameUpdates determine if the code reaches leftCameraFeed.update. File a bug report using Feedback Assistant, attach a sysdiagnose, and post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report.
Topic: Spatial Computing SubTopic: ARKit Tags:
Nov ’25
Reply to macOS 15 (Sequoia): Endpoint Security client runs by hand, but LaunchDaemon fails with TCC “Full Disk Access” denial on unmanaged Macs
We noticed that com.fidelisendpoint.fidelisevents has an auth_value of 0 and an auth_reason of 5. On any system that has the daemon working, the auth_value is 2 and the auth_reason is 4. Is this to be expected because the toggle isn't working? Yes, that's expected. Laying out the values: auth_value: 0-> Denied 2-> Allowed auth_reason: 4-> the system set this (this was probably because it was done with authorization) 5-> the service’s default policy (I think) Those machines that allow the toggle to stay on do not see this error. Could this be the problem that is causing the toggle to not stay on? Not on its own, but that seems like an odd error. A few points: Have you confirmed that you're NOT seeing this on the system machine where everything works? The error looks concerning, but lots of errors that look bad are actually just noise. When you find an error like this, the thing to look at is what was logged before and after that point, both to see how the system reacted and to look for an underlyin
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’25