An example app using the Ampli Objective-C SDK
You will need to do the following before running the app. 1.Set up environment variable with your API keys
- Go to
Edit Scheme > Run > Arguments > Environment Variables
section - Set your Amplitude API key with name
AMPLITUDE_API_KEY
pod install
- Open
AmpliObjectiveCSampleApp.xcworkspace
with Xcode
You can run the app using the events from our sample tracking plan. This will log events to your Amplitude project.
- Just click on run in Xcode
If you want to use your own tracking plan and Ampli SDK
npm i -g @amplitude/ampli
ampli pull
- Update
AppDelegate.m
orViewController.m
to use the events from your tracking plan
- README.md - you are here *
- Podfile - pods dependency
- AmpliObjectiveCSampleApp/
- AppDelegate.m - Example user app using Ampli SDK. A good place to start.
- ViewController.m - Example user app using Ampli SDK. A good place to start.
- Ampli/
- Ampli.h - Generated SDK, don't modify by hand. Update with
ampli pull
- Ampli.m - Generated SDK, don't modify by hand. Update with
ampli pull
- schema.json - The full event schema for the tracking plan
- Ampli.h - Generated SDK, don't modify by hand. Update with