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
.xcworkspaceand 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
Podsproject, then go to theBuild Settings - Click on the
NordicDFUtarget, then set theUse Legacy Swift versionsetting toNo - Repeat the same for the
ZIPFoundationtarget. - 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.