Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,595 results found

Post

Replies

Boosts

Views

Activity

Reply to Virtual Machine UDID Changes in macOS 15: Looking for Guidance on Development Workflow
It’s hard to say exactly what’s going on without knowing what UTM is doing at the API level. You wrote: [quote='871836022, ArthurValiev, /thread/810932?answerId=871836022#871836022, /profile/ArthurValiev'] I suspect that the UTM app is just … [/quote] Yeah, I tend to agree, but it’d be nice to be sure. [quote='871836022, ArthurValiev, /thread/810932?answerId=871836022#871836022, /profile/ArthurValiev'] make sure we use appropriate approach to be aligned with the expectations [/quote] I think I can help with that (-: macOS guests use three different provisioning UDID formats: Type | Example ---- | ------- Intel | 564DB953-09B7-B72B-09CC-364469A86761 Apple silicon, old | 0000FE00-5275292241EAAFFD Apple silicon, new | 16e55725fdced2252674f0fb03c22d44d0b63b35 My focus here is that last row. This is what you get when you create a macOS 15 (or later) guest on a macOS 15 (or later) host, and it’s what allows the guest to sign in to an Apple Account. This UDID is tied to the Mac on which it was created. Consider this
Topic: App & System Services SubTopic: Core OS Tags:
3d
Navigation title is not visible in root of navigation stack of UITabBarController using UITab layout on iPad
Description Title of the view controller is not displayed for the 1st view controller in navigation stack. Is there a way to show it? Main problem is that selected tab is a UITabGroup and there's no way to understand which child of it is currently selected without opening the sidebar or guessing by the content. Human Interface Guidelines In the guidelines there are examples with title visible on the iPad in similar case: https://developer.apple.com/design/human-interface-guidelines/tab-bars Code import UIKit import SwiftUI struct TestView: View { var tab: UITab? let id = UUID() var body: some View { ScrollView { HStack { Spacer() VStack { Text(tab?.title ?? id.uuidString) } Spacer() } .frame(height: 1000) .background(.red) .onTapGesture { tab?.viewController?.navigationController?.pushViewController( TestViewController(nil), animated: true ) } } } } class TestViewController: UIHostingController { let _tab: UITab? init(_ tab: UITab?) { self._tab = tab super.init(rootView: TestView(tab: _tab)) } @MainA
Topic: UI Frameworks SubTopic: UIKit
4
0
243
2d
Reply to Choppy minimized search bar animation
Dear @DTS Engineer, thank you very much for your continued effort on this matter! Truly appreciate it! I use Xcode Version 26.2 (17C52) and experience this choppy animation in both SwiftUI Canvas and an actual device running iOS26.2. At the same time, I would like to point out that the animation indeed runs smoothly when the TabView is commented out / not used at all (as perhaps in your code). It does not, however, when the TabView is used (as in my initial code). #Preview { if #available(iOS 26, *) { TabView { // Does this cause a problem? Tab { SwiftUIView() } label: { Label(Test, systemImage: calendar) } } } else { // Fallback on earlier versions } } Hopefully this helps to narrow down the source of the issue!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
3d
Reply to Multi-machine Code Signing
[quote='871837022, treedweller, /thread/812229?answerId=871837022#871837022, /profile/treedweller'] It's rather something about rebooting the machine that makes the magic work. [/quote] OK, that definitely rings some bells. Consider the issue described in Updating Mac Software. If you’re copying code around with tools that overwrite the code file rather than replace it, you can run into all sorts of weird problems like this. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
3d
Multi-machine Code Signing
I have two Macs, desktop and laptop. Since they both belong to me, they both sign in with the same Apple account. I find that if I sign and notarize an app on one, the other must be powered off. Otherwise, notarization will fail. Is this intentional? If so, what is the rationale? Is there a way to fix or avoid it? Both systems run macOS Tahoe with the latest updates. Both are set up the same way for signing using the same certificates. The build process is identical on each.
5
0
567
3d
Reply to Provisioning profile missing entitlement
[quote='871802022, roanutil, /thread/811382?answerId=871802022#871802022, /profile/roanutil'] I've created a dummy test app with the same setup as the real one and signing works. [/quote] Cool. [quote='871802022, roanutil, /thread/811382?answerId=871802022#871802022, /profile/roanutil'] after deleting derived data and all provisioning profiles, the real app still cannot sign. [/quote] Bummer. So my next suggestion is that you create a new test project but this time choose the same bundle ID as your main app. If that works, there’s something about your main app’s project setup that’s causing the problem. OTOH, if it fails in the same way, it confirms that this is specific to the code signing setup. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
3d
Regression: QuickLookAR shares USDZ file instead of source URL on iOS 26
On iOS 26, QuickLookAR (ARQuickLookPreviewItem) shares the actual .usdz file via the system Share Sheet instead of the original website URL. This is a regression from iOS 17–18, where sharing correctly preserved and sent only the source URL. Repro steps: 1. Open a web-hosted USDZ model in QuickLookAR (Safari). 2. Tap Share. 3. Share via any messenger. 4. The full .usdz file is sent. Expected: Share Sheet sends only the original URL. Actual: Share Sheet sends the USDZ file. Impact: Uncontrolled distribution of proprietary 3D assets. Critical IP / data leak. Blocks production AR deployments relying on QuickLook. Environment: iOS 26.0–26.1, iPhone 14 / 15. Works as expected on iOS 17–18. Test case: https://admixreality.com/ios26/
2
0
525
2d
Reply to Unable to run embedded binary due to quarantine
Let’s start with the trivial: [quote='812323021, charlieMonroe, /thread/812323, /profile/charlieMonroe'] MyApp.app/Contents/Resources/mytool [/quote] Contents/Resources is not the right place for a helper tool. Rather, I recommend Contents/MacOS. See Placing content in a bundle. Also check out Embedding a command-line tool in a sandboxed app for general background. However, none of that is the cause of the really issue here. Rather, consider the error your got: exec of /Users/charliemonroe/Library/Containers/com.charliemonroe.MyApp/Data/tmp/par-636861726c69656d6f6e726f65/cache-9c78515c29320789b5a543075f2fa0f8072735ae/mytool denied …` Note the path. It’s not Contents/Resources/mytool but rather something in your app’s temporary directory. I suspect that the wrapper applied by the pp tool is actually unpacking code into the temporary directory and then running that. This won’t work because sandboxed apps aren’t allow to create and execute code. Specifically, when a sandbox program creates a fi
Topic: Code Signing SubTopic: General Tags:
3d
CXCallDirectoryProvider – Numbers added but blocking not working
Hi all, I'm working on a Call Directory Extension using CXCallDirectoryExtensionContext. I want to add a list of numbers to be blocked. Here's the function I use: override func beginRequest(with context: CXCallDirectoryExtensionContext) { context.delegate = self let blockedNumbers = loadNumberEntries(forKey: blockedKey) let identifiedNumbers = loadNumberEntries(forKey: identifiedKey) addAllBlocking(blockedNumbers, to: context) addAllIdentification(identifiedNumbers, to: context) context.completeRequest() } private func addAllBlocking(_ entries: [NumberEntry], to context: CXCallDirectoryExtensionContext) { let numbers: [Int64] = entries.compactMap { Int64($0.countryCode + $0.phone) }.sorted() for number in numbers { context.addBlockingEntry(withNextSequentialPhoneNumber: number) print(# Added blocking entry: (number)) } } When I run this, I see in the console: # Added blocking entry: (*my number with country code*) So it seems the number is added correctly. However, in practice, the number is not bloc
1
0
861
3d
Reply to JavaScript/Swift Interoperability
[quote='871830022, matthewruzzi, /thread/812360?answerId=871830022#871830022, /profile/matthewruzzi'] Are there any other places that I should post this to get more discussion? [/quote] I can think of least two: JavaScriptCore is open source as part of WebKit project, and they have their own community discussions. Likewise, Swift is open source and has Swift Forums. The best approach kinda depends on who you want to do the work. If you just want Apple to fix something, Feedback Assistant is your best option [1]. But if you want to engage with other developers then things get more nuanced, especially with regards to where the changes land, which is a big factor in what work gets done and who does it. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] For more about that process, see Bug Reporting: How and Why?. And if you do file this in Feedback Assistant, please post your bug number, just for the record.
Topic: Programming Languages SubTopic: Swift Tags:
3d
iOS 26 Network Framework AWDL not working
Hello, I have an app that is using iOS 26 Network Framework APIs. It is using QUIC, TLS 1.3 and Bonjour. For TLS I am using a PKCS#12 identity. All works well and as expected if the devices (iPhone with no cellular, iPhone with cellular, and iPad no cellular) are all on the same wifi network. If I turn off my router (ie no more wifi network) and leave on the wifi toggle on the iOS devices - only the non cellular iPhone and iPad are able to discovery and connect to each other. My iPhone with cellular is not able to. By sharing my logs with Cursor AI it was determined that the connection between the two problematic peers (iPad with no cellular and iPhone with cellular) never even makes it to the TLS step because I never see the logs where I print out the certs I compare. I tried doing builder.requiredInterfaceType(.wifi) but doing that blocked the two non cellular devices from working. I also tried builder.prohibitedInterfaceTypes([.cellular]) but that also did not work. Is AWDL on it's way ou
19
0
828
3d
Reply to Universal Control Copy Paste Issue
I agree with @Etresoft, but I would also point out that these forums aren't the place for your post. These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. You are talking to other third-party developers here. While some Apple employees do visit these forums, they are likely to agree with @Etresoft in this instance, and, if they don't agree, they would probably point out that your issue is more suited to the Apple Support Forums. (And yes, I'm aware of your other post regarding being unable to post in the other forums, but that does not negate the fact that this is not the place for your post.)
3d
Reply to Choppy minimized search bar animation
Thanks for the post. Instead of examining the two distinct attributes that will trigger the animation, I should directly copy the code and test it myself. I'm a horrible human compiler and I should let Xcode do the work for me. .searchable(text: $searchQuery) .searchToolbarBehavior(.minimize) Upon using your code and utilizing the most recent released version of Xcode, I have not observed the choppy animation issue on my end. I would be grateful if you could provide the specific version of Xcode and simulator you are experiencing this problem with, as it could potentially be a bug. Let’s get to the bottom of this! Albert Pascual
  Worldwide Developer Relations.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
3d
Reply to Multi-machine Code Signing
After playing with builds and code signing over this weekend, I'm now not sure my original idea about this failure is correct. It's rather something about rebooting the machine that makes the magic work. If I work on a source tree, editing files, checking things into and out of source code control, performing builds or parts of builds, etc., code signing the final build often fails. If I reboot the system and make the full build right away, before doing anything else, it works. Some tool that I use must be corrupting it. Unless someone knows ways to interfere with code signing that might align with this, I will take this away and try to gather more information. Thanks for your help so far.
3d