<p>I have breakpoints set but Xcode appears to ignore them.</p>

[{'answer_id': 64793, 'author': 'AlanKley', 'author_id': 8761, 'author_profile': 'https://Stackoverflow.com/users/8761', 'pm_score': 5, 'selected': False, 'text': '<p>Go to the Xcode Debugging preferences.\nMake sure that "Load Symbols lazily" is NOT selected.</p>\n'}, {'answer_id': 66202, 'author': 'Scott Swezey', 'author_id': 9439, 'author_profile': 'https://Stackoverflow.com/users/9439', 'pm_score': 0, 'selected': False, 'text': '<p>When setting your break point, right click and you should get several options about how the break point is handled (log vars and continue, pause execution, etc)</p>\n\n<p>Also make sure the "Load Symbols lazily" is not selected in the debug preferences.</p>\n\n<p>(Applies to Xcode 3.1, not sure about past/future versions)</p>\n'}, {'answer_id': 67957, 'author': 'pestophagous', 'author_id': 10278, 'author_profile': 'https://Stackoverflow.com/users/10278', 'pm_score': 8, 'selected': True, 'text': '<p>First of all, I agree 100% with the earlier folks that said turn <strong>OFF</strong> <code>Load Symbols Lazily</code>.</p>\n\n<p>I have two more things to add.</p>\n\n<p>(My first suggestion sounds obvious, but the first time someone suggested it to me, my reaction went along these lines: "come on, please, you really think I wouldn\'t know better......  oh.")</p>\n\n<ol>\n<li><p>Make sure you haven\'t accidentally set "Active Build Configuration" to "Release."</p></li>\n<li><p>Under "Targets" in the graphical tree display of your project, right click on your Target and do "Get Info."  Look for a property named "Generate Debug Symbols" (or similar) and make sure this is CHECKED (aka ON).  Also, you might try finding (also in Target >> Get Info) a property called "Debug Information Format" and setting it to "Dwarf with dsym file."</p></li>\n</ol>\n\n<p>There are a number of other properties under Target >> Get Info that might affect you.  Look for things like optimizing or compressing code and turn that stuff OFF (I assume you are working in a debug mode, so that this is not bad advice).  Also, look for things like stripping symbols and make sure that is also OFF. For example, "Strip Linked Product" should be set to "No" for the Debug target.</p>\n'}, {'answer_id': 67978, 'author': 'gnkdl_gansklgna', 'author_id': 10470, 'author_profile': 'https://Stackoverflow.com/users/10470', 'pm_score': 0, 'selected': False, 'text': '<p>I haven\'t done Xcode in a bit, but I recommend that you disable "Zerolink" and "Load Symbols Lazily"; that will fix most problems. Zerolink is an abomination anyway.</p>\n'}, {'answer_id': 67986, 'author': 'crackity_jones', 'author_id': 1474, 'author_profile': 'https://Stackoverflow.com/users/1474', 'pm_score': 0, 'selected': False, 'text': "<p>There appears to be 3 states for the breakpoints in Xcode. If you click on them they'll go through the different settings. Dark blue is enabled, grayed out is disabled and I've seen a pale blue sometimes that required me to click on the breakpoint again to get it to go to the dark blue color.</p>\n\n<p>Other than this make sure that you're launching it with the debug command not the run command.  You can do that by either hitting option + command + return, or the Go (debug) option from the run menu.</p>\n"}, {'answer_id': 92120, 'author': 'Charles Anderson', 'author_id': 11677, 'author_profile': 'https://Stackoverflow.com/users/11677', 'pm_score': 2, 'selected': False, 'text': '<p>I have a lot of problems with breakpoints in Xcode (2.4.1). I use a project that just contains other projects (like a Solution in Visual Studio). I find sometimes that breakpoints don\'t work at all unless there is at least one breakpoint set in the starting project (i.e. the one containing the entry point for my code). If the only breakpoints are in "lower level" projects, they just get ignored.</p>\n\n<p>It also seems as if Xcode only handles breakpoint operations correctly if you act on the breakpoint when you\'re in the project that contains the source line the breakpoint\'s on.  </p>\n\n<p>If I try deleting or disabling breakpoints via another project, the action sometimes doesn\'t take effect, even though the debugger indicates that it has. So I will find myself breaking on disabled breakpoints, or on a (now invisible) breakpoint that I removed earlier.</p>\n'}, {'answer_id': 96338, 'author': 'AlanKley', 'author_id': 8761, 'author_profile': 'https://Stackoverflow.com/users/8761', 'pm_score': 0, 'selected': False, 'text': '<p>I believe that a project can also become corrupted in regards to breakpoints.  I have a project, for example, that  WILL NOT break on any breakpoints that it remembers from the previous session.  I first wrote about this <a href="http://blog.kleymeyer.com/2007/09/problem-with-breakpoints-in-xcode/" rel="nofollow noreferrer">here</a></p>\n'}, {'answer_id': 526816, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': "<p>I've had my breakpoints not work and then done Build / Clean All Targets to get them working again.</p>\n"}, {'answer_id': 792371, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>Also make sure that the AppStore distribution of the app is not also installed on the device.</p>\n'}, {'answer_id': 809610, 'author': 'Frank Szczerba', 'author_id': 8964, 'author_profile': 'https://Stackoverflow.com/users/8964', 'pm_score': 4, 'selected': False, 'text': '<p>I was just having this same issue (again). After triple-checking "Load symbols lazily" and stripping and debug info generation flags, I did the following:</p>\n\n<ol>\n<li>quit Xcode</li>\n<li>open a terminal window and cd to the project directory</li>\n<li>cd into the .xcodeproj directory</li>\n<li>delete everything except the .pbxproj file (I had frank.mode1v3 and frank.pbxuser)</li>\n</ol>\n\n<p>You can accomplish the same task in finder by right/option-clicking on the .xcodeproj bundle and picking "Show Package Contents".</p>\n\n<p>When I restarted Xcode, all of my windows had reset to default positions, etc, but breakpoints worked!</p>\n'}, {'answer_id': 1165645, 'author': 'davidcann', 'author_id': 2054, 'author_profile': 'https://Stackoverflow.com/users/2054', 'pm_score': 0, 'selected': False, 'text': '<p>Another thing to check is that if you have an "Entitlements" plist file for your debug mode (possibly because you\'re doing stuff with the Keychain), make sure that plist file has the "get-task-allow" = YES row.  Without it, debugging and logging will be broken.</p>\n'}, {'answer_id': 1802100, 'author': 'Soong', 'author_id': 219193, 'author_profile': 'https://Stackoverflow.com/users/219193', 'pm_score': 3, 'selected': False, 'text': '<p>See this post: <a href="http://complicatedtechnicalstuff.blogspot.com/2009/11/breakpoints-not-working-in-xcode.html" rel="noreferrer">Breakpoints not working in Xcode?</a>. You might be pushing "Run" instead of "Debug" in which case your program is not running with the help of gdb, in which case you cannot expect breakpoints to work!</p>\n'}, {'answer_id': 3410038, 'author': 'Damon McGIll', 'author_id': 411307, 'author_profile': 'https://Stackoverflow.com/users/411307', 'pm_score': 0, 'selected': False, 'text': '<p>I have Xcode 3.2.3 SDK 4.1 Breakpoints will fail at random. I have found if you clean the build and use the touch command under build they work again.</p>\n'}, {'answer_id': 4021024, 'author': 'Tim Keating', 'author_id': 9279, 'author_profile': 'https://Stackoverflow.com/users/9279', 'pm_score': 0, 'selected': False, 'text': "<p>Here's an obscure one I've run into: if you're working on a shared library (or a plugin), your breakpoints will go yellow on startup, which might cause you to hammer your keyboard in frustration and kill the debug process. Well, don't do that! The symbols won't get loaded until the app loads the library, at which point the breakpoints will become valid. I ran into this problem with a browser plugin... BPs were disabled until I browsed to a page that instantiated my plugin.</p>\n"}, {'answer_id': 7229283, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>I was facing the same problem when I wanted to debug a web plug-in where the custom executable was Safari 5.1.\nIt was working fine till upgraded my Safari to 5.1 from 4.0.5.\nOnce I installed Safari 4.0.5 again, all breakpoints started working without modifying any Xcode setting.</p>\n'}, {'answer_id': 8399696, 'author': 'Gavin', 'author_id': 524534, 'author_profile': 'https://Stackoverflow.com/users/524534', 'pm_score': 2, 'selected': False, 'text': '<p>I think the problem could be incompatibility between device versions and Xcode. I have this problem when attempting to debug on my iPhone 4S running iOS 5.0.1. I am still using Xcode 3.2.5. I got the symbols from the handset by selecting "use this device for development" in the Organiser window. This phone refuses to breakpoint however. My old 3GS <strong>will</strong> breakpoint, same Xcode project, same settings... just different device and it\'s running iOS 4.0. I guess this is an Xcode bug in 3.2.5, since I have the symbols. Having tried all the solutions posted here so far, I have decided the solution to my problem is to go ahead and upgrade to XCode 4. Perhaps you cannot debug effectively unless your base SDK is at least as high as the system on which to debug. Maybe that\'s obvious - can anyone confirm?</p>\n\n<p>Edit: I will update when I can confirm this is true.</p>\n'}, {'answer_id': 9704582, 'author': 'bneupaane', 'author_id': 1248690, 'author_profile': 'https://Stackoverflow.com/users/1248690', 'pm_score': 4, 'selected': False, 'text': '<p>For Xcode 4.x:\n   Goto Product>Debug Workflow and uncheck "Show Disassembly When Debugging".</p>\n\n<p>For Xcode 5.x\n   Goto Debug>Debug Workflow and uncheck "Show Disassembly When Debugging".</p>\n'}, {'answer_id': 11310391, 'author': 'brian.clear', 'author_id': 181947, 'author_profile': 'https://Stackoverflow.com/users/181947', 'pm_score': 1, 'selected': False, 'text': '<p>In Xcode 4</p>\n\n<pre><code>- Product menu &gt; Manage Schemes\n- Select the scheme thats having debugging problems (if only one choose that)\n- Click Edit button at bottom\n- Edit Scheme dialog appears\n- in left panel click on Run APPNAME.app\n- on Right hand panel make sure youre on INFO tab\n- look for drop down DEBUGGER:\n- someone had set this to None\n- set to LLDB if this is your preferred debugger\n- can also change BUILD CONFIGURATION drop down to Debug \n-      but I have other targets set to AdHoc which debug fine once Debugger is set\n</code></pre>\n'}, {'answer_id': 12680221, 'author': 'stephen', 'author_id': 963298, 'author_profile': 'https://Stackoverflow.com/users/963298', 'pm_score': 0, 'selected': False, 'text': '<p>If you are using subversion, just revert your project files (<strong>only</strong>) to the last time you knew the debugger was working.  </p>\n'}, {'answer_id': 12974214, 'author': 'MANIAK_dobrii', 'author_id': 1032151, 'author_profile': 'https://Stackoverflow.com/users/1032151', 'pm_score': 0, 'selected': False, 'text': '<p>Just solved this in <code>XCode 4.2</code>, none of above helped. The thing was (I\'m not sure what actually happened, but, maybe this helps someone): my teammate created new build configurations and updated project in SVN. I had old build configuration set up in Run Scheme settings, so the steps for me were:</p>\n\n<ol>\n<li>Product -> Edit Scheme...</li>\n<li>Select "Run %project_name.app%" (or whatever causes problem)</li>\n<li>In build configuration combo select that new build configuration from my teammate</li>\n</ol>\n\n<p>And that\'s all, breakpoints are back again. Hope this helps.</p>\n'}, {'answer_id': 13079168, 'author': 'user532477', 'author_id': 532477, 'author_profile': 'https://Stackoverflow.com/users/532477', 'pm_score': 0, 'selected': False, 'text': "<p>Another reason the breakpoints can turn yellow is if the application binary you are debugging has been modified since it was first run. In my case, I added a folder to the application's Contents/Resources folder after having debugged the program once. On the debug run after adding the folder, the breakpoints turned yellow and were ignored. I modified my procedure: I did a clean, a build, added the folder, then ran, and all was well.</p>\n\n<p>Perhaps Xcode (or OS X) creates and remembers its own digital signature of the application (which was <em>not</em> digitally signed) and then, sensing that the application was modified, refuses to try to set breakpoints. By making my mods before the first (debug) run of the application, the digital signature was made <em>with</em> my mods.</p>\n\n<p>All this on OS X 10.6.8 using Xcode 3.2.2.</p>\n"}, {'answer_id': 13684779, 'author': 'evya', 'author_id': 1442541, 'author_profile': 'https://Stackoverflow.com/users/1442541', 'pm_score': 2, 'selected': False, 'text': '<p>For Xcode 4:</p>\n<pre><code>go Product -&gt; Debug -&gt;  Activate Breakpoints\n</code></pre>\n<p>This is applicable for all Xcode version. Shortcut key is: <code>command key + Y.</code> Press this key combination to activate/deactivate breakpoints.</p>\n'}, {'answer_id': 14827233, 'author': 'Pushan ', 'author_id': 1263886, 'author_profile': 'https://Stackoverflow.com/users/1263886', 'pm_score': 0, 'selected': False, 'text': '<p>You can check one setting in target setting Apple LLVM Compiler 4.1 Code Generation Section\nGenerate Debug Symbol = YES</p>\n'}, {'answer_id': 18388985, 'author': 'Ian MacDonald', 'author_id': 2708650, 'author_profile': 'https://Stackoverflow.com/users/2708650', 'pm_score': -1, 'selected': False, 'text': "<p>I have Xcode Version 4.6.3 and Breakpoints were never working in sub-groups of included projects. The project would compile and run fine; it would even attach to the debugger and spit out NSLog output appropriately.</p>\n\n<p>The issue was related to my Header Search Paths. I had some of them set 'recursive' instead of the default 'non-recursive'. Changing them all to 'non-recursive' and updating all of the related imports appropriately fixed the problem.</p>\n"}, {'answer_id': 19820850, 'author': 'kakyo', 'author_id': 987846, 'author_profile': 'https://Stackoverflow.com/users/987846', 'pm_score': 0, 'selected': False, 'text': '<p>This happens from time to time with an iOS project at least. To fix it, I had to reboot the iOS device, quit Xcode, and rebuild the project.</p>\n'}, {'answer_id': 20190550, 'author': 'Perumal', 'author_id': 1395957, 'author_profile': 'https://Stackoverflow.com/users/1395957', 'pm_score': 1, 'selected': False, 'text': '<p>I found the problem. Somehow the "<em>Show Disassembly when debugging</em>" was enabled in my XCode which creates that problem. When I disabled it, all my debugger stopped in my source code.</p>\n\n<p>You can find it under: <code>Product-&gt;Debug Workflow-&gt;Show Disassembly</code> when debugging.</p>\n'}, {'answer_id': 22936389, 'author': 'Stan', 'author_id': 995711, 'author_profile': 'https://Stackoverflow.com/users/995711', 'pm_score': 1, 'selected': False, 'text': '<p>You can Activate / Disactivate Breakpoints in dropdown menu\n<img src="https://i.stack.imgur.com/1YUCL.png" alt="enter image description here"></p>\n'}, {'answer_id': 25783712, 'author': 'Rivera', 'author_id': 1049134, 'author_profile': 'https://Stackoverflow.com/users/1049134', 'pm_score': 0, 'selected': False, 'text': "<p>Having both Xcode 5 and 6 GM caused the former to lose breakpoint functionality (Xcode 6 betas were ok).</p>\n\n<p>I tried many of the suggested methods but finally gave up and I'm just using Xcode 6 now.</p>\n"}, {'answer_id': 26398151, 'author': 'Dave', 'author_id': 981499, 'author_profile': 'https://Stackoverflow.com/users/981499', 'pm_score': 2, 'selected': False, 'text': '<p>Came to this page with the same problem (C code in Xcode 6 not stopping at breakpoints) and none of the solutions above worked (the project was practically out of the box, settings-wise, so little chance for any of the debugger settings to be set to the wrong value)...</p>\n\n<p>After wasting quite some time reducing the problem, I finally figured out the culprit (for my code):</p>\n\n<p><strong>Xcode (/LLVM) does not like Bison-style <code>#line</code> preprocessor commands.</strong></p>\n\n<p>Removing them fixed the problem (debugger stopped at my breakpoints).</p>\n'}, {'answer_id': 28703588, 'author': 'Jack Bellis', 'author_id': 780039, 'author_profile': 'https://Stackoverflow.com/users/780039', 'pm_score': 2, 'selected': False, 'text': '<p>Deleting my Build folder solved the problem for me.</p>\n'}, {'answer_id': 29062395, 'author': 'df611', 'author_id': 2559007, 'author_profile': 'https://Stackoverflow.com/users/2559007', 'pm_score': 2, 'selected': False, 'text': '<p>For this, and also for  Xcode 6 and above make sure that the breakpoint state button is activated (the blue arrow-like button):</p>\n\n<p><img src="https://i.stack.imgur.com/xfByo.png" alt="enter image description here"></p>\n'}, {'answer_id': 29576169, 'author': 'William Jockusch', 'author_id': 246568, 'author_profile': 'https://Stackoverflow.com/users/246568', 'pm_score': 2, 'selected': False, 'text': '<p>If all else fails, instead of a breakpoint, you can call the following function:</p>\n\n<pre><code>void BreakPoint(void) {\n    int i=1;\n    #if !__OPTIMIZE__\n    printf("Code is waiting; hit pause to see.\\n");\n    while(i);\n    #endif\n}\n</code></pre>\n\n<p>To resume, manually set i to zero, then hit the resume button.</p>\n'}, {'answer_id': 30194669, 'author': 'Osk', 'author_id': 1773705, 'author_profile': 'https://Stackoverflow.com/users/1773705', 'pm_score': 2, 'selected': False, 'text': "<p>It has happened the same thing to me in XCode 6.3.1. \nI managed to fix it by:</p>\n\n<ul>\n<li>Going to <strong>View->Navigators->Show Debug Navigators</strong></li>\n<li>Right click in the <strong>project root -> Move Breakpoints</strong> (If selected the User option)</li>\n<li>(I also Selected the option <strong>share breakpoints</strong>, even though I'm not sure if that necessary).</li>\n</ul>\n\n<p>After doing that change I set the <em>Move breakpoints</em> options back to the project, and unselecting the <em>Share breakpoints</em> option, and still works. </p>\n\n<p>I don't exactly know why but this get my breakpoints back.</p>\n"}, {'answer_id': 31579906, 'author': 'user2067021', 'author_id': 2067021, 'author_profile': 'https://Stackoverflow.com/users/2067021', 'pm_score': 0, 'selected': False, 'text': '<p>On Xcode 6.4, I needed to reboot my Mac. </p>\n\n<p>(Tried enabling/disabling breakpoints, rebooting iOS device, restarting Xcode, deleting breakpoint files from the workspace package...)</p>\n'}, {'answer_id': 32082509, 'author': 'Richard', 'author_id': 4495850, 'author_profile': 'https://Stackoverflow.com/users/4495850', 'pm_score': 0, 'selected': False, 'text': '<p>I\'ve had problems with Xcode losing breakpoints when using the simulator and having the Scheme Launch setting to "wait for executable". Change that to "launch automatically" and breakpoints come back to life.</p>\n'}, {'answer_id': 33099960, 'author': 'hbk', 'author_id': 2012219, 'author_profile': 'https://Stackoverflow.com/users/2012219', 'pm_score': 4, 'selected': False, 'text': '<p>Another reason</p>\n\n<p>Set <code>DeploymentPostprocessing</code> to NO in BuildSettings - <a href="https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW53" rel="noreferrer">details here</a></p>\n\n<p>In short - </p>\n\n<blockquote>\n  <p>Activating this setting indicates that binaries should be stripped and\n  file mode, owner, and group information should be set to standard\n  values. [DEPLOYMENT_POSTPROCESSING]</p>\n</blockquote>\n\n<p><a href="https://i.stack.imgur.com/Hkx1t.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Hkx1t.png" alt="enter image description here"></a></p>\n'}, {'answer_id': 33753788, 'author': 'Oded Regev', 'author_id': 583425, 'author_profile': 'https://Stackoverflow.com/users/583425', 'pm_score': 6, 'selected': False, 'text': '<p>In Xcode 7, what worked for me was:</p>\n<ol>\n<li><p>Make sure that the <code>Target &gt; Scheme &gt; Run</code> - is in Debug mode (was Release)</p>\n</li>\n<li><p>Make sure to check the option &quot;Debug executable&quot;:</p>\n</li>\n</ol>\n<p><a href="https://i.stack.imgur.com/MeYpz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MeYpz.png" alt="Debug executable" /></a></p>\n'}, {'answer_id': 34574307, 'author': 'Benny Khoo', 'author_id': 1000466, 'author_profile': 'https://Stackoverflow.com/users/1000466', 'pm_score': -1, 'selected': False, 'text': "<p>In my case, I found out that the breakpoints have been accidentally deactivated. You can reactivate it again via <strong>Debug->Activate Breakpoints [Cmd+Y].</strong> If you notice grey'ed out breakpoint markers instead of the usual blue marker, this is likely the case. </p>\n\n<p>As it turned out you can always toggle breakpoints activation with Cmd+Y keys, you might have hits this combination key not noticing it. This report is based on Xcode 7.2.</p>\n"}, {'answer_id': 36445329, 'author': 'user3812138', 'author_id': 3812138, 'author_profile': 'https://Stackoverflow.com/users/3812138', 'pm_score': -1, 'selected': False, 'text': '<p>Thing to try : </p>\n\n<p>1 ) restart xcode\n2 ) select another simulator -- which was my case\n3 ) reboot mac.</p>\n\n<p>if none of this works. then look at the project settings. ( which is leeast possible thing. )</p>\n'}, {'answer_id': 41142298, 'author': 'kiri', 'author_id': 1577574, 'author_profile': 'https://Stackoverflow.com/users/1577574', 'pm_score': -1, 'selected': False, 'text': '<p>I had the similar issue. I re-installed xcode. that solved my problem</p>\n'}, {'answer_id': 45566782, 'author': 'smohta', 'author_id': 8032120, 'author_profile': 'https://Stackoverflow.com/users/8032120', 'pm_score': 1, 'selected': False, 'text': '<p>I tried all the above things but for me only deactivating the debugging breakpoints once and then activating them worked.</p>\n'}, {'answer_id': 49340486, 'author': 'Gaz Long', 'author_id': 1169858, 'author_profile': 'https://Stackoverflow.com/users/1169858', 'pm_score': 3, 'selected': False, 'text': "<p>This had me in Xcode 9 for half a frustrating day. It ended up been a simple debug setting.</p>\n\n<p>Go Debug > Debug Workflow and make sure 'Always Show Disassembly' is turned off. Simple as that. :(</p>\n"}, {'answer_id': 51417551, 'author': 'Strinder', 'author_id': 752385, 'author_profile': 'https://Stackoverflow.com/users/752385', 'pm_score': 3, 'selected': False, 'text': '<p>Solution for me with XCode 9.4.1 (did not stop at any breakpoint):</p>\n\n<p>Under build Target -> Build Settings -> Optimization Level:\nSwitched from "Optimize for speed" -> "No optimization" (now it\'s slower but works)</p>\n'}, {'answer_id': 55380235, 'author': 'Soropromo', 'author_id': 7398244, 'author_profile': 'https://Stackoverflow.com/users/7398244', 'pm_score': 4, 'selected': False, 'text': '<p>One of the possible solutions for this could be ....go to Product>Scheme>Edit scheme>..Under Run>info>Executable \ncheck "Debug executable".</p>\n'}, {'answer_id': 57423560, 'author': 'Lukas', 'author_id': 3405387, 'author_profile': 'https://Stackoverflow.com/users/3405387', 'pm_score': 3, 'selected': False, 'text': '<p>What solved it in my case was quite simple, in Xcode - Product - Clean Build Folder followed by Product - Run (not the Play Xcode button). </p>\n\n<p>(Had the issue on Xcode 11 -beta 4 after switching to unit testing with Xcode play button long press)</p>\n'}, {'answer_id': 58116577, 'author': 'T M', 'author_id': 1535428, 'author_profile': 'https://Stackoverflow.com/users/1535428', 'pm_score': 0, 'selected': False, 'text': '<p>I have started to get this issue when updated my xCode into Version 11.0 (11A420a).\nTo solved that I have installed additional simulator version 12.2 and updated my iPhone version into 13.1.\nNow both on iOs simulator and on my device break points get hit. </p>\n'}, {'answer_id': 58711168, 'author': 'Ashish Gupta', 'author_id': 8070547, 'author_profile': 'https://Stackoverflow.com/users/8070547', 'pm_score': 0, 'selected': False, 'text': '<p>In my case i was overriding the existing app store build with my build.I removed the same and its working now.</p>\n'}, {'answer_id': 59171863, 'author': 'Alok', 'author_id': 4809002, 'author_profile': 'https://Stackoverflow.com/users/4809002', 'pm_score': 0, 'selected': False, 'text': '<p>if you using Xcode Version 11.1 (11A1027) make sure you are not using the app store credential(provisioning profiles) , because in this case  build will be installed and no log or debugger will work, it took me hell lot of time to figure it out , updated Xcode has chagned . now build getting installed on the device without any warning.</p>\n'}, {'answer_id': 69503397, 'author': 'crifan', 'author_id': 1616263, 'author_profile': 'https://Stackoverflow.com/users/1616263', 'pm_score': 3, 'selected': False, 'text': '<h1>Issue</h1>\n<ul>\n<li>Background\n<ul>\n<li><code>Xcode</code>: <code>13.0</code>\n<ul>\n<li>code: <code>Objective-C</code></li>\n</ul>\n</li>\n</ul>\n</li>\n<li>Issue: added breakpoint, but not work\n<ul>\n<li><a href="https://i.stack.imgur.com/MqxHB.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/MqxHB.jpg" alt="enter image description here" /></a></li>\n</ul>\n</li>\n</ul>\n<h1>(possible) Reason and Solution</h1>\n<ul>\n<li><strong>Reason</strong>: Xcode bug\n<ul>\n<li><strong>Solution</strong>: <code>Product</code> -&gt;<code>Clean Build Folder</code>, then retry debug (multiple time)\n<ul>\n<li><a href="https://i.stack.imgur.com/ytAAQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ytAAQ.png" alt="enter image description here" /></a></li>\n</ul>\n</li>\n</ul>\n</li>\n<li><strong>Reason</strong>: disabled Debug\n<ul>\n<li><strong>Solution</strong>: enable it: <code>Product</code>-&gt;<code>Scheme</code>-&gt;<code>Edit Scheme</code>-&gt;<code>Run</code>-&gt;<code>Info</code>\n<ul>\n<li><code>Build Configuration</code> set to <code>Debug</code></li>\n<li>choose/select/enable: <code>Debug executable</code></li>\n<li><a href="https://i.stack.imgur.com/oOFz4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oOFz4.png" alt="enter image description here" /></a></li>\n</ul>\n</li>\n</ul>\n</li>\n<li><strong>Reason</strong>: disabled all breakpoint\n<ul>\n<li><strong>Solution</strong>: enable it: Debug panel -&gt; click breakpoint icon\n<ul>\n<li><a href="https://i.stack.imgur.com/7h45O.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7h45O.png" alt="enter image description here" /></a></li>\n</ul>\n</li>\n</ul>\n</li>\n<li><strong>Reason</strong>: debug info be optimized\n<ul>\n<li><strong>Solution</strong>: not optimize</li>\n<li>click Project -&gt; <code>Build Settings</code> -&gt; <code>Apple Clang - Code Generation</code> -&gt; <code>Optimization Level</code> -&gt; <code>Debug</code> make sure is <code>None[-O0]</code>\n<ul>\n<li><a href="https://i.stack.imgur.com/pXqOZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pXqOZ.png" alt="enter image description here" /></a></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h1>Related</h1>\n<h2>XCode\'s Symbolic breakpoint not work</h2>\n<ul>\n<li><strong>Background</strong></li>\n</ul>\n<p>XCode crash log</p>\n<pre><code>Terminating app due to uncaught exception \'NSInvalidArgumentException\', reason: \'*** -[__NSCFConstantString stringByAppendingString:]: nil argument\'\n</code></pre>\n<p>add XCode symbolic breakpoint</p>\n<p><code>-[__NSCFConstantString stringByAppendingString:]:</code></p>\n<p>but breakpoint not working</p>\n<ul>\n<li><strong>Solution</strong></li>\n</ul>\n<p>change to:</p>\n<p><code>-[NSString stringByAppendingString:]</code></p>\n<p>related doc: <a href="https://developer.apple.com/documentation/foundation/nsstring/1412307-stringbyappendingstring?language=objc" rel="noreferrer">stringByAppendingString:</a></p>\n'}, {'answer_id': 70875649, 'author': 'Mujahid Daud Khan', 'author_id': 1735196, 'author_profile': 'https://Stackoverflow.com/users/1735196', 'pm_score': 0, 'selected': False, 'text': '<p>For those who are facing issue in Swift Package and the breakpoints are not working. the issue is the <strong>case sensitivity</strong> of <code>path</code> property in of <code>target</code></p>\n<p><a href="https://i.stack.imgur.com/w88Zk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w88Zk.png" alt="screenshot of package path" /></a></p>\n<p>The path was set to <code>source</code>, Issue fixed once It is set to <code>Source</code></p>\n'}, {'answer_id': 74116953, 'author': 'Timur Zaitov', 'author_id': 17244346, 'author_profile': 'https://Stackoverflow.com/users/17244346', 'pm_score': 0, 'selected': False, 'text': '<p>In my case breakpoints were turning off themselves because the function in which I put them was <strong>private</strong> and was not available and never called. So check for <strong>access level</strong></p>\n'}]
['https://Stackoverflow.com/questions/64790', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/8761/']