Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,492 results found

Post

Replies

Boosts

Views

Activity

Reply to HealthKit backgroundDelivery is only triggering in the background while charging
What you described doesn't seem to happen to me when I try with my iPhone + iOS 26.1 (23B85). Would you mind to share the device configuration, relevant code snippets, and detailed steps you used to observe the behavior? To observe the baseline behavior, I'd suggest that you start with an iPhone that has a high battery level (over 80%, for example), because the system may decide to not deliver an update if the battery level is low, even the device isn't in the low battery mode. This is especially true on watchOS. Best, —— Ziqiao Chen  Worldwide Developer Relations.
4d
Individual to Organization convert time
My app was rejected for external testing due to needing to be published by an organization account. I used the option to convert my account with my LLC and entered my duns number and information. When I submitted the change it said it would take 1-2 days. It has been a week and I have not heard anything, or had any response to my support request. I have had my app published to Google play for 2 weeks and my iOS users feel left out. How long am I supposed to wait? Should I just create a new account under my organization? Will this cause an interference having my app on two accounts?
1
0
32
4d
Bug? SwiftData + inheritance + optional many-to-one relationship
I've spent a few months writing an app that uses SwiftData with inheritance. Everything worked well until I tried adding CloudKit support. To do so, I had to make all relationships optional, which exposed what appears to be a bug. Note that this isn't a CloudKit issue -- it happens even when CloudKit is disabled -- but it's due to the requirement for optional relationships. In the code below, I get the following error on the second call to modelContext.save() when the button is clicked: Could not cast value of type 'SwiftData.PersistentIdentifier' (0x1ef510b68) to 'SimplePersistenceIdentifierTest.Computer' (0x1025884e0). I was surprised to find zero hit when Googling Could not cast value of type 'SwiftData.PersistentIdentifier'. Some things to note: Calling teacher.computers?.append(computer) instead of computer.teacher = teacher results in the same error. It only happens when Teacher inherits Person. It only happens if modelContext.save() is called both times. It works if the first modelContext.save
3
0
67
4d
notarytool is giving me HTTP status error
I am using the xcrun notarytool submit --apple-id xxxxx@gmail.com --password xxxxx--team-id xxxxxx --output-format json --wait --no-progress /my/dmg/file to notarize my DMG file. But it always gives me back the error, Error: HTTP status code: 403. A required agreement is missing or has expired. This request requires an in-effect agreement that has not been signed or has expired. Ensure your team has signed the necessary legal agreements and that they are not expired. I did log in my developer account and found no place to sign any agreement. Actually in the morning when I logged in the developer account, it indeed pop up the agreement for me to sign and I did sign it. But now it seems I don't have any more agreements to sign. So, any ideas about what I should do?
3
0
410
4d
HealthKit backgroundDelivery is only triggering in the background while charging
HealthKit background delivery only triggers when charging. I have set step monitoring to hourly frequency. Despite step changes, callbacks fail to arrive after 3-4 hours on battery, but trigger immediately upon connecting power. Observed for 2 days: background updates are only received when charging. The device is not in Low Power Mode, and Background App Refresh is enabled for the app in Settings.
1
0
61
4d
Reply to Provisioning profile missing entitlement
[quote='871501022, roanutil, /thread/811382?answerId=871501022#871501022, /profile/roanutil'] It's just preferences stored in the key-value store. [/quote] Cool. [quote='871501022, roanutil, /thread/811382?answerId=871501022#871501022, /profile/roanutil'] I have updated the entitlement value with the correct Team ID. [/quote] OK. But you shouldn’t need to do that because Xcode should pick up the correct Team ID via the $(TeamIdentifierPrefix) syntax. As to your main issue, I suspect that Xcode has cached something that’s causing this. In situations like this I generally approach the problem in two ways: First, I create a new dummy test app, with a new bundle ID and thence a new App ID, to check whether this is working in general. Once I’ve confirmed that, I then start trying to resolve the issue with my real project. With regards that second step: In Signing & Capabilities, make sure that “Automatically manage signing” is enabled, the new team is selected in the Team popup, and that Signing Certi
4d
Reply to Sporadic "no route to host" over ssh
It’s better to reply as a reply, rather than in the comments; see Quinn’s Top Ten DevForums Tips for this and other titbits. Regarding this: it doesn't seem to be an issue with DenyMulticast I don’t think multicast is a factor here, either for good or for ill. iOS has additional restrictions around multicast, but those do not apply on macOS. this command always works for any user When run how? From Terminal? If so, that’s not the evidence that you think it is. Quoting TN3179: macOS automatically allows local network access by: Any daemon started by launchd Any program running as root Command-line tools run from Terminal or over SSH, including any child processes they spawn Based on the info you’ve provided so far, it really does sound you’re bumping into local network privacy issues. This is complicated by the fact that Unix-y programs tend to do things that confuse local network privacy, for example: Common Unix-y techniques, like calling daemon man page, can break responsible code inference. Such p
4d
How does one get the locale-specific character set encoding on a Cocoa App
If (in terminal) I type 'env', I'll see a line that looks like: LANG=en_GB.UTF-8 And I can parse that to get the 2-char 'en' locale-code, the sub-domain 'GB' and the character-set encoding of UTF-8. All well and good. However in a Cocoa app, I can't seem to find the equivalent for the UTF-8 part. This is a cross-platform app, but at this point I'll go with any solution... I've tried: NSLocale *loc = NSLocale.currentLocale; NSString *lang = loc.localeIdentifier; setlocale(LC_ALL, NULL); char *text = nl_langinfo(CODESET); if (text) NSString *charset = [NSString stringWithUTF8String:text]; NSLog(@lang:%@nchar:%@n,lang, charset); which displays: lang:en-GB char:US-ASCII Also tried: // Search for locale info by preferred environment variable NSProcessInfo *pi = NSProcessInfo.processInfo; NSDictionary *env = pi.environment; NSString *spec = env[@LC_ALL]; if (spec == nil) spec = env[@LC_CTYPE]; if (spec == nil) spec = env[@LANG]; NSLog(@spec:%@n, spec); which displays: spec:(null) Also tried: CFStr
3
0
63
4d
Is it safe to manually edit Package.swift (iOS Version & Orientation) for SSC 2026?
Hi everyone, I am working on my submission for the Swift Student Challenge 2026 using a Swift App Playground (.swiftpm). The default project was set to iOS 16, but I manually edited the Package.swift file to change the minimum version to iOS 18.0 so I can use the latest APIs. I also modified the supportedInterfaceOrientations to lock the app to Portrait mode only. I know the file contains a warning saying Do not edit it by hand, so I am worried about two things: Disqualification: Will manually changing the iOS version from the default 16.0 to 18.0 cause any issues with the submission validator or the judging environment? Orientation: Is it acceptable to strictly force .portrait mode for the challenge, or are we required to support landscape/responsive layouts for the judges' iPads? I want to make sure these manual changes won't technically invalidate my playground. Thanks for your help!
1
0
99
4d
I'm developing a macOS File Provider Extension and encountering a `-2014` (Extension not registered) error when using Testing Mode only.
File Provider Extension Testing Mode -2014 Error Issue I'm developing a macOS File Provider Extension and encountering a -2014 (Extension not registered) error when using Testing Mode only. Environment macOS: 13.0+ Xcode: Latest version Developer Account: Paid Developer Account Extension Type: NSFileProviderReplicatedExtension Current Status App ID Configuration App ID: kr.it.flux.FluxDrive2.FileProvider Capabilities: ✅ com.apple.developer.fileprovider.testing-mode (enabled) ❌ General com.apple.developer.fileprovider (not visible) Extension Configuration NSExtensionPointIdentifier: com.apple.fileprovider NSExtensionPrincipalClass: FluxDrive2FileProvider.FileProviderExtension Code Signing: Valid (Team Identifier verified) Info.plist: Valid Error Message Error Domain=NSFileProviderErrorDomain Code=-2014 The operation couldn't be completed. (NSFileProviderErrorDomain error -2014.) Underlying error: Error Domain=NSFileProviderErrorDomain Code=-2001 Extension cannot be used Attempted Sol
1
0
49
4d
I'm developing a macOS File Provider Extension and encountering a `-2014` (Extension not registered) error when using Testing Mode only.
File Provider Extension Testing Mode -2014 Error Issue I'm developing a macOS File Provider Extension and encountering a -2014 (Extension not registered) error when using Testing Mode only. Environment macOS: 13.0+ Xcode: Latest version Developer Account: Paid Developer Account Extension Type: NSFileProviderReplicatedExtension Current Status App ID Configuration App ID: kr.it.flux.FluxDrive2.FileProvider Capabilities: ✅ com.apple.developer.fileprovider.testing-mode (enabled) ❌ General com.apple.developer.fileprovider (not visible) Extension Configuration NSExtensionPointIdentifier: com.apple.fileprovider NSExtensionPrincipalClass: FluxDrive2FileProvider.FileProviderExtension Code Signing: Valid (Team Identifier verified) Info.plist: Valid Error Message Error Domain=NSFileProviderErrorDomain Code=-2014 The operation couldn't be completed. (NSFileProviderErrorDomain error -2014.) Underlying error: Error Domain=NSFileProviderErrorDomain Code=-2001 Extension cannot be used Attempted Sol
1
0
90
5d
Reply to Show / Hide HAL Virtual Audio Device Based on App State
I am developing a macOS virtual audio device using an Audio Server Plug-In (HAL). I want the virtual device to be visible to all applications only when my main app is running, and completely hidden from all apps when the app is closed. The goal is to dynamically control device visibility based on app state without reinstalling the driver. What is the recommended way for the app to notify the HAL plug-in about its running or closed state? Any guidance on best-practice architecture for this scenario would be appreciated. So, full disclaimer, I don't have a lot of direct experience with AudioServer plugins, so the advice I'm giving is coming from a general device management/architecture perspective, NOT from detailed experience with this particular plugin type. In any case, the place I would probably start with here is the sample project Building an Audio Server Plug-in and Driver Extension. You don't need any kind of DEXT for this, but that sample does how to deal with device appearance/disappearance, which is
Topic: App & System Services SubTopic: Drivers Tags:
5d
Reply to Swift student challenge- help
Hello! I’m not a Distinguished Winner, but I did win last year. In my experience, it takes time. For examples of strong projects, see https://wwdcscholars.com/ (not endorsed by Apple). It showcases many past winners and helps you understand what judges look for. Don’t expect to win on your first try. It’s competitive, and I needed two failed attempts before a winning submission. I focus on the intersection of my interests, problems I’ve identified, and native Apple technologies. That keeps me motivated by the problem I’m solving. Remember that the app is only part of the challenge. Don’t underestimate the essay. Make sure your app and essay reflect who you are as a developer. In my experience, judges care more about your motivations and the problem you’re tackling than a perfectly polished solution. The idea is the most important part, and it often takes the longest. This year, I went through three different ideas before landing on one I’m happy with. Hope this helps, and good luck!
5d
Reply to Tahoe 26.2 breaks printing with PaperCut
So, looking at things from our side, I'm not sure. I found one bug on this (r.166518515) about accessing a custom directory (/Library//), but the analysis of the engineering team is that it isn't a bug in macOS 26.2... because it shouldn't work in macOS 26.0 EITHER. More specifically, it should only be accessing one of these documented directories: 2. Writing of files: pursuant to normal UNIX file permissions, filters and backends can read/write files to the cache directory specified by the CUPS_CACHEDIR environment variable, to the state directory specified by the CUPS_STATEDIR environment variable, to the temporary directory specified by the TMPDIR environment variable, and under the /private/var/db, /private/var/folders, /private/var/lib, /private/var/mysql, /private/var/run, /private/var/spool (except /private/var/spool/cups), /Library/Application Support, /Library/Caches, /Library/Logs, /Library/Preferences, /Library/WebServer, and /Users/Shared directories. FYI, that does suggest a possible wo
Topic: App & System Services SubTopic: General Tags:
5d