Debugging

RSS for tag

Discover and resolve issues with your app.

Posts under Debugging tag

200 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

crash:__CFRunLoopServiceMachPort.cold.1 :56
After my project was packaged with Xcode15, the following crash occurred, which had not occurred before. After checking for a long time, the cause was not found, because similar problems did not occur when Xcode14 was used to package, so I think it is the problem caused by Xcode15 packaging Incident Identifier: 3DFEAAAC-DCEE-4C6F-B51D-29BE9448A9C0 CrashReporter Key: KSCrash2 Hardware Model: iPhone15,3 Process: KPlayi4Phone [11803] Path: /private/var/containers/Bundle/Application/FD3F5994-3F75-4477-B629-2343870A4995/KPlayi4Phone.app/KPlayi4Phone Identifier: com.KPlay.KPlay Version: 2035752548 (11.0.73) Code Type: ARM-64 Parent Process: ? [1] Date/Time: 2024-03-28 15:02:18 +0800 Launch Time: 2024-03-28 15:02:10 +0800 OS Version: iOS 16.2 (20C65) Report Version: 104 Exception Type: EXC_BREAKPOINT Exception Codes: KERN_INVALID_ADDRESS at 0x00000001d256402c Exception Subtype: SIGTRAP Triggered by Thread: 0 Thread 0 Crashed: 0 CoreFoundation 0x00000001d256402c __CFRunLoopServiceMachPort.cold.1 :56 (in CoreFoundation) 1 CoreFoundation 0x00000001d242ebd4 __CFBasicHashIncSlotCount :0 (in CoreFoundation) 2 CoreFoundation 0x00000001d242fd18 __CFRunLoopRun :1232 (in CoreFoundation) 3 CoreFoundation 0x00000001d2434ec0 _CFRunLoopRunSpecific :612 (in CoreFoundation) 4 GraphicsServices 0x000000020c48b368 _GSEventRunModal :164 (in GraphicsServices) 5 UIKitCore 0x00000001d492a86c -[UIApplication _run] :888 (in UIKitCore) 6 UIKitCore 0x00000001d492a4d0 _UIApplicationMain :340 (in UIKitCore) 7 KPlayi4Phone 0x0000000100f5608c main main.m:16 (in KPlayi4Phone) 8 ??? 0x00000001f0c56960 0x0000000000000000 + 8334436704 9 ??? 0x0000000000000000 0x0000000000000000 + 0 mycrash.crash
1
0
364
Apr ’24
Crashed: com.apple.root.default-qos
Hi, I'm curious if anyone knows what I might look for in this crash report. I'm not seeing any functions in my application in any of the stacks so I'm stumped as to what might be happening. com.apple.main-thread 0 libobjc.A.dylib 0x4808 objc_msgSend + 8 1 AuthKitUI 0x553a4 _DrawBorder + 140 2 AuthKitUI 0x54d68 AKDrawAppleIDButtonWithCornerRadius + 92 3 AuthKitUI 0x54cc0 AKCreateAppleIDButtonImageWithCornerRadius + 212 4 AuthenticationServices 0x39358 + 152 5 UIKitCore 0x15aee8 + 508 6 QuartzCore 0x67db8 + 252 7 QuartzCore 0x67cb0 + 64 8 QuartzCore 0x67168 + 1636 9 QuartzCore 0x66480 + 412 10 QuartzCore 0x6c860 + 464 11 QuartzCore 0x65b80 + 648 12 QuartzCore 0x65828 + 88 13 CoreFoundation 0x357bc + 36 14 CoreFoundation 0x341c4 + 548 15 CoreFoundation 0x338e0 + 1028 16 CoreFoundation 0x333f8 CFRunLoopRunSpecific + 608 17 GraphicsServices 0x34f8 GSEventRunModal + 164 18 UIKitCore 0x22c8a0 + 888 19 UIKitCore 0x22bedc UIApplicationMain + 340 20 MaaCompanionApp 0x8050 main + 8 (main.m:8) 21 ??? 0x1b0e02dcc (Missing) la_client 0 libsystem_kernel.dylib 0x10f4 semaphore_wait_trap + 8 1 libdispatch.dylib 0x489c + 28 2 libdispatch.dylib 0x4f4c + 132 3 LocalAuthentication 0x15398 + 500 4 LocalAuthentication 0x164bc + 196 5 CoreFoundation 0x31714 + 148 6 CoreFoundation 0x311ac + 428 7 Foundation 0x6a3a0 + 16 8 Foundation 0x69f20 + 520 9 Foundation 0x69888 + 188 10 Foundation 0x2033c + 2244 11 CoreFoundation 0x31b5c + 1008 12 CoreFoundation 0x172950 _CF_forwarding_prep_0 + 96 13 LocalAuthentication 0x163ac + 236 14 LocalAuthentication 0x2ba4 + 504 15 libdispatch.dylib 0x4300 + 20 16 libdispatch.dylib 0x13ce8 + 56 17 LocalAuthentication 0x295c + 196 18 LocalAuthentication 0x1626c + 340 19 LocalAuthentication 0x21f14 + 468 20 LocalAuthentication 0x226a8 + 304 21 Security 0x11b10 + 1712 22 Security 0x11454 + 140 23 Security 0x112b4 SecOSStatusWith + 56 24 Security 0x1855c SecItemCopyMatching + 400 25 MaaCompanionApp 0x2d0a0c -[RNKeychainManager getGenericPasswordForOptions:resolver:rejecter:] + 387 (RNKeychainManager.m:387) 26 CoreFoundation 0x31714 + 148 27 CoreFoundation 0x311ac + 428 28 CoreFoundation 0x30fd4 + 64 29 MaaCompanionApp 0x355598 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 587 (RCTModuleMethod.mm:587) 30 MaaCompanionApp 0x3575ec facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext) + 197 (RCTNativeModule.mm:197) 31 MaaCompanionApp 0x35723c invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 304 (optional:304) 32 libdispatch.dylib 0x26a8 + 32 33 libdispatch.dylib 0x4300 + 20 34 libdispatch.dylib 0xb894 + 748 35 libdispatch.dylib 0xc3c4 + 380 36 libdispatch.dylib 0x17004 + 288 37 libdispatch.dylib 0x16878 + 404 38 libsystem_pthread.dylib 0x1964 _pthread_wqthread + 288 39 libsystem_pthread.dylib 0x1a04 start_wqthread + 8 Thread 0 libsystem_kernel.dylib 0x96d0 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x19b0 _pthread_wqthread + 364 2 libsystem_pthread.dylib 0x1a04 start_wqthread + 8 Thread 0 libsystem_kernel.dylib 0x96d0 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x19b0 _pthread_wqthread + 364 2 libsystem_pthread.dylib 0x1a04 start_wqthread + 8 Thread 0 libsystem_kernel.dylib 0x96d0 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x19b0 _pthread_wqthread + 364 2 libsystem_pthread.dylib 0x1a04 start_wqthread + 8 Crashed: com.apple.root.default-qos 0 libsystem_kernel.dylib 0xc358 __abort_with_payload + 8 1 libsystem_kernel.dylib 0x32ed0 + 104 2 libsystem_kernel.dylib 0x32f04 (Missing UUID 08f02c6b1443366598054a8bee87346e) 3 TCC 0x68f8 + 172 4 TCC 0x2e88 + 598 5 TCC 0xa1f8 + 624 6 libxpc.dylib 0x1eb44 + 116 7 libxpc.dylib 0x114b8 + 80 8 libdispatch.dylib 0x4380 + 20 9 libdispatch.dylib 0x21b04 + 344 10 libdispatch.dylib 0x16d40 + 336 11 libdispatch.dylib 0x16628 + 500 12 libsystem_pthread.dylib 0x199c _pthread_wqthread + 344 13 libsystem_pthread.dylib 0x1a04 start_wqthread + 8
1
0
248
Apr ’24
Xcode 15.0.1 unable to change Project Version.
I successfully submitted my project to App Store Connect, and got it approved for external TestFlight testing. I have made updates to my project, and am trying to submit another build, but am getting the error: "The value for key CFBundeShortVersionString[1.0] in info.plist must contain a higher version.." I attempt to change both the short bundle version, and regular bundle version to 1.1.0 without any luck. I also attempted to go into the "Versioning" within build settings to change both the current project version and marketing version to 1.1.0 without any luck. I am confused what is going on, and why my build is not just incrementing as expected. Any suggestions is very appreciated.
0
0
259
Mar ’24
App Crashes on iOS 12.5.6 Device - Seeking Help!
Hello iOS developers, I'm encountering a persistent crashing issue with my React Native app on an iOS 12.5.6 device. I'm reaching out to the community for guidance in troubleshooting and resolving this problem. Here are the details: Description: My app, built using React Native version 0.71.4, runs smoothly on newer iOS versions and in the development environment. However, when I install and launch the app on an iOS 12.5.6 device, it crashes immediately after the splash screen. Environment: macOS: Version 14.1.1 Xcode: Version 15.0.1 React Native: 0.71.4 Target iOS device: iOS 12.5.6 I kindly request your assistance in resolving this issue. If you have any suggestions, insights, or experiences with similar problems, please share them. Any code snippets or specific troubleshooting steps you recommend would be greatly appreciated. I have attached the log file from the iOS device for your reference. Thank you for your time and support! Best regards,
2
0
317
Mar ’24
UIPasteboard Item on MacOS is Not Expiring
Hello, When running an iPad app on Apple Silicon (M1) the expirationDate OptionKey of the UIPasteboard has no impact, i.e. the copied value is never removed from the clipboard. The following code works perfectly on iOS, however, behaves how I described above on macOS. let currentDate = Date() let expireDate = currentDate.addingTimeInterval(TimeInterval(90)) UIPasteboard.general.setItems([[UIPasteboard.typeAutomatic: myString]], options: [UIPasteboard.OptionsKey.expirationDate: expireDate]) Is this a bug? I am on Swift 5.10. Thank you!
1
0
309
Mar ’24
AppStoreConnect upload error ITMS-90432 - Unexpected file found in Frameworks
Since yesterday (03/22/24) we are unable to upload new or existing builds to AppStoreConnect. We get the following error - “Error ITMS-90432 Unexpected file found in Frameworks. MyApp.app/Frameworks/Configurations” file is in the Frameworks directory, but the Swift runtime libraries are the only files permitted in that directory. Please remove this file and upload a new build. (ID: 57e219ea-d27e-465d-9e9b-ec41d3a0b1f7). We have tried rebuilding targerts with no changes for Builds that use to upload ok and they now get the same error too. Is this an appstoreconnect bug? If not where is the Frameworks directory and how do we remove the file?
1
0
421
Mar ’24
Object 0x10bee2ff0 of class _DictionaryStorage deallocated with non-zero retain count 2
HI! Trying to figure out a particularly odd crash report (via crashlytics). Crashed: com.apple.main-thread 0 libsystem_kernel.dylib 0x7558 __pthread_kill + 8 1 libsystem_pthread.dylib 0x7118 pthread_kill + 268 2 libsystem_c.dylib 0x1d178 abort + 180 3 libswiftCore.dylib 0x3b93a8 swift::fatalError(unsigned int, char const*, ...) + 134 4 libswiftCore.dylib 0x3b93c8 swift::warningv(unsigned int, char const*, char*) + 30 5 libswiftCore.dylib 0x3bdfd8 swift_deallocPartialClassInstance + 190 6 libswiftCore.dylib 0x3bde28 _swift_release_dealloc + 56 7 libswiftCore.dylib 0x3bec4c bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 132 8 PSStore 0xab8de0 ThankYouViewController.viewCleanup() + 32 (TwoPhaseCommitHelper.swift:32) Complete stackTrace here com.predictspring.pos_issue_63a57f567d9db225552c2cd24d915564_crash_session_7dfdc13304324dd39f1e60b48d20a6af_DNE_0_v2_stacktrace.txt The stack trace line that refers to our code points to a specific implementation of a ThreadedDictionary where we are removing all the objects inside the internal storage: We have not been able to reproduce this crash, however we are seeing multiple instances in our crash reports for it (All instances happening in iPadOS + 16.4.1 devices). Is there anything relevant to take a look in the first 7 frames of the crash report to understand what could be the issue? While researching on this, we identified a post with a very similar stacktrace entries: https://developer.apple.com/forums/thread/729196?login=true&page=1#752337022 We are not using GC or Unity, however the first entries in the stack trace look very similar. Rgds!
6
0
597
Mar ’24
Crashing in iOS
Hello, I developed a flutter app. But its crashing in review I got. I am attaching the crash report. Can someone help in that. Thanks so much crashlog-6B4650EA-FAC7-4D88-B3B6-FC8951C5C871.txt crashlog-D4F6B942-0A15-4613-9E43-E93BD671BA0B.txt
1
0
407
Mar ’24
Crash
2024-03-18 15:13:19.549232+0800 Xeena[5316:4106501] -[__NSCFString containsObject:]: unrecognized selector sent to instance 0x6000014393e0 2024-03-18 15:13:19.599811+0800 Xeena[5316:4106501] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString containsObject:]: unrecognized selector sent to instance 0x6000014393e0' *** First throw call stack: ( 0 CoreFoundation 0x0000000118e168ab __exceptionPreprocess + 242 1 libobjc.A.dylib 0x000000010f06eba3 objc_exception_throw + 48 2 CoreFoundation 0x0000000118e25ab8 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0 3 CoreFoundation 0x0000000118e1ad71 ___forwarding___ + 1431 4 CoreFoundation 0x0000000118e1d068 _CF_forwarding_prep_0 + 120 5 UIKitCore 0x0000000129c9b3b7 -[UIApplication _checkBackgroundRefreshAPIAdoption] + 169 6 UIKitCore 0x0000000129c7520e -[UIApplication _runWithMainScene:transitionContext:completion:] + 1023 7 UIKitCore 0x00000001290a18e5 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 179 8 UIKitCore 0x0000000129c716e4 -[UIApplication _compellApplicationLaunchToCompleteUnconditionally] + 59 9 UIKitCore 0x0000000129c71aaf -[UIApplication _run] + 958 10 UIKitCore 0x0000000129c769ef UIApplicationMain + 123 11 Xeena 0x0000000102a8b350 main + 96 12 dyld 0x000000010e7bf2bf start_sim + 10 13 ??? 0x000000020640f41f 0x0 + 8694854687 ) libc++abi: terminating with uncaught exception of type NSException` react native projects crash on emulators after running locally, but on android machines there is no problem
1
0
245
Mar ’24
Terminating app due to uncaught exception 'NSInvalidArgumentException'
2024-03-18 15:13:19.549232+0800 Xeena[5316:4106501] -[__NSCFString containsObject:]: unrecognized selector sent to instance 0x6000014393e0 2024-03-18 15:13:19.599811+0800 Xeena[5316:4106501] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString containsObject:]: unrecognized selector sent to instance 0x6000014393e0' *** First throw call stack: ( 0 CoreFoundation 0x0000000118e168ab __exceptionPreprocess + 242 1 libobjc.A.dylib 0x000000010f06eba3 objc_exception_throw + 48 2 CoreFoundation 0x0000000118e25ab8 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0 3 CoreFoundation 0x0000000118e1ad71 forwarding + 1431 4 CoreFoundation 0x0000000118e1d068 _CF_forwarding_prep_0 + 120 5 UIKitCore 0x0000000129c9b3b7 -[UIApplication _checkBackgroundRefreshAPIAdoption] + 169 6 UIKitCore 0x0000000129c7520e -[UIApplication _runWithMainScene:transitionContext:completion:] + 1023 7 UIKitCore 0x00000001290a18e5 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 179 8 UIKitCore 0x0000000129c716e4 -[UIApplication _compellApplicationLaunchToCompleteUnconditionally] + 59 9 UIKitCore 0x0000000129c71aaf -[UIApplication _run] + 958 10 UIKitCore 0x0000000129c769ef UIApplicationMain + 123 11 Xeena 0x0000000102a8b350 main + 96 12 dyld 0x000000010e7bf2bf start_sim + 10 13 ??? 0x000000020640f41f 0x0 + 8694854687 ) libc++abi: terminating with uncaught exception of type NSException It's a crash log. react native projects crash on emulators after running locally, but on android machines there is no problem
1
0
253
Mar ’24
BPA 100 Connection/Capture Issues
Hello, I’m trying to use the Frontline Teledyne Lecroy BPA100 Bluetooth Protocol Analyzer with Apples ATS v7.15.0 to capture Bluetooth connections between our device and another companies radio (or troubleshoot the lack thereof more accurately). While the probe physically doesn’t display any signs of life, it does seem to get detected by ATS when I plug it in as the field in ATS Capture “BPA 100/600” autofill’s with “FBA41199”. But it tells me this When I do try to reconnect the probe ATS crashes. Is the device broken?
1
0
338
Mar ’24
How to change the resolution of my mac (designed for ipad)?
I developed an iOS application, and during the debugging process in Xcode, I can choose between a real device or my Mac (designed for iPad). When I select my Mac (designed for iPad), a window pops up on my Mac machine. I would like to change the resolution of this pop-up window to obtain a larger window so that I can display more debugging information in real time. Does anyone know how to do this?
1
0
278
Mar ’24
macOS 14.4 EXC_BAD_ACCESS (SIGSEGV)
When I try to open Terminal, there are some errors. I have tried to fix these errors, but I cannot. I hope anyone could help me. ================================================ Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000060004467e7fc Exception Codes: 0x0000000000000001, 0x000060004467e7fc Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 Terminating Process: exc handler [1171] VM Region Info: 0x60004467e7fc is not in any region.
1
0
330
Mar ’24
Is there a trick to viewing an EnvironmentObject in Xcode debugger? They currently show up as invalid Expression.
I am trying to watch an @EnvironmentObject in the Xcode debugger and it comes up as an Invalid Expression in the View pane. If I want to view it, I need to declare it as a local variable and then assign it the value of the passed in @EnvironmentObject. While not impossible, it's a lot of work. Or maybe I am doing something incorrectly and this is a symptom of that? Would like to resolve this. encl: Example code &amp; Screenshot, where choice is the passed/unviewable EnviornmentObject and ch is the local variable I use to view it in the debugger Project "TestingApp" File: TestingApp import SwiftUI @main struct TestingApp: App { @StateObject private var choice = Choices() var body: some Scene { WindowGroup { ContentView() .environmentObject(choice) } } } File: Choices import Foundation @MainActor class Choices: ObservableObject { @Published var aChoice = 1 @Published var bChoice = 2 } File: ContentView import SwiftUI struct ContentView: View { @EnvironmentObject private var choice: Choices var body: some View { VStack { let ch = choice Text("\(choice.aChoice)") .font(.largeTitle) .padding(.bottom) Text("2") .font(.largeTitle) } .padding() } } #Preview { ContentView() }
0
0
274
Mar ’24