Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Laerdal/Laerdal.Dfu.iOS

Repository files navigation

Laerdal.Dfu.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

Build status

NuGet Badge

Requirements

You'll need :

  • MacOS
    • with XCode
    • with Xamarin.iOS
    • [with ObjectiveSharpie] (optional)
brew cask install objectivesharpie

More about Objective Sharpie

Steps to build

1) Checkout

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

2) Run build script

To build the nuget, run :

./build.sh

To update the sharpie-generated files, run :

./build.sh --sharpie

Known issues

Fix : #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.