Debugging (native) Framework when using Carthage

I am developing my own Swift infrastructure that will be used privately between my two applications. I use Carthage to manage this and other dependencies.

Finally, I mastered the platform and connected it to one of my applications, and it is not surprising that the application crashes in the new framework code.

I would like to debug the framework code. I looked through some articles that talk about:

  • Copy dsym files and
  • Compilation with debugging information.

Unfortunately, the articles do not provide much detail (and I'm not a very experienced iOS developer or Carthage user, so that they implicitly know them).

Can someone provide a recipe on how to configure the application so that the private code of the frame is not optimized, and I can enter the code of the framework from the hosting application?

Thanks Peter ...

+4
source share
1 answer

Here are two options.

1. Debugging structure in the main project

Follow step 4 of the Carthage guide , and then you can run and debug your private infrastructure.

When debugging information is copied to the embedded products directory, Xcode will be able to symbolize the stack trace whenever you stop at a breakpoint. It will also allow you to go through third-party code in the debugger.

2.

  • .
  • .xcodeproj . ( Xcode).

.

  • .xcodeproj .
  • .
  • carthage update
+2

Source: https://habr.com/ru/post/1650739/


All Articles