Using Cocoapods:
- Create/Update your Podfile with the following contents
target 'YourAppTargetName' do
use_frameworks!
pod 'NordicDFU'
end
- Install dependencies
pod install
- Open the newly created
.xcworkspace
and begin working on your project. - If Xcode asks to migrate code to Swift 5.5, choose Later. (The codebase is Swift 5.5 already)
- Click on the
Pods
project, then go to theBuild Settings
- Click on the
NordicDFU
target, then set theUse Legacy Swift version
setting toNo
- Repeat the same for the
ZIPFoundation
target. - Build the project, it should now succeed.
- Import the library to any of your obj-c classes by using
@import NordicDFU;
and begin working on your project.
Currently, the only tested and supported method for Obj-C projects is using Cocoapods.