Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
192 views
in Technique[技术] by (71.8m points)

ios - 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?.

question from:https://stackoverflow.com/questions/36399159/breakpoints-are-not-working-in-xcode-pod-files

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

enter image description here

In Xcode 11.2.1 they switched the below photos to Project, it used to be under Target

enter image description here

Important. The pic below is from Project in Xcode 11.2.1, this where you need to go:

enter image description here

Select Build Settings.

The pic below is from Project in Xcode 10.1, this is where you would need to go:

enter image description here

In the search field type Build Active Architecture and make sure Debug is set to Yes

enter image description here

In the same search field now type in Optimization Level. Change Debug and Release to None

enter image description here

As per @matt’s comments below also do a clean afterwards.

That's it


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...