简体   繁体   中英

Breakpoints are not working in xcode pod files

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM