Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
310 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 Reply

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...