A guide to add Shake to your app without a dependency manager or a build automation tool.
By not using a dependency manager like CocoaPods, you won't be able to use the simple
pod update Shake command to
always pull the latest version of Shake SDK into your app. Instead, you will have to repeat the the first step described below.
Download Shake SDK from GitHub
Visit Shake iOS SDK GitHub repo, click the green Clone button and then Download ZIP. Shake directory will be downloaded to your computer — drag-and-drop the Shake.framework folder into your project. Then select Embed & Sign for Shake.xcframework in Xcode General tab; Frameworks, Libraries, and Embedded content (Xcode 11, Xcode 12).
Initialize Shake SDK
Initialize Shake in the
didFinishLaunchingWithOptions callback of your AppDelegate.
your-api-client-secret with the actual values you have in your workspace settings.
Some of the Shake features use swizzling, so to avoid any kind of swizzling conflicts, we recommend calling
Shake.start() before initializing all other frameworks.
Now select Product › Run in the menu bar. This first run will automatically add your app to your Shake Dashboard based on your app bundle ID.