I have recently started to experience the debugger not stopping at breakpoints and showing source files. Instead it shows the assembly instructions and it seems to have started happening for others on my team. I thought maybe it was a setting somewhere in our projects so I created a new project with unit tests and even it does not work normally.
The only recent change has been to do debugging with iOS 14 while using Xcode 11.3 due to still having some projects using Swift 4. We've copied the Device Support from the latest version of Xcode to run the app on the device.
I have also tried debugging with an iPhone 6s running iOS 12 and also with the Simulator while running unit tests. In every case on this Mac I am not able to get source files to be displayed when the debugger stops at a breakpoint.
And I have also tried running test unit tests for this project with Xcode 11.5. It also does not work.
What could be preventing it from working?
Post not yet marked as solved
environment: macOS10.15.5 (19F101) and xcode11.4.1crash: when my applicatopn debug or export IPA is running on the iPhone, when I forcibly quit the operation, there will be an abnormal crash, the log is as followsThread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000187c3ad88 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000187b531e8 pthread_kill$VARIANT$mp + 136
2 libsystem_c.dylib 0x0000000187aa6644 abort + 100
3 libsystem_malloc.dylib 0x0000000187b40ba0 _malloc_put + 0
4 libsystem_malloc.dylib 0x0000000187b40d58 malloc_report + 60
5 libsystem_malloc.dylib 0x0000000187b3608c free + 536
6 libc++.1.dylib 0x0000000187cbd16c std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator >::~basic_string() + 32
7 libsystem_c.dylib 0x0000000187a874c8 __cxa_finalize_ranges + 384
8 libsystem_c.dylib 0x0000000187a877d8 exit + 24
9 UIKitCore 0x000000018bef58f0 -[UIApplication terminateWithSuccess] + 0
10 UIKitCore 0x000000018b695b14 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 124
11 UIKitCore 0x000000018b69579c -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 216
12 UIKitCore 0x000000018beeb98c -[UIApplication workspaceShouldExit:withTransitionContext:] + 212
13 FrontBoardServices 0x000000018cfb8490 -[FBSUIApplicationWorkspaceShim workspaceShouldExit:withTransitionContext:] + 84
14 FrontBoardServices 0x000000018cfe35ac __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke_2 + 76
15 FrontBoardServices 0x000000018cfc97ec -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232
16 FrontBoardServices 0x000000018cfe353c __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke + 124
17 libdispatch.dylib 0x0000000187b0b524 _dispatch_client_callout + 16
18 libdispatch.dylib 0x0000000187ab4434 _dispatch_block_invoke_direct$VARIANT$mp + 224
19 FrontBoardServices 0x000000018d008440 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
20 FrontBoardServices 0x000000018d00810c -[FBSSerialQueue _queue_performNextIfPossible] + 404
21 FrontBoardServices 0x000000018d008634 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
22 CoreFoundation 0x0000000187dc3b64 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
23 CoreFoundation 0x0000000187dc3abc __CFRunLoopDoSource0 + 80
24 CoreFoundation 0x0000000187dc3244 __CFRunLoopDoSources0 + 184
25 CoreFoundation 0x0000000187dbe274 __CFRunLoopRun + 788
26 CoreFoundation 0x0000000187dbdc34 CFRunLoopRunSpecific + 424
27 GraphicsServices 0x0000000191f0738c GSEventRunModal + 160
28 UIKitCore 0x000000018bef022c UIApplicationMain + 1932
29 xxxxxxx 0x0000000104d7e09c main (main.mm:32)
30 libdyld.dylib 0x0000000187c45800 start + 4but the same project running on macOS10.15 (19A583) and xcode11.3 (11C29) No problemso did the system update to upgrade some configurationthank you!!!
Post not yet marked as solved
Can anyone help and provide guidance on how to add debug buttons to the Touch Bar?According to the Help text, it should be possible to customize teh Touch Bar, but I am unable to get this to work at all. The options shown when I View -&gt; Customize Touch Bar are very limited, and do not give me options to add Debug related buttons.Thanks.CUSTOMIZE XCODECustomize the Touch Bar controlsCustomize the Touch Bar controls for the source editor, Playground editor, Interface Builder, view debugger, and memory graph debugger.Open the desired editor or debugger.Choose View &gt; Customize Touch Bar.Add, rearrange, or remove a button in the Touch Bar.Add a button: Drag a button from the screen to the Touch Bar; buttons in the Touch Bar jiggle slightly.Rearrange a button: On the Touch Bar, drag a button do the desired location.Remove a button: Drag a button from the Touch Bar to the screen.On the Touch Bar, tap Done.
Post not yet marked as solved
I'm integrating a 3rd party library in my project. After updating to the latest version and switching from regular frameworks to XCframework I've started seeing this issue:Whenever I'm trying to inspect an object from the 3rd party library via LLDB console, e.g.po <object.property>i'm getting this error:error: Couldn't lookup symbols:
dispatch thunk of <...>At the same time I can inspect the object in the Variables ViewAny idea if this is an integration or framework distribution issue ?
Post not yet marked as solved
Recently, I have upgraded my Xcode version from 9.2 to 11.3.1. My project, which was written in Swift 4, worked completely fine in 9.2. However, when trying to run it in 11.3.1, I have been experiencing random "EXC_BAD_ACCESS" crashes in areas of code that previously worked just fine. Now, the areas of code that are being affected are essentially identical to previous sections of the code, and when stepping through the code, every condition appears to be working just fine (nothing is nil or anything like that). I enabled zombie objects to check for deallocation, but I found nothing. Is there any particular issue with regards to upgrading to Xcode 11 I should be aware of, and any ideas of what might be causing this?
When unzipped an ipa file, I found some *.symbols files in the ./Symbols folder:Symbols
├── 0622D177-3DDB-317B-B4C7-08BEC26BEB0D.symbols
├── 2E37B62A-0764-3C92-876E-A83744355E71.symbols
├── 39208D90-C91E-3F4F-8162-C19B4E4037CE.symbols
├── 396D29A9-8DCA-3A77-8B64-F2B57030D5DA.symbols
├── 48A24338-2A05-39FA-B767-75162FEF155E.symbols
├── 522D51C3-6B15-3D61-B6EF-2EFB0D95776D.symbols
├── 5CFF80E9-E21B-3329-B55C-E6362DAA9200.symbols
└── 83E736C8-05C6-36D9-970C-E2B7328DF09A.symbolsIt seems the file name of the *.symbols files are the same as the dsym file. What are the symbols files? And what is the difference between *.symbols files and dsym?
Hello,The app is in production/testfilght and I have seen this crash in Xcode Organizer. The highest percentage of such crashes.It is happening on some of the devices that run iOS 13.0 ~ 13.3.So I suppose it is happening while lunching the app.One of the crash reports is on: https://gist.github.com/***7758258/0bdd45007a82003b1e96669ad33b5265Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001944b8634 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001944b7aa0 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x0000000194660288 __CFRunLoopServiceMachPort + 216 (CFRunLoop.c:2575)
3 CoreFoundation 0x000000019465b3a8 __CFRunLoopRun + 1444 (CFRunLoop.c:2931)
4 CoreFoundation 0x000000019465aadc CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)
5 GraphicsServices 0x000000019e5fb328 GSEventRunModal + 104 (GSEvent.c:2246)
6 UIKitCore 0x000000019876863c UIApplicationMain + 1936 (UIApplication.m:4773)
7 MYAPP 0x00000001047e8320 main + 152 (main.m:16)
8 libdyld.dylib 0x00000001944e4360 start + 4
Post not yet marked as solved
I've got a macOS app with a "Helper" (LoginItem) app that I'd like to attach the debugger to in order to debug the communication between the two.I realize hardening a target makes it impossible to attach the Xcode debugger to it, however I've created a separate entitlements file for Debug mode, turned "Enable Hardening" OFF for both Debug targets and have also added a "com.apple.security.get-task-allow" set to "YES" in the entitlement files for both debug targets. Still, I see this:macOSTaskPolicy: (com.apple.debugserver) may not get the taskport of (com.b) (pid: 4144): (com.b) is hardened, (com.b) doesn't have get-task-allow, (com.apple.debugserver) is a declared debuggerI'm unable to debug the helper and it's frustrating. How can I disable SIIP or whatever it takes to get this to work?
Post not yet marked as solved
My macOS app compiles and runs fine, but since switching to Xcode 11, I can no longer debug from breakpoints. The debugger always crashes with a bunch of messages like this:warning: Swift error in scratch context: /foobar/Foo-Bridging-Header.h:14:9: note: in file included from /foobar/Foo-Bridging-Header.h:14:
#import "TPPreciseTimer.h"
^
error: /foobar/Timer/TPPreciseTimer.h:9:9: error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
^
/foobar/Timer/TPPreciseTimer.h:9:9: note: did not find header 'Foundation.h' in framework 'Foundation' (loaded from '/System/Library/Frameworks')
#import <Foundation/Foundation.h>
^
error: failed to import bridging header '/foobar/Foo-Bridging-Header.h'
.
Shared Swift state for Foo has developed fatal errors and is being discarded.
REPL definitions and persistent names/types will be lost.
Message from debugger: The LLDB RPC server has crashed. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.Anyone know a workaround for something like this?My coworkers still on Xcode 10.3 are not having this issue with the same codebase.
Post not yet marked as solved
When I attempt to launch an app from Xcode 11 (gm seed 2) to my attached iPhone running iOS 13 the I see the app launch with a white screen but then the iOS process hangs for about *60 seconds* before the app finishes launching. If I un-check "debug executable" on the target then this behavior does not happen. If I launch the app on the phone directly (without xcode) it launches normally. If I launch the app on the phone and attempt to attach the debugger from xcode I get the same (one minute) hang.This only happens on one of my machines even though both are using the same setup (only diff is that one is a laptop and one is a desktop). So I am assuming something is wrong or corrupted with the "debug support" that was installed on first connect to the new xcode... But I can find no reference to how to re-init that. I have tried the "unpair phone" option in devices in xcode but it does nothing. I don't see anything in settings related to developer profiles or debug symbols.Anything I can do to reset the phone with respect to debgging support / symbols installed by xcode? Any other thoughts?thanks,Pat
Post not yet marked as solved
Xcode debug my app, I find some thread no stack, only 0x00000000 (but not crash).Stack info:error: memory read failed for 0x0I think stack overflow, so I try use tool "Address Sanitizer", but not found too.Why is this happening, xcode no stack?Screenshot url:https://i.stack.imgur.com/N0wGW.png
Post not yet marked as solved
Running fine in simulator but crashes in device.No crash logs recorded.In line error shown after launching the app Thread 1: EXC_BAD_ACCESS (code=1, address=0x81b4288100000002).No main or didFinishLaunchingWithOptions is called yet.Tried re-installing the application. Tried "Eare All Content and Settings" but it does not work.Enabled zombie objects but even that did not help(no logs recorded).main methodint main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); }}
Post not yet marked as solved
Why is the line number 0 for my source code in symbolicated crash log?At line 4 in Thread 0, the line number is 0 for (MyCodeModule.swift:0). Why is that? Is there a way to get more details about where it crashed?This is from a crash log a customer sent. The crash seems to be coming from somewhere in string processing routines.Are Swift line number references only delivered for functions/methods in Swift classes, but not free-standing functions?Also, is there a way to get symbolicated names for the libswiftCore.dylib lines in the crashed thread?Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libswiftCore.dylib 0x0000000104c04324 0x104948000 + 2868004
1 libswiftCore.dylib 0x0000000104bcbb6c 0x104948000 + 2636652
2 libswiftCore.dylib 0x00000001049c48fc 0x104948000 + 510204
3 libswiftCore.dylib 0x0000000104bd4f14 0x104948000 + 2674452
4 MyAppName 0x0000000104536e00 specialized MyFunctionOne(_:parameter:) + 339456 (MyCodeModule.swift:0) <-- HERE
5 MyAppName 0x000000010455c3b8 MyController.myMethodTwo(_:parameter:) + 492472 (MyController.swift:1090)Other pertinent lines from crash log:Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000020
VM Region Info: 0x20 is not in any region. Bytes before following region: 4367204320
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START --->
__TEXT 00000001044e4000-00000001044e8000 [ 16K] r-x/r-x SM=COW ...pp/MyAppName
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Triggered by Thread: 0
Filtered syslog: None found
Hello,I am trying to submit my app to TestFlight. But the build didn't pass the tests. ITunes Connect rejected my build. The reason is "Binary Rejected: Guideline 2.1 - Performance - App Completeness We were unable to review your app as it crashed on launch. We have attached detailed crash"The app works well on my device as an internal tester (via TestFlight).I precise that I used Xamarin.iOS to develop the app.I have some difficulties to find the source of the problem, can you help me? Here is the crash log:https://pastebin.com/HyTLXiAYThanks in advance for your help!Jérôme
Post not yet marked as solved
I have never seen this before, does anyone have any idea on this one?This came from a crash log, wont post the whole thing, but...Date/Time: 2017-11-20 12:19:23.8143 +1100Launch Time: 2017-11-20 06:32:37.3878 +1100OS Version: iPhone OS 11.1.1 (15B150)Baseband Version: 4.00.01Report Version: 104Exception Type: EXC_CRASH (SIGKILL)Exception Codes: 0x0000000000000000, 0x0000000000000000Exception Note: EXC_CORPSE_NOTIFYTermination Reason: Namespace SPRINGBOARD, Code 0x2bad45ecTermination Description: SPRINGBOARD, Process detected doing insecure drawing while in secure modeTriggered by Thread: 0Thread 0 name:Thread 0 Crashed:0 libsystem_kernel.dylib 0x0000000186570bc4 mach_msg_trap + 81 libsystem_kernel.dylib 0x0000000186570a3c mach_msg + 72 (mach_msg.c:103)2 CoreFoundation 0x0000000186a21c74 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)3 CoreFoundation 0x0000000186a1f840 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)4 CoreFoundation 0x000000018693ffb8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)5 GraphicsServices 0x00000001887d7f84 GSEventRunModal + 100 (GSEvent.c:2245)6 UIKit 0x000000018ff142f4 UIApplicationMain + 208 (UIApplication.m:3949)7 HubMobile 0x0000000100c25598 main + 88 (main.m:16)8 libdyld.dylib 0x000000018646256c start + 4
Post not yet marked as solved
I am trying to establish a remote connection to an iOS 11 device for debugging. Both devices are on the same Wi-Fi network, I'm using Xcode 9 and in Window->Devices and Simulators have checked the "Connect via network" box. I do not get a network icon next to my device, nor do I get any prompt on the device itself.The application if for point of sale and the Wi-Fi firewall has most ports blocked. For example, I know port 22 (ssh) is blocked - the only open port I'm certain of is 8080. I suspect the port used for debugging is blocked. What port(s) are used for debugging? I can request the network guys open a few ports if needed.
Post not yet marked as solved
Capture GPU Frame failed when i use Capture GPU Frame in iOS 10.2 iPhone6 Plus using Xcode 8.2.1.Logs:Unexpected Replayer TerminationReplayer terminated unexpectedly with error code 5.Please export the frame capture file then file a radartimed out (5)Capture GPU Frame works well in another project.
Post not yet marked as solved
I'm working with what appears to be a low-memory crash on an iPhone 4s that isn't mine. I can see JetsamEvent-<date> files being created, but I don't have a good way to get them back to my computer: they do not show up in the Device Logs sheet of Xcode's Devices window, and there's no way to manipulate them on the phone (under Settings > Diagnostics & Usage > Diagnostics & Usage Data) other than to manually select and copy all the text, and then mail or iMessage it to mysefl. There has to be a better way, right?Thanks.—Chris
Post not yet marked as solved
Hello, I am creating an app that needs internet in order to work. So if I try to build it on my test device with the new Network link conditioner and set the 100% loss profile the app won't even build. It gives me the security issue message. Even though my profile self is trusted on my device already. How am I able to test if the app won't build without internet connection?
I made a very small 4gb web application game wrapped with Cordova. What's annoying me is that everytime I lose the game or even just launch the application after quitting it is that it increases in size by about 0.15mb. Under settings>general>storage>manage storage, I see that it's all "Documents & Data."Is there any way to view what is in this folder? Because I'm not sure what's causing it; my best guess is that is either me pushing a score to an array in the web application's localStorage or the Cordova AdMob Pro plugin that I'm using because I prepare an interstitial ad after every time you lose in the game.