Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,641 results found

Post

Replies

Boosts

Views

Activity

Keyframe animation crashes with +[_SwiftUILayerDelegate _screen]: unrecognized selector sent to class on iOS 26
We have an UIViewController called InfoPlayerViewController. Its main subview is from a child view controller backed by SwiftUI via UIHostingController. The InfoPlayerViewController conforms to UIViewControllerTransitioningDelegate. The animation controller for dismissing is DismissPlayerAnimationController. It runs UIKit keyframe animations via UIViewPropertyAnimator. When the keyframe animation is executed there’s an occasional crash for end users in production. It only happens on iOS 26. FB Radar: FB20871547 An example crash is below. Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Reason: +[_SwiftUILayerDelegate _screen]: unrecognized selector sent to class 0x20c95da08 Termination Reason: SIGNAL 6 Abort trap: 6 Triggered by Thread: 0 Last Exception Backtrace: 0 CoreFoundation 0x1a23828c8 __exceptionPreprocess + 164 (NSException.m:249) 1 libobjc.A.dylib 0x19f2f97c4 objc_exception_throw + 88 (objc-exception.mm:356) 2 CoreFoundation 0x1a
4
0
478
1w
Submission Rejected: Guideline 5.1.1 - Legal - Privacy - Data Collection and Storage
Hi, I am in need of your help with publishing my game. I got the following explanation for the negative review of my app/game. Issue Description One or more purpose strings in the app do not sufficiently explain the use of protected resources. Purpose strings must clearly and completely describe the app's use of data and, in most cases, provide an example of how the data will be used. Next Steps Update the local network information purpose string to explain how the app will use the requested information and provide a specific example of how the data will be used. See the attached screenshot. Resources Purpose strings must clearly describe how an app uses the ability, data, or resource. The following are hypothetical examples of unclear purpose strings that would not pass review: App would like to access your Contacts App needs microphone access See examples of helpful, informative purpose strings. The problem is that they say my app asks to allow my app to find devices on local networks. And that this needs m
1
0
317
1w
Questions about macOS App Store update package generation and optimization
Hello, According to documentation, the App Store does not re-download the entire app when updating, but instead generates an update package containing only the changed content compared to the previous version. I’d like to clarify the following points: 1. Granularity of file changes If only part of a large file changes, does the update package include the entire file, or does it patch only the modified portions within that file? 2. Guideline on separating files The documentation recommends separating files that are likely to change from those that are not. How should this be interpreted in practice? 3. Verifying the diff result Is there a way for developers to check the actual diff result of the update package generated by the App Store without submitting the app? Is there a diff command tool or comparison method closer to the actual App Store update process? 4. Estimating update size during development For apps with large-scale resources, minimizing update size is critical. Are there any tools or bes
1
0
107
1w
Parameter Errors - procedural vs. optional
So I’m writing a program, as a developer would - ‘with Xcode.’ Code produced an error. The key values were swapped. The parameters suggested were ‘optional parameters variables.’ “var name: TYPE? = (default)” var name0: TYPE ============================= name0 = “super cool” ‘Name is not yet declared at this point provided with x - incorrect argument replace ExampleStruct(name:”supercool”) should be x - incorrect argument replace ExampleStruct(name0:”supercool”) ============================= In swift, there is a procedural prioritization within the constructor calling process. Application calls constructor. Constructor provides constructor signature. Signature requires parameters & throws an error if the params are not in appropriate order. - “got it compiler; thank you, very much” Typically, when this occurs, defaults will be suggested. Often the variable type. Ie String, Bool. such as: StructName(param1:Int64, param2:Bool) (Recently, I have seen a decline in @Apple’s performance in many vectors
2
0
552
1w
Reply to Multipeer Connectivity support
My general advice here is to avoid Multipeer Connectivity, and instead focus your efforts on Network framework. TN3151 Choosing the right networking API talks about this more, and I have specific guidance in Moving from Multipeer Connectivity to Network Framework. [quote='869271022, PellePepper, /thread/11964?answerId=869271022#869271022, /profile/PellePepper'] Connection is lost or cannot be established again. [/quote] One key issue with Multipeer Connectivity is that it’s tricky to separate link-layer issues — that is, problems with peer-to-peer Wi-Fi — from transport layer issues. That makes investigating problems like this a lot harder than it is with Network framework, which makes a clear distinction between the two. [quote='869271022, PellePepper, /thread/11964?answerId=869271022#869271022, /profile/PellePepper'] Is there a possibility to connect two iOS-Devices via cable-connection to improve stability? [/quote] Yep, just use Ethernet, along with two USB Ethernet dongles, whi
1w
mDNSResponder: legacy OpenSSL licence
Hello, I’m reviewing the open-source mDNSResponder repository and have a question regarding licensing/provenance in mDNSCore/DNSDigest.c file. That file contains an embedded notice stating that parts of the MD5/digest implementation were derived from older OpenSSL sources and therefore include the legacy OpenSSL/SSLeay license text, even though OpenSSL itself is now Apache-2.0 starting from version 3.0. The legacy OpenSSL/SSLeay license is widely understood to impose additional attribution and notice requirements compared to Apache-2.0, and some downstream projects prefer to avoid it when a permissively licensed alternative is available. Repository: https://github.com/apple-oss-distributions/mDNSResponder File: https://github.com/apple-oss-distributions/mDNSResponder/blob/main/mDNSCore/DNSDigest.c#L66 I’d like to clarify a few points: Is the MD5/digest code in DNSDigest.c still based on pre–OpenSSL-3.0 sources, such that retaining the legacy OpenSSL/SSLeay license block is intentional and required? I
2
0
130
1w
Reply to Notarization wipes the "Icon?" file
I agree with red_menace that you don’t want to be using a custom icon for this. That’s super brittle. If you using Script Editor to save a new application, it has already set up all the bits you need: % plutil -p Test811273.app/Contents/Info.plist { … CFBundleIconFile => applet CFBundleIconName => applet … } % file Test811273.app/Contents/Resources/applet.icns Test811273.app/Contents/Resources/applet.icns: Mac OS X icon… % file Test811273.app/Contents/Resources/Assets.car Test811273.app/Contents/Resources/Assets.car: Mac OS X bill of materials (BOM) file To get the right icon, replace applet.icns with your own: % cp /Applications/Pages.app/Contents/Resources/AppIcon.icns Test811273.app/Contents/Resources/applet.icns % rm Test811273.app/Contents/Resources/Assets.car After doing this, zip and unzip the app so that the Finder refreshes. Now, in this case I nixed the Assets.car entirely, so that macOS falls back to applet.icns. A better way to do it would be to use Xcode to build a dummy app with the right
Topic: Code Signing SubTopic: Notarization Tags:
1w
macOS 14.8 Keychain Import Fails for PKCS#12 Files Generated with OpenSSL 3.4.0
We recently upgraded OpenSSL from version 1.1.1 to 3.4.0. After this upgrade, we observed that PKCS#12 files generated using OpenSSL 3.4.0 fail to import into the macOS Keychain with the following error: Failed to import PKCS#12 data: -25264 (MAC verification failed during PKCS12 import (wrong password?)) This issue is reproducible on macOS 14.8.2. The same PKCS#12 files import successfully on other macOS versions, including 15.x and 26.x. Additionally, PKCS#12 files that fail to import on macOS 14.8 work correctly when copied and imported on other macOS versions without any errors. PKCS#12 Creation The PKCS#12 data is created using the following OpenSSL API: const char* platformPKCS12SecureKey = _platformSecureKey.has_value() ? _platformSecureKey.value().c_str() : NULL; PKCS12* p12 = PKCS12_create( platformPKCS12SecureKey, NULL, keys, _cert, NULL, 0, 0, 0, 0, 0 ); if (!p12) { throw std::runtime_error(Failed to create PKCS#12 container); } PKCS#12 Import The generated PKCS#12 data is imported into the macOS K
1
0
209
1w
Reply to Notarization Rejection - The binary is not signed with a valid Developer ID certificate
There are two ways you could interpret that error: Focus on the “valid Developer ID certificate” part. Focus on the “The binary is not signed” part. My experience is that the latter interpretation is more helpful. That is, there’s nothing wrong with your Developer ID certificate but rather there’s something wrong with your packaging that’s preventing the notary service from verifying its code signature. Having said that, this is a strange: [quote='811481021, AbsurdFish, /thread/811481, /profile/AbsurdFish'] Re-tested with minimal test package - same error persists [/quote] How are you creating this minimal test? With Xcode? Here’s the diagnostic test I recommend: Create a new test project in Xcode, using the macOS > App template. Choose Product > Archive. In the Xcode organiser, click Distribute App and follow the Custom > Direct Distribution > Export path. That produces a folder containing your app binary. Use ditto to create a zip archive from that, as explained in Packaging Ma
Topic: Code Signing SubTopic: Notarization Tags:
1w
Reply to How to properly register a macOS System Extension in an Electron app?
What ssmith_c said plus… com.apple.developer.system-extension.install is a restricted entitlement, that is, one that must be authorised by a provisioning profile. If you were using Xcode, it would take care of this for you. Given that you’re not, you have to do this by hand. There are a bunch of resources to help you with this: Creating distribution-signed code for macOS has general info about that. TN3125 Inside Code Signing: Provisioning Profiles has background on how provisioning profiles work. Resolving Trusted Execution Problems has a ‘child’ post that explains how to debug issues like this. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
1w
How to properly register a macOS System Extension in an Electron app?
Hi everyone, I’m developing an Electron application on macOS and I’m trying to register and activate a macOS System Extension, but I’m running into startup and entitlement issues. 🔧 What I’m trying to build • An Electron app packaged with electron-builder • Signed with Developer ID Application • Notarized using @electron/notarize • A macOS System Extension is already built and signed • The System Extension provides a virtual camera • I wrote a Swift helper that: • Registers / activates the virtual camera • Calls OSSystemExtensionManager • This Swift code is compiled into a .node native addon • The .node module is loaded and called from Electron (Node.js) to trigger system extension registration ❗ The problem When I add the following entitlement: com.apple.developer.system-extension.install the application fails to launch at all on macOS. Without this entitlement: • The app launches normally • But system extension activation fails with: Error Domain=OSSystemExtensionErrorDomain Code=2
2
0
475
1w
Internal error, NEHotspotConfigurationErrorDomain
Hello eveybody,Currently I'm working on an app which connects to a device. During testing I encounter an internal error of NEHotspotConfigurationErrorDomain. See the log snippet:Domain=NEHotspotConfigurationErrorDomain Code=8 internal error. UserInfo={NSLocalizedDescription=internal error.}This error appears randomly. In one day I encountered it three times. The only solution I can think of is catching this error somehow and then telling the user to restart the device.After this error appears, the wifi functionality of iOS in all third party apps seems to be broken. Only restarting helps as far as I know. Also there seems to be nothing we as app developers can do about it. Therefor I wonder if there is some way to prevent this error somehow? The only solution I can think of is catching this error somehow and then telling the user to restart the device.Also since there is not much information about this error on the web, it would be really nice if someone can clarify whats going on with this error.Reg
16
0
10k
1w
Initial stack construction
I'm having problems constructing the initial stack for the guest executable for Valgrind on macOS 12 Intel. This seemed to work OK for macOS 11 but I'm getting a bad 'apple' pointer on macOS 12. The stack (constructed by Valgrind) looks like this higher address +-----------------+ <- clstack_end | | : string table : | | +-----------------+ | NULL | +-----------------+ | executable_path | (first arg to execve()) +-----------------+ | NULL | - - | envp | +-----------------+ | NULL | - - | argv | +-----------------+ | argc | +-----------------+ | mach_header * | (dynamic only) lower address +-----------------+ <- sp | undefined | : : The problem that I'm having is with the executable path (or the apple pointer). This points to NULL. The actual pointer to the executable=xxx string is 16 bytes lower in memory. The code for main starts with Dump of assembler code for function main: 0x0000000100003a90 <+0>: push %rbp 0x0000000100003a91 <+1>: mov %rsp,%rbp 0x0000000100003a94 <+4
2
0
119
1w
Reply to ipad通过转接口连接上有线网络之后,部分设备无法获取到IP地址
Sadly, I can’t read Chinese, so I’m answering based on a machine translation. The code you posted assumes that a specific interface type will have a specific interface name. That’s not a valid assumption. BSD interface names are not considered API on Apple platforms. I have a lot more information about this in the various posts referenced by Extra-ordinary Networking. Please read them through. If you have follow-up questions, I’d be happy to answer them here. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
1w