Skip to content

ISSPRO-Eng/Laerdal.Dfu.Bindings.iOS

 
 

Repository files navigation

This library has been forked from the original version created by François Raminosona in order to make fixes to support Maui and .NET 7.

Laerdal.Dfu.Bindings.iOS

This is an Xamarin binding library for the Nordic Semiconductors iOS library for updating the firmware of their devices over the air via Bluetooth Low Energy.

The native iOS Pod library is located here: https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library

Requirements

You'll need :

  • MacOS
    • with XCode
    • with .NET6-ios
    • with Carthage
    • [with ObjectiveSharpie] (optional)
brew cask install objectivesharpie

More about Objective Sharpie

Steps to build on Local-Dev

1) Checkout

git clone https://github.com/Laerdal/Laerdal.Dfu.Bindings.iOS.git

2) Build

dotnet build

You'll find the nuget in Output/

Known issues

Fix : Laerdal/Laerdal.Dfu.iOS#3 (comment) |

#!/usr/bin/env sh
xcode_lib_path="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphoneos"
app_path=$1
app_name=<insert app name>
libs=("$app_path/Products/Applications/$app_name/Frameworks/"*.dylib)

for i in "${libs[@]}"
do
  cp "$xcode_lib_path/$(basename "$i")" "$app_path/SwiftSupport/iphoneos/"
  cp "$xcode_lib_path/$(basename "$i")" "$app_path/Products/Applications/$app_name/Frameworks/"
done

-- Thanks @OliverFlecke

Fix : You might need to add "--optimize=-remove-dynamic-registrar" to your apps mtouch args.

Packages

No packages published

Languages

  • C# 100.0%