This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Cocoa application with iOSDFULibrary

Hi, I'm new using XCode and I'm trying to use this guide: github.com/.../documentation.md

I created a simple Cocoa Application, then I added iOSDFULibrary.framework in General - Embedded Binaries in the .xcodeproj file (I suppose that the file is iOSDFULibrary.framework and not DFULibrary.framework), then I tried to add this code in the file ViewController.swift:

let selectedFirmware = DFUFirmware(urlToZipFile:url)

but I'm receiving the error: /Users/chiara/Documents/CocoaApp2/CocoaApp2/ViewController.swift:21:32: Use of unresolved identifier 'DFUFirmware'

The step 3 is not necessary if I used the step 2, isn't it? Thanks

Parents
  • I solved the issue: I missed "import iOSDFULibrary", but then I had this other error: "error: /Users/chiara/Library/Developer/Xcode/DerivedData/CocoaTest3-hkkabjhffzxabkdzzopvrbdibdbl/Build/Products/Debug/iOSDFULibrary.framework: No such file or directory". I solved copying the file iOSDFULibrary.framework from /Users/chiara/Library/Developer/Xcode/DerivedData/CocoaApp2-hkkabjhffzxabkdzzopvrbdibdbl/Build/Products/Debug/iOSDFULibrary to the parent folder.

    Thanks

Reply
  • I solved the issue: I missed "import iOSDFULibrary", but then I had this other error: "error: /Users/chiara/Library/Developer/Xcode/DerivedData/CocoaTest3-hkkabjhffzxabkdzzopvrbdibdbl/Build/Products/Debug/iOSDFULibrary.framework: No such file or directory". I solved copying the file iOSDFULibrary.framework from /Users/chiara/Library/Developer/Xcode/DerivedData/CocoaApp2-hkkabjhffzxabkdzzopvrbdibdbl/Build/Products/Debug/iOSDFULibrary to the parent folder.

    Thanks

Children
Related