Search results for

LLDB crash

29,559 results found

Post

Replies

Boosts

Views

Activity

Reply to Symbol not found: ___res_9_state
As my colleague Ed mentioned, the interface has a lot of ‘interesting’ backstory. My general advice is to avoid that API wherever possible. However, before we dig into alternatives I want to ask about this: [quote='793921021, Nick_Ni, /thread/793921, /profile/Nick_Ni'] When running my app with Xcode16.4, it crashed with the error: [/quote] I built a tiny test function that calls __res_9_state and called it from both a macOS program and an iOS app and both worked just fine. So where are you running your code? Specifically, what platform and what version of that platform? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Jul ’25
Symbol not found: ___res_9_state
When running my app with Xcode16.4, it crashed with the error: dyld[1045]: Symbol not found: ___res_9_state Referenced from: <8B329554-5BEF-38D0-BFCD-1731FA6120CB> /private/var/containers/Bundle/Application/00C941BA-E397-4D0B-B280-E75583FF2890/***.app/***.debug.dylib Expected in: <7D74C679-8F55-3A01-9AA2-C205A4A19D3E> /usr/lib/libresolv.9.dylib The ___res_9_state related code in my app is: let state = __res_9_state() res_9_ninit(state) var servers = [res_9_sockaddr_union](repeating: res_9_sockaddr_union(), count: Int(MAXNS)) let found = Int(res_9_getservers(state, &servers, Int32(MAXNS))) res_9_nclose(state) if found > 0 { return Array(servers[0.. 0 } } else { return [] } Previously, __res_9_state() could run normally in Xcode 16.1 How to fix this problem?
3
0
147
Jul ’25
Reply to Change to SwiftData ModelContainer causing crashes
Thank you for your response. I had actually read that post in depth before posting here. What I would really like to know is, am I doing anything wrong with my VersionedSchema, ModelContainer or @Models please? I have been looking all around and it is hard to find the right answer for my specific case where I have transitioned to a Versioned Schema where I have suddenly placed all my @Models in, and have also changed my ModelContainer. I actually initially built this new container like so as I thought this was correct for migration plans: actor ModelContainerActor { @MainActor static func container() -> ModelContainer { let schema = Schema( versionedSchema: AllSwiftDataSchemaV3.self ) let configuration = ModelConfiguration() let container = try! ModelContainer( for: schema, migrationPlan: PlanBriefMigrationPlan.self, configurations: configuration ) return container } } Which I believe may have been causing the crashes. I haven't had any crashes in the last 24 hours since changing to this
Jul ’25
App Crashes in Xcode 26 Beta 3
Hi, I'm trying to install run the app in Xcode 26 Beta 3 and getting the below error. *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Error during decoding of 1723: Error Domain=NSCocoaErrorDomain Code=4864 Class 'BSAuditToken' has a superclass that supports secure coding, but 'BSAuditToken' overrides -initWithCoder: and does not override +supportsSecureCoding. The class must implement +supportsSecureCoding and return YES to verify that its implementation of -initWithCoder: is secure coding compliant. UserInfo={NSDebugDescription=Class 'BSAuditToken' has a superclass that supports secure coding, but 'BSAuditToken' overrides -initWithCoder: and does not override +supportsSecureCoding. The class must implement +supportsSecureCoding and return YES to verify that its implementation of -initWithCoder: is secure coding compliant.}' terminating due to uncaught exception of type NSException CoreSimulator 1043 - Device: iPhone 16 Pro (F158F199-A41E-4967-87C6-58A42C9C1954) - Runtime
2
0
236
Jul ’25
Reply to App Crashes in Xcode 26 Beta 3
BSAuditToken is an Apple class. It sounds like the simulator is crashing here, is that accurate? Regardless, please file a bug report regarding this message, along with as much supporting information as possible, and then post the FB number here for the record. It would be helpful to also know whether a brand new Xcode project from one of Xcode's templates also creates this issue in the simulator, or if it is limited only to your specific app. — Ed Ford,  DTS Engineer
Jul ’25
App Crashes on Launch – React Native – Only on iPad Air 5th Gen (iPadOS 18.5)
Hi all, I need help diagnosing a strange crash that’s affecting only one device model. Issue: My React Native app crashes immediately on launch, but only on the iPad Air (5th generation) running iPadOS 18.5. The app was built with React Native (latest stable version). It runs fine on all other tested iOS and iPadOS devices, both physical and simulators. There’s no crash on iPhone or on older iPads so can somebody please help solve this?
1
0
117
Jul ’25
Reply to App Crashes on Launch – React Native – Only on iPad Air 5th Gen (iPadOS 18.5)
Take a look at the documentation for debugging techniques that has guidance on debugging common reasons for a crash. If you get stuck, let us know what you tried, and attach the fully symbolicated Apple crash report in your reply. Posting a Crash Report explains how to do so. Note that with crashes for React Native apps, the source of the crash can be code related to React Native — see this thread for an example — so once you have a crash report analyzed, you may need to check in with their support for how to resolve, just so you're aware of that up front. — Ed Ford,  DTS Engineer
Jul ’25
Termination Reason: DYLD 4 Symbol missing
When building with Xcode 15 or greater to a simulator that is IOS 16 or lower I get a crash. Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: DYLD 4 Symbol missing Im not 100% sure it is an Xcode issue to be honest. It could be a react native issue. Everything works fine with Xcode 14.3.1 proven by my release builds through the pipeline working. Im really struggling to narrow down the issue. Any suggestions would be appreciated.
9
0
3.4k
Mar ’24
Reply to Encounter "zsh: trace trap" after updating trust settings for Apple certificates
[quote='849589022, rookie_archer, /thread/793252?answerId=849589022#849589022, /profile/rookie_archer'] I tried syspolicy_check distribution my_app.app … [/quote] Right. Because syspolicy_check tells you where your code is allowed to run. And we know that’s the case because it’s crashing in your code. If syspolicy_check failed, the app would either be blocked by Gatekeeper or the trusted execution system would trigger a crash before any of your code has started running. [quote='849589022, rookie_archer, /thread/793252?answerId=849589022#849589022, /profile/rookie_archer'] Add com.apple.security.cs.allow-unsigned-executable-memory to the entitlements.plist file. [/quote] Did you try com.apple.security.cs.allow-jit? There’s a hierarchy of entitlements to opt out of hardened runtime memory protections, from best to worst: com.apple.security.cs.allow-jit com.apple.security.cs.allow-unsigned-executable-memory com.apple.security.cs.disable-executable-page-protection Use the first if the code in qu
Topic: Code Signing SubTopic: General Tags:
Jul ’25
Encounter "zsh: trace trap" after updating trust settings for Apple certificates
Hi guys, New to publishing apps on Apple Store. I encounter some notarization error before and resolved it in this post. By solving the previous issue, I updated the Trust setting from Always Trust to Use System Defaults for Apple certificates. The codesign and notarization no longer give me any problem. But now, I encountered another issue. When I ran the .app on my local Macbook, it now gives me zsh: trace trap error. Dive a little further and check the crash report, I found the some details as following. Process: my_app [30652] Path: /Users/USER/my_app_path Identifier: my_app Version: 0.0.0 (???) Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2025-07-15 14:57:58.9874 -0400 OS Version: macOS 15.5 (24F74) Report Version: 12 Anonymous UUID: 2335F0B6-A26E-6446-6074-0FCE620C4B6A Time Awake Since Boot: 6000 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGKILL (Code Signature I
5
0
195
Jul ’25
Reply to What is the code signing trust level?
[quote='793265021, packagesdev, /thread/793265, /profile/packagesdev'] Is there any official documentation listing the different values for this trust level value and providing a clear description of what it corresponds to? [/quote] No. The canonical documentation for the JSON side of a crash report is Interpreting the JSON format of a crash report, and codeSigningTrustLevel is not listed there. I encourage you to file a bug against that doc. Please post your bug number, just for the record. If you want to dig into the implementation details, much of that is the Darwin open source. A good thread to pull on is TASK_CRASHINFO_CS_TRUST_LEVEL in the xnu project. However, that’s not the same as documentation, and hence my answer above. I will note, however, that 4294967295 is 0xffffffff, which is the value of KCDATA_INVALID_CS_TRUST_LEVEL. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Privacy & Security SubTopic: General Tags:
Jul ’25
App Sandbox and the loading of libraries written at runtime
We're interested in adopting App Sandbox in an app distributed outside of the Mac App Store. However, we're hitting a bit of a roadblock and it doesn't seem like either of the techniques described in that post can be used in a reasonable way. For background, this is a third-party launcher for a cross-platform Java game that, among other things, makes it easier for users to mod the game. Users generally download mods as .jar files and place them in a certain directory. In some cases, these mods contain native dynamic libraries (e.g. a .dylib) as part of their code. In general, the .dylib is extracted from the contents of the .jar to some temporary location, loaded, and then deleted once the game closes (the exact details, like the actual temporary location, depends on the mod). App Sandbox greatly interests us in this case because it can limit the damage that a compromised mod could do, and in my testing the functionality of most mods still works with it enabled. However, sandboxed apps quarantine every file t
5
0
246
Jul ’25
OSLogMessage string interpolation thread-safeness wise
We've been using our own logging system for quite a long time but we are interested in the benefits offered by Logger/OSLog and plan to migrate to it. Before modifying thousands of logging calls, we want to understand a bit more how, when and where (ie. from which thread/queue) OSLog strings interpolation is performed. More specifically, we are concerned by simultaneous access to properties from different threads. Our app usually handles that using DispatchQueues (single or concurrent) and calls to our logging system is safe as the log string is built synchronously. On the other hand, when using Logger/OSLog, the provided string is in fact an OSLogMessage which keeps a reference to values and properties in order to build the final String later (asynchronously). If it is correct, the later part concerns us. Example Let's consider the following class property profile (instance of Profile class which implements CustomStringConvertible): private var profile: Profile? With our own logging system, we used to log th
2
0
291
Jul ’25
Reply to Xcode 16.4 iOS 18.5 simulator crashes for Apps requiring webkit
If you set User Script Sandboxing to No in the Build Settings and register the following script in the Run Script phase of Build Phases, the simulator will no longer crash in either Xcode 26 or Xcode 16.4. if [ $PLATFORM_DISPLAY_NAME = iOS Simulator ]; then KEYWORD=iOS ${TARGET_DEVICE_OS_VERSION} DYLD_FALLBACK_FRAMEWORK_PATH=$(xcrun simctl list devices -v | grep $KEYWORD | awk -F'[][]' '{print $2}') DYLD_FALLBACK_FRAMEWORK_PATH=${DYLD_FALLBACK_FRAMEWORK_PATH}/Contents/Resources/RuntimeRoot/System/Cryptexes/OS/usr/lib/swift/ LIBRARY_FILE=libswiftWebKit.dylib ln -sf ${DYLD_FALLBACK_FRAMEWORK_PATH}/${LIBRARY_FILE} ${BUILT_PRODUCTS_DIR}/${LIBRARY_FILE} echo 👉Created an alias for ${LIBRARY_FILE} fi
Jul ’25