How can I debug a structure in Xcode?

I have two projects, one networkLibfor input and some other network function, the other for usingLibDemo. Therefore, I have the source code of both projects.

The project networkLibdisplays a framework called myNetKit.frameworkwhich is used usingLibDemo.

enter image description here

Now I successfully use it myNetKit.frameworkto log in, but sometimes it crashes, perhaps in main () without stack information, but sometimes Xcode gives me stack information, as shown below:

enter image description here

So I know where it crashes:

enter image description here

But it Utils.mdoesn’t show up, how does Xcode get the stack information and the failure line and ultimately open the source file for me? . Because I have the source code on my disk?

, myNetKit.framework , ?

.

+5
5

(networkLib) , . , . , .

+3

- ( Xcode 8):

:

  • ( "networkLib" )
  • ( "myNetKit.framework" ) ( "usingLibDemo" )
  • ( "usingLibDemo" ) .
  • ( "usingLibDemo" )
  • ( 5). Xcode 8: Debug- > Attach to Process- > .

framework.

+6

XCode, . , , . .

+4

, , . , .a . XCode , .

. XCode , . , XCode , .

, , , .

+4

You must debug the networkLib project, which displays the structure separately. There is no application in the structure, such as a structure, so the framework file inside another project cannot be debugged.

-1
source

All Articles