I have a xcode project which includes few cocoa pod files. When i put breakpoints in cocoa pod files, the debugger does not stops at those breakpoints, why? Could anyone have any idea about the same?.
I followed @UdaySingh's comment and it worked, I'm not sure why he didn't post an answer but I realize there are people who sometimes need a step by step and a visual guide tremendously helps. Here's the visual version of his comment.
In the project navigator select the blue project icon.
In Xcode 11.2.1 they switched the below photos to Project, it used to be under Target
Important. The pic below is from Project
in Xcode 11.2.1, this where you need to go:
Select Build Settings
.
The pic below is from Project
in Xcode 10.1, this is where you would need to go:
In the search field type Build Active Architecture
and make sure Debug
is set to Yes
In the same search field now type in Optimization Level
. Change Debug
and Release
to None
As per @matt's comments below also do a clean afterwards.
That's it
In my case, cleaning Pods directory and installing pods again worked. Spent hours for this so hope it would be helpful for someone who couldn't find a solution yet.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.