iOS中nRF蓝牙设备的OTA升级(一些设置)

1.GitHub下Nordic Semiconductor的链接地址:https://github.com/NordicSemiconductor/

2、Mac终端使用git下载nRF iOS项目:

git clone https://github.com/NordicSemiconductor/IOS-nRF-Toolbox

3.打开程序,提示发现DFULibrary.framework 静态库缺失。编译失败。

4、解决方法

1>下载DFULibrary.framework 静态库工程项目,然后编译生成静态库DFULibrary.framework。 
2>将DFULibrary.framework 添加到工程下,解决“截图3”所指出的静态库设计的问题

二、DFULibrary.framework 静态库工程项目,DFULibrary.framework 静态库工程链接

2、使用Mac终端git下载 
指令:git clone https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library

3、真机编译。(在product目录下会生成DFULibrary.framework 静态库,这个库就是我们上一个工程项目所需要的。注意:是真机编译,因为我们最终需要在真机上运行的。)

三、添加库到项目中

四、如果你是处于oc编码状态,需要到设置中修改Embedded Content Contains Swift Code(10之前的版本)     设置为YES

After setting this, clean the project before building again.

 

如果没有更改就会 出现这样的错误报告:

dyld: Library not loaded: @rpath/libswiftCore.dylib

  Referenced from: /private/var/mobile/Containers/Bundle/Application/21D1768C-D673-4B50-BECB-7F17597BE216/uiui.app/Frameworks/DFULibrary.framework/DFULibrary

  Reason: image not found

原文地址:https://www.cnblogs.com/baidaye/p/5336344.html