Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,492 results found

Post

Replies

Boosts

Views

Activity

Reply to Activating a Container App from a Custom Keyboard Extension to Enable Continuous Voice Input While Preserving the Original Typing Context
@DTS Engineer thanks for the info! On #2, calling open(_:options:completionHandler:) when Allow Full Access is not turned on results in an error (only as of iOS 26, it worked in iOS 18): unable to make sandbox extension: 2 Failed to open URL : Error Domain=NSOSStatusErrorDomain Code=-54 (null) UserInfo={_LSFile=LSOpenOperation.mm, _LSLine=835, _LSFunction=_LSIsRequestAllowed} Is there a solution to open the app without forcing the user to turn on full access before they can use the keyboard?
Topic: App & System Services SubTopic: General Tags:
5d
Reply to Converting between observation methods
Thank you for your post. I find your question quite intriguing, as SwiftUI observable variables are undoubtedly a powerful feature we all use. However, I am not the best developer to provide you examples as I don't use many third parties anymore based on my job. I can provide an example of how I handle third-party libraries that conform to ObservableObject, or at least I did. There is no definitive answer from me, but developers must always adapt to the challenges they encounter. // ObservableObject wrapper for MyObservableType class ObservableTypeAdapter: ObservableObject { @Published private var myObservable: MyObservableType When dealing with imported code that employs a different observation technique than the one you are utilizing in your SwiftUI project, you can bridge the gap between the two by employing certain adaptation techniques. If you have an existing type and require it to be used in a context that expects the macro format, you can create a wrapper that conforms to the expecte
Topic: UI Frameworks SubTopic: SwiftUI Tags:
5d
Reply to Unable to download iOS simulator runtime 26.x on Xcode
@DTS Engineer Thank you for the reply, I have tried resetting my router, restarting my Mac, and also tried different networks. But it's the same issue. I don't have firewall or Anti virus installed and still same error. Xcode is fully updated (latest) MacOS is Tahoe 26.1 (latest) As you can see, using cli still throws similar error ➜ ~ xcodebuild -downloadPlatform iOS Finding content... Automatically resolved architecture variant for platform iOS as 'arm64'. 2026-01-07 22:09:14.742 xcodebuild[71859:6206960] DVTDownloadable: Download Failed. Downloadable: { architectures = ( arm64 ); authentication = none; category = simulator; contentType = cryptexDiskImage; dictionaryVersion = 2; downloadMethod = mobileAsset; fileSize = 8388683973; identifier = com.apple.dmg.iPhoneSimulatorSDK26_2_arm64; isInternalContent = 0; isUserInitiated = 1; name = iOS 26.2 Simulator (23C54); patchableFrom = ( ); platform = com.apple.platform.iphoneos; simulatorVersion = { buildUpdate = 23C54; version = 26.2; }; version = 26.2
5d
Reply to New to VisionOS Development
Hey @dev52, I'd recommend that you get started with various pathways that you find reverent to your journey. In particular you might want to look at the Design, visionOS, and Enterprise pathways. These pathways are easy-to-navigate collections of videos, documentation, and tools. Additionally you might want to watch some prior WWDC session videos available here. There is a lot of documentation, sample code, and videos to uncover. Let me know if you have any questions. If you have a specific issue that you need assistance with, please open up a new thread. Thanks, Michael
Topic: Spatial Computing SubTopic: General Tags:
5d
Reply to BUG: Toolbar Rendering Bug -- ToolbarItem Duplication when Back Button Hidden
Hello extraman, Thank you for reporting this issue. Can you please provide the code for the view that the .toolbar modifier is attached to, that reproduces this issue? Or do you have a small test project demonstrating it? If so, please share a link to your test project. This will help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project. Thank you for your patience, Richard Yeh  Developer Technical Support
Topic: UI Frameworks SubTopic: SwiftUI Tags:
5d
Reply to Text with Liquid Glass effect
You'd need to generate a set of Path instances from the characters in your text. This is only really suitable for small amounts, e.g. the Welcome animation or clock digits, etc., because it's not the most performant thing. Also, bigger text is better. Lastly, remember to wrap it all in a GlassEffectContainer to avoid each character's glass being rendered in a discrete pass. Actually lastly: you'll need to adjust the location of the text using .offset(x:y:) or by tweaking the path creation to include better offset translations. This is my quick & dirty attempt. Since .glassEffect() is designed similarly to a fill API, you need something non-empty to 'fill' with your text. Color.clear gets elided by the rendering engine, but what I've found is that Color.white.opacity(0) works to cause an actual (invisible) view to render and take up space during layout calculations. And now: the code! This was written for tvOS, so it uses BIG fonts and offsets to write big numbers. I had it draw a counter that inc
Topic: UI Frameworks SubTopic: SwiftUI Tags:
5d
Reply to fileImporter issue in visionOS with iPhone app (that can run on visionOS)
Hey @UXUiOS, This seems like a bug, but I'd like the relevant teams to take a look. Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. I'd greatly appreciate it if you could open a bug report, include a video of the issue and sample code that replicates the problem, and post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report. Thanks, Michael
Topic: Spatial Computing SubTopic: General Tags:
5d
Text filtering: behavior of current message is affected by behavior of past message from same origin
If there is this situation: A text message is sent from a sender and gets classified as junk (by a text filtering extension) with the result that it gets send to the spam folder as expected. A text message with different content is sent from the same sender and gets classified as allowed, however it also gets sent to the spam folder. If the above is repeated but after step 1 the message is deleted, then in step 2 the message doesn't get sent to the spam folder. So the presence of the message from step 1 being in the spam folder is having an effect on the behavior of step 2. Expected beahavour (if so, why?), or a defect?
0
0
28
5d
Reply to DesktopServicesHelper appears to delete or unlink the source file before the ESF auth event deadline is reached, rather than waiting for the full deadline window.
We are seeing this behaviour even with mounted disk images. We will test with AFP server also. We are not seeing this behaviour when we copy using cp or mv terminal commands or any other application. It’s certainly due to some changes in DesktopServicesHelper on macOS Tahoe which triggers file deletion if it takes more than 5 seconds to transfer. We have tried with less than 5 seconds like 4.5 sec or 4.9 seconds and it works as expected. Interesting. I spent some time looking at our code today and, while I wasn't able to find the specific change, there were a number of operation timeouts added to the copy architecture as part of resolving a number of hangs and other issues. None of them exactly match what you're describing, but the Finder's copy implementation is sufficiently complex that it's likely that I simply missed something. A few different comments: I should have asked this earlier, but what's the auth event you’re actually blocking and are you sure it's something you SHOULD be blocking? Nota
Topic: App & System Services SubTopic: Core OS Tags:
5d
StoreKit does not return any subscriptions on any device (approved IAPs, production app)
Hello, I’m reaching out after several days of investigation, as I’ve exhausted all standard troubleshooting steps and would truly appreciate guidance from Apple engineers or experienced developers. I am experiencing a persistent issue where StoreKit does not return any subscription products on any device, despite all subscriptions being fully approved and correctly configured in App Store Connect. What is happening • Auto-renewable subscriptions exist and are approved in App Store Connect • The app is installed from the production App Store (not TestFlight, not sandbox) • initConnection / StoreKit initialization succeeds • Requests for products/subscriptions return an empty result (no errors, no IDs) • In the UI, prices are shown as “Unavailable” • This behavior is 100% reproducible on every device, every Apple ID, every network Important detail This issue is not device-specific, account-specific, or environment-specific: • Tested on multiple iPhones • Tested with different Apple IDs • Tested on different net
Topic: UI Frameworks SubTopic: General
4
0
105
5d
Reply to Building a Full Space app that enables sharing a visionOS experience with nearby users.
Hey @sadaotokuyama, It is technically possible to implement the described experience, however, AVPlaybackCoordinator synchronizes the timing of a single AVPlayer object across devices. In your use case you will need to perform the synchronization across multiple AVPlayer objects yourself. Review Synchronizing data during a SharePlay activity to understand how to accomplish this. Consider sending synchronization timing messages frequently as unreliable so that each user sees the same content, however, when a video starts or stops playing due to user interaction use the reliable delivery mode. The supportsGroupImmersiveSpace flag ensures entities with identical transforms appear in the same relative location for all participants, including both nearby and remote participants. For more information please review Configure your visionOS app for sharing with people nearby. Nearby participants appear naturally via passthrough. Nearby participants do not need to register a spatial Persona. You can share with someone
Topic: Spatial Computing SubTopic: General Tags:
5d
Reply to Activating a Container App from a Custom Keyboard Extension to Enable Continuous Voice Input While Preserving the Original Typing Context
I see the community bringing this up from time to time, and so would like to take this chance to hopefully get it sorted. For the clarify of the discussion, I'd split this question into three parts: Does App Review guideline allow a keyboard extension to launch its container app? If yes, is there any API to do so? Is there any API for the container app to bring the host app back to the foreground? The first part is about App Review policy, and so only the App Review team has the final answer, but looking into the App Review Guideline, you can see the following related to keyboard extensions: 4.4.1 Keyboard extensions have some additional rules. ... They must not: Launch other apps besides Settings; Here the guideline uses other apps, rather than simply apps or any app. I believe that means to say that launching the container app is allowed. To make sure my understanding is correct, I've reached out my App Review colleague, and they've confirmed that launching the container app from a keyboard extension (to do
Topic: App & System Services SubTopic: General Tags:
5d
Reply to init(), .onAppear and .onChange(of: scenePhase) Not Working when Opening App After Being Quitted
Below is compilable code: struct ContentView: View { var body: some View { Text(Text) .onAppear() { print(test) } } } test is printed in the console after a new build, and when I go to the Home Screen and return to the app, but if I swipe up from the bottom, and then swipe up from the menu of apps to close the app, it does not print upon opening the app again. What would be an example of code that does run under the circumstance of fully quitting the app and opening it again?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
5d
NSPathControl -setURL: crash on macOS Tahoe
I received the following crash: Thread 0 Crashed: libsystem_kernel.dylib __pthread_kill + 8 libsystem_pthread.dylib pthread_kill + 296 (pthread.c:1721) libsystem_c.dylib abort + 124 (abort.c:122) libc++abi.dylib __abort_message + 132 (abort_message.cpp:66) libc++abi.dylib demangling_terminate_handler() + 304 (cxa_default_handlers.cpp:76) libobjc.A.dylib _objc_terminate() + 156 (objc-exception.mm:496) libc++abi.dylib std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:59) libc++abi.dylib __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 88 (cxa_exception.cpp:152) libc++abi.dylib __cxa_throw + 92 (cxa_exception.cpp:299) libobjc.A.dylib objc_exception_throw + 448 (objc-exception.mm:385) Foundation -[NSConcreteMutableAttributedString initWithString:] + 268 (NSAttributedString.m:1049) CloudDocs -[BRCloudPathComponentDisplayMetadata initWithDisplayName:suffix:url:icon:] + 180 (BRCloudPathComponentDisplayMetadata.m:75) CloudDocs -[NSURL(BRCloudPathComponent) br_pathComponentDisplayMetadataWithOptions:]_block_
2
0
30
5d