Debugging (owned) Framework when using Carthage Debugging (owned) Framework when using Carthage swift swift

Debugging (owned) Framework when using Carthage


Here are two options.

1. Debug framework within main project

Follow step 4 of the Carthage guide and then you should be able to step through and debug your private framework.

With the debug information copied into the built products directory, Xcode will be able to symbolicate the stack trace whenever you stop at a breakpoint. This will also enable you to step through third-party code in the debugger.

2. Modify framework within main project

  1. Clone the private framework source locally.
  2. Drag the framework's .xcodeproj into your main project. (Do not have both projects open in Xcode).
  3. remove crthage entry form carthageInput.xcfilelist & carthageOutput.xcfilelist
  4. remove the framework from project -> target -> general -> frameworks libraries and embedded content then add it using the + sign from the dragged project. then you will see beside the framework name Embed & sign

Now you can develop on your private framework and test them all within your main project. Once done

  1. Remove reference to framework .xcodeproj from main project.
  2. Create a new release of your framework.
  3. Update main project to use newer version using standard carthage update