Search results for

LLDB crash

29,559 results found

Post

Replies

Boosts

Views

Activity

Broadcast Upload Extension - Screen Sharing Fails to Start After Countdown (No Errors Logged)
Hello everyone, I'm working on implementing a screen sharing feature using RPSystemBroadcastPickerView and a Broadcast Upload Extension to share the entire app screen in an iOS application. The Broadcast Upload Extension is set up following Apple's ReplayKit guidelines. However, I’m encountering an issue during the broadcast startup sequence: ❗ Problem Description The Screen Broadcast UI appears as expected I tap “Start Broadcast” The countdown (3 → 2 → 1) completes Then it immediately reverts to the Start Broadcast screen, and screen sharing does not begin No error messages are displayed None of the extension lifecycle methods (broadcastStarted(withSetupInfo:), processSampleBuffer, etc.) are called There are no logs or crash reports, neither in the main app nor in the extension ✅ What Has Been Verified Info.plist of the Broadcast Upload Extension includes: NSExtensionPointIdentifier = com.apple.broadcast-services-upload NSExtensionPrincipalClass set correctly RPBroadcastProcessMode = RPBroadcastProc
0
0
145
Jul ’25
Change to SwiftData ModelContainer causing crashes
I have some models in my app: [SDPlanBrief.self, SDAirport.self, SDChart.self, SDIndividualRunwayAirport.self, SDLocationBrief.self] SDLocationBrief has a @Relationship with SDChart When I went live with my app I didn't have a versioned schema, but quickly had to change that as I needed to add items to my SDPlanBrief Model. The first versioned schema I made included only the model that I had made a change to. static var models: [any PersistentModel.Type] { [SDPlanBrief.self] } I had made zero changes to my model container and the whole time, and it was working fine. The migration worked well and this is what I was using: .modelContainer(for: [SDAirport.self, SDIndividualRunwayAirport.self, SDLocationBrief.self, SDChart.self, SDPlanBrief.self]) I then saw that to do this all properly, I should actually include ALL of my @Models in the versioned schema: enum AllSwiftDataSchemaV3: VersionedSchema { static var models: [any PersistentModel.Type] { [SDPlanBrief.self, SDAirport.self, SDChart.self, SDIndividualRunway
6
0
210
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
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
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
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 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
Crash when deallocating NEAppProxyFlow
Hello, I'm working on a Transparent Proxy and when the proxy is being stopped, I'm stopping all the flows by calling flow.closeWriteWithError(POSIXError(.ECANCELED)) flow.closeReadWithError(POSIXError(.ECANCELED)) Then all the flows are deallocated. When deallocating the flow the crash occurs: OS Version: macOS 14.1.2 (23B92) Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x000000018c2ef704 Termination Reason: Namespace SIGNAL, Code 5 Trace/BPT trap: 5 Terminating Process: exc handler [553] Thread 32 Crashed:: Dispatch queue: 0 CoreFoundation 0x18c2ef704 CF_IS_OBJC + 76 1 CoreFoundation 0x18c23f61c CFErrorGetDomain + 32 2 libnetworkextension.dylib 0x19fe56a00 flow_error_to_errno + 28 3 libnetworkextension.dylib 0x19fe56920 flow_handle_pending_write_requests + 216 4 libnetworkextension.dylib 0x19fe5667c __NEFlowDeallocate + 380 5 CoreFoundation 0x18c2efe28 _CFRelease + 292 6 NetworkExtension 0x19d208390 -[NEAppProxyFlow dealloc] + 36 Is there any way to debug w
3
0
143
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
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
Recommended / Canonical way to host remote (separate process) SwiftUI views.
I am building a tool that enables the user to write, auto-compile and interact with SwiftUI code (think something like a mini Xcode Canvas). Which so far works really well. The app is not sandboxed since it uses tools like swiftc and sourcekit-lsp. The obvious problem here is that since the 'Preview' part of the app is driven by arbitrary code a crash/hang there would lead to a termination of the whole app. I understand that there are some private apis like NSRemoteView or CALayerHost but I would like to avoid them if I can. From what I see reading other similar solutions IOSurface sharing + event forwarding might be the best solution. So my question is: Is there a proper or recommended way to achieve this? Meaning having a fully interactive SwiftUI view presented in my host app but running on a separate process? Any pointers to the right direction or examples or whatever could help me with this would be greatly appreciated.
4
0
173
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
#Playgrounds conflict duplicate libraries
Experimenting with #Playground macro with Xcode 26 beta 3, out of the box I see a conflict between duplicates in the XcodeDefault Toolchain. Essentially a clean install of macOS Tahoe 26 25A5306g FB18930059 Was trying to follow the first Foundation Model WWDC video example but distilling it down to the most basic use of the Playground macro produces the same error. import Playgrounds #Playground { } Any solutions / workarounds? Wasn't sure whether to attempt to delete one of these–but they are internal libraries. objc[3241]: Class PGLConcurrentMapNode is implemented in both /Applications/Xcode-beta 3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/PlaygroundLogger.framework/Versions/A/PlaygroundLogger (0x10db98c10) and /Applications/Xcode-beta 3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libLiveExecutionResultsLogger.dylib (0x10db18050). This may cause spurious casting failures and mysteriou
0
0
271
Jul ’25