NordicSemiconductor / IOS-nRF-Toolbox

The nRF Toolbox is a container app that stores your Nordic Semiconductor apps for Bluetooth Low Energy in one location.
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Toolbox
BSD 3-Clause "New" or "Revised" License
590 stars 205 forks source link

Missing package product 'McuManager package' #125

Closed Terencewyt closed 1 year ago

Terencewyt commented 2 years ago

Hi All,

I am looking to use the BLE UART features with my nRF development board, I download the IOS-nRF-Toolbox and try to build and run, but it said "Missing package product 'McuManager package', and when i check my Package Dependencies, it contains IOSMcuManagerLibrary, is it the same? and I did try to add package from "In Xcode, go to File → Swift Packages → Add Package Dependency... and add https://github.com/JuulLabs-OSS/mcumgr-ios.git", after that there is another error where SwiftCBOR version is conflict

I am relatively new to the IOS development, would like you give some help , my first target is to build successfully the code and run in my iphone. thanks a lot in advance

dinesharjani commented 2 years ago

Thanks for letting us know.

We're working on a fix: https://github.com/NordicSemiconductor/IOS-nRF-Toolbox/pull/126

Also, the correct SPM for McuMgr is the following: https://github.com/NordicSemiconductor/IOS-nRF-Connect-Device-Manager

Terencewyt commented 2 years ago

Thanks dinesharjani After use the latest Code, the "McuMgr" problem is fixed, but there are quite a lot other problem, and I still cannot build successful 1) many files have similar error of the following: Could not read serialized diagnostics file: error("Invalid diagnostics signature") Command CompileSwift failed with a nonzero exit code

2) Quite a lot of problem for DFUFirmware because I only want to try the BLE UART features, any way (e.g Options) to disable the DFU feature?

attached is the print screen shot

Screenshot 2022-07-06 at 5 50 54 PM

Thanks in advance :)

dinesharjani commented 2 years ago

This is weird. I'll try to have a look today.

Terencewyt commented 1 year ago

This is weird. I'll try to have a look today.

thanks your help

dinesharjani commented 1 year ago

Did you check out the master branch ?

Terencewyt commented 1 year ago

Did you check out the master branch ?

I download the code from "Code -> Download ZIP" (https://github.com/NordicSemiconductor/IOS-nRF-Toolbox.git) my Xcode is version 13.X, should be the latest version, is it related? other developer didn't found this issue like me?

dinesharjani commented 1 year ago

@Terencewyt try now when you can

Terencewyt commented 1 year ago

I can build successful now, 1) add a User defined settings "swift_enable_batch_mode" to NO 2) fix many programming error "e.g use "try" and "catch" to avoid error of" Call can throw, but it is not marked with 'try' and the error is not handled"

Terencewyt commented 1 year ago

@Terencewyt try now when you can

i will try it, thanks your help

dinesharjani commented 1 year ago

I can build successful now,

1. add a User defined settings "swift_enable_batch_mode" to NO

2. fix many programming error "e.g use "try" and "catch" to avoid error of" **Call can throw, but it is not marked with 'try' and the error is not handled"**

I fixed issue 2 on master. It should build without issues now.

Terencewyt commented 1 year ago

I can build successful now,

1. add a User defined settings "swift_enable_batch_mode" to NO

2. fix many programming error "e.g use "try" and "catch" to avoid error of" **Call can throw, but it is not marked with 'try' and the error is not handled"**

I fixed issue 2 on master. It should build without issues now.

YES, i build without problem, thanks again, the issue can be closed