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