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
- Clone the private framework source locally.
- Drag the framework's
.xcodeproj
into your main project. (Do not have both projects open in Xcode). - remove crthage entry form
carthageInput.xcfilelist & carthageOutput.xcfilelist
- 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 nameEmbed & sign
Now you can develop on your private framework and test them all within your main project. Once done
- Remove reference to framework
.xcodeproj
from main project. - Create a new release of your framework.
- Update main project to use newer version using standard
carthage update