Installation
Here you will find step-by-step instructions to get the iOS SDK running in your Xcode project.
To include the SDK, you will need to obtain access to a private Github repository.
Please request access by sending your Github account information to [email protected] or reach out to your contact person at NativeWaves.
The account will be added to the NativeWaves team as external developer and allows you to access the necessary repository.
Please note: only one Github account per organization is allowed.
The iOS SDK is delivered via Cocoapods or Swift Package Manager. You only need to apply one of the following variants. Choose whatever fits best for you.
- In Xcode, go to File > Add Packages
- Choose your preferred Dependency Rule ("Up to Next Major/Minor Version" recommended)
Check out the official Cocoapods Guides if you haven't used it yet.
1) In your Podfile, add the following lines:
2) Run from your Terminal:
3) Use <your-project>.xcworkspace instead of .xcodeproj
If you are using a different Github account than the one provided to NativeWaves for your development, you have to add credentials for a second Github account using SSH keys:
To do this, follow the next steps:
- Go to your .ssh folder and generate your key $ cd ~/.ssh $ ssh-keygen -t rsa -C "<my comment>" -f "<my-key-file-name>" It is recommended to prefix the file name with "github-\<name\>".
- Add the SSH key to your SSH agent $ ssh-add -K ~/.ssh/<my-key-file-name>
- Add to Github account
- $ pbcopy < ~/.ssh/<my-key-file-name>.pub
- Update IdentityFile
- $ nano ~/.ssh/config
- IdentityFile ~/.ssh/<my-key-file-name>
Also check out this guide for more details.