NordicSemiconductor / IOS-DFU-Library

OTA DFU Library for Mac and iOS, compatible with nRF5x SoCs
http://www.nordicsemi.com
BSD 3-Clause "New" or "Revised" License
525 stars 214 forks source link

SIGABRT when i use DFUServiceInitiator().with(firmware: firmware) #461

Closed aflorentin closed 3 years ago

aflorentin commented 3 years ago

Information This GitHub Issue page is for reporting issues or asking questions regarding the iOS DFU library. For general DFU questions, SDK questions, etc, please check our DevZone. Make sure you are using the latest version of the library: Version Also, before creating a new issue, make sure similar issue isn't already opened in open or closed issues.

DFU Bootloader version (please complete the following information):

Device information (please complete the following information):

Describe the bug A clear and concise description of what the bug is. Hi, I was using the version '4.6.1' for a long time now and i have no problem to update my DFU device. I had to upgrade to the latest version (4.11.1) because of Xcode and since i got a SIGABRT when i use DFUServiceInitiator().with(firmware: selectedFirmware).

First

Second

I have an application version with library version 4.6.1 that I use to test my firmware and the update is going well.

If you have an idea. Thank you very much

philips77 commented 3 years ago

Hello, This looks like an issue with xcode. Try clearing caches, perhaps rebuilding frameworks if you're using Carthage, etc. Does it happen every time?

philips77 commented 3 years ago

This is the method that you have issue with: https://github.com/NordicSemiconductor/IOS-DFU-Library/blob/f73213f2de57c8c53700725ee2cff6cd35ef66fe/iOSDFULibrary/Classes/Implementation/DFUServiceInitiator.swift#L396-L400

aflorentin commented 3 years ago

Hi, thank you for your answer yes this happen every time when i try to update and I use Cocoapod. I will try to clear my caches

aflorentin commented 3 years ago

I clear my caches but nothing change