pod "SparkInspector"to your Podfile and you're done. Remember to remove it from your podfile before doing release builds.
Select your project in the Xcode sidebar, click 'Build Phases' and open the 'Link Binary with Libraries' section. Tap the '+' icon and add the following frameworks to your project:
- QuartzCore.framework - libz.dylib
Click 'Build Settings.' Click the 'Other Linker Flags' row and add two new flags for the Debug build configuration:
-framework SparkInspector. Be sure that you have added these to the Debug build configuration only.
Open the Spark Inspector app and select Spark Inspector > Reveal Framework in Finder from the menu bar. Drag and drop SparkInspector.framework into the sidebar of Xcode under 'Frameworks'.
Sidenote: We chose to keep the framework inside the application's bundle so it's automatically updated when you update the app. If you're working with a team and everyone has the app in their Applications folder, it should work fine. You might prefer using Cocoapods, or copying the framework into your project's directory and pushing it to source control.
Check that the framework was NOT added to the "Link Binary with Libraries" phase in your target's build settings. If it is, it will be linked into your binary when you do release builds and may cause your app to be rejected from the App Store. If it's listed there, remove it now.
Build and run your application. When it launches, it will appear in the target dropdown of the Spark Inspector. Running your app on a real device? The Spark Inspector uses Bonjour to find your app, so you need to make sure that your device and your Mac are on the same wireless network.