Investigating bugs that a client of your framework is experiencing can be significantly easier if you're able to reproduce the issue locally in a debugger. As many clients are rightfully reluctant to share their source code, debugging a prebuilt binary is the next best step. This repository contains a collection of scripts that can assist with re-signing a prebuilt iOS application using your own signing identity and provisioning profile. This allows you to install and run the application on your device, and even to replace your own framework in the app bundle with a your own copy containing debugging code.
Starting with Test.ipa, containing a prebuilt version of Test.app provided by a user:
unzip Test.ipa && mv Payload Test
cd Test
prepare.rb Test.app 38F637AQG5 nz.net.bdash.Test.3P
sign.rb Test.app "iPhone Developer: Mark Rowe (RSYL4QFV9U)"
After modifying Test.app in any way (e.g., replacing a dynamic framework), re-run step 4.
Be sure to replace the team ID, bundle ID and signing identity with ones that are valid for your iOS developer account.
In Xcode's Devices window, select your attached iOS device. You can then drag and drop the signed .app into the Installed Apps section of the window. If an error occurs installing the app you can check the device's system log in the same window to see a more detailed error message.