pilloxa / react-native-nordic-dfu Goto Github PK
View Code? Open in Web Editor NEWNordic Device Firmware Update for React Native
License: MIT License
Nordic Device Firmware Update for React Native
License: MIT License
Hello,
I am investigating the viability of this library. The question is: how to obtain the MAC address on an iOS device?
Best Regards
For dfu to show device i need to run
sd_ble_gatts_service_changed() to the BLE_GAP_EVT_CONNECTED case in ble_evt_handler() in main.c.
Do you have any example for it as on my device it is getting cached and failing the dfu process
https://devzone.nordicsemi.com/f/nordic-q-a/50272/ios-nrfconnect-issue-with-dfu
Hi everyone,
After success update firmware something happens with react-native-ble-manager. I can't scan perf, can't connect\disconnect devices. Only restart application help me.
Some additionally:
I try debug IOS part of library,
as for me problem inside iOSDFULibrary.framework, because I remove step by step some code part from wrapper and can't doing anything with this problem
Hello. Had to do lots of upgrades recently, the Swift 4.1 issue (
#24 ) being one of them, and at least that eventually worked...somehow. Still, one different problem remains:
Among the iPhones I'm working with, one is on iOS 12 beta, which requires Xcode 10 beta for developing. After following all the manual installation instructions, Carthage updating and whatnot, my project builds, but then running it causes the following error to occur on startup:
dyld: Symbol not found: __T0BoWV
Referenced from: /private/var/containers/Bundle/Application/E5D7F3EC-6EEA-4A07-87E2-FAA7FD91AD94/placeholder.app/Frameworks/Zip.framework/Zip
Expected in: /private/var/containers/Bundle/Application/E5D7F3EC-6EEA-4A07-87E2-FAA7FD91AD94/placeholder.app/Frameworks/libswiftCore.dylib
in /private/var/containers/Bundle/Application/E5D7F3EC-6EEA-4A07-87E2-FAA7FD91AD94/placeholder.app/Frameworks/Zip.framework/Zip
Building the app via Xcode 9.4 and installing it via Testflight on the iOS 12 device works fine, but can only run it via Xcode on iOS 11 and lower. Any fixes soon, or could there be something additional I have to do myself?
Same thing happens when I try to run the app on a different device via Xcode 10.
react-native-nordic-dfu: swift-4.1
react-native: 0.56
react-native-ble-plx: 0.10
iOS: 9 to 12.0
Xcode: 10.0 beta 4
Thanks for the library. There is a little typo in the examples in the instruction. name: "Pilloxa Pillbox"
should be deviceName: "Pilloxa Pillbox"
.
Steps to reproduce:
react-native init AwesomeProject
cd AwesomeProject
npm install --save react-native-nordic-dfu
cd ios
touch Podfile
My Podfile:
target 'AwesomeProject' do
rn_path = '../node_modules/react-native'
# See http://facebook.github.io/react-native/docs/integration-with-existing-apps.html#configuring-cocoapods-dependencies
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'CxxBridge',
'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
]
# React Native third party dependencies podspecs
pod 'DoubleConversion', :podspec => "#{rn_path}/third-party-podspecs/DoubleConversion.podspec"
pod 'glog', :podspec => "#{rn_path}/third-party-podspecs/glog.podspec"
# If you are using React Native <0.54, you will get the following error:
# "The name of the given podspec `GLog` doesn't match the expected one `glog`"
# Use the following line instead:
#pod 'GLog', :podspec => "#{rn_path}/third-party-podspecs/GLog.podspec"
pod 'Folly', :podspec => "#{rn_path}/third-party-podspecs/Folly.podspec"
pod 'react-native-nordic-dfu', :path => '../node_modules/react-native-nordic-dfu'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
Install pods:
pod install
I get an error:
[!] Unable to determine Swift version for the following pods:
- `iOSDFULibrary` does not specify a Swift version and none of the targets (`AwesomeProject`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
I've recently updated my app from react-native 0.57.5 to 0.59.10 and react-native-nordic-dfu from 2.0.1 to 3.0.1. Everything was working fine before the update but now the app crashes (just closes itself down) without errors or warnings when running NordicDFU.startDFU
on Android.
Everything works perfectly on iOS (I did the CocoaPods update).
I've tried with both correct and incorrect (just some random strings) deviceAddress
and filePath
, but it crashes anyways in NordicDFU.startDFU
.
I'm running:
react-native: 0.59.10
gradle: 5.4.1
react-native-nordic-dfu: 3.0.1
It crashes both in emulator and on physical device.
I ran in to this problem when I tried to release my app to Appstore.
Code signing "Zip.framework" failed.
I have followed and double checked the iOS linking guide, but can't get it to work.
When we are trying to fo Dfu of the device Below message is coming on console.
{"framesToPop":1,"code":"4097"}
Please suggest what can be the issue
DFU state: DFU_FAILED
BleTest.js:99 upgrade failed === Error: DFU SERVICE NOT FOUND
at createErrorFromErrorData (NativeModules.js:121)
at NativeModules.js:78
at MessageQueue.__invokeCallback (MessageQueue.js:398)
at MessageQueue.js:137
at MessageQueue.__guardSafe (MessageQueue.js:314)
at MessageQueue.invokeCallbackAndReturnFlushedQueue (MessageQueue.js:136)
at debuggerWorker.js:70
Having an issue building with this library using the 3.0.0
Followed all instructions in the readme
yarn add react-native-nordic-dfu
react-native link react-native-nordic-dfu
Created my podfile with pod init, added the path to the nordic dfu library.
also did a pod install. Outputs the following error:
[!] Unable to determine Swift version for the following pods:
- `iOSDFULibrary` does not specify a Swift version and none of the targets (`<app_name_here>`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
Build with Xcode version 10.2.
Xcode Complains about RNNordicDFU.h not found. So I added the react-native-nordic-dfu to my search path. Now it complains that iOSDFULibrary is not found.
The readme is clearly missing information on how to successfully build a project with this repo
Hi,
I have a zip bundled in the apk under assets folder.
I want to start DFU with path to this file.
What is the file path that I need to pass to startDFU method?
Thanks,
In my react-native project i'm using 'react-native-nordic-dfu' npm module. I have done react-native link react-native-nordic-dfu as well as manual installation steps(4-10). But after running the app it crash and throws Thread 1: signal SIGABRT dyld`__abort_with_payload: exception. I am not able to find any solution for that. Please let me know if anyone has solution for this.
Thanks in advance.
I'm using this lib. And I want to stop DFU progress after I use
NordicDFU.startDFU
Looking for your help
Thanks
This error occured on ios with react-native-nordic-dfu 3.0.0
Hi,
I installed the package for android according to instructions.
When running "react-native run android" I get the following error:
"Could not find method google() for arguments [] on repository container".
I don't understand why...
My RN version is 0.50.3.
I compared gradle configuration to the example project and everything is the same.
Any clue why I receive this error?
Thanks,
On swift, I can set some properties in DFUServiceInitiator class, but on RN, I can not do any property setting. I hope you can add some bridges to do it.
Suggestion arose from this comment
Add more descriptive error message. Better error descriptions would make both:
Error says —
Firmware not specified /var/mobile/Containers/Data/Application/9BA61605-2A61-4D85-8068-CCDECB1DE4EC/Documents/PluginStorage/com.chuangmi.newlock.ios/DFU/cm_app_dfu_package.zip
Below are suggestions which may be further improved
Firmware location not accessible /var/mobile/Containers/Data/Application/9BA61605-2A61-4D85-8068-CCDECB1DE4EC/Documents/PluginStorage/com.chuangmi.newlock.ios/DFU/cm_app_dfu_package.zip
Firmware file not found /var/mobile/Containers/Data/Application/9BA61605-2A61-4D85-8068-CCDECB1DE4EC/Documents/PluginStorage/com.chuangmi.newlock.ios/DFU/cm_app_dfu_package.zip
Not sure but maybe there are more possibilities that could have better error descriptions.
I'm new to iOS development, but have got everything working on Android. Would anybody be able to check out my code and help me get it up and running?
After linking the library and trying to build the iOS app, I get the following error:
ld: /Users/stinodes/projects/com.minze.minzeflow/ios/Zip.framework/Zip compiled with newer version of Swift language (4.0) than previous files (3.0) file '/Users/stinodes/projects/com.minze.minzeflow/ios/Zip.framework/Zip' for architecture armv7
I am sadly not an experienced iOS developer. To me an easy fix seems to be to install a Swift 3.0 version of Zip, but I might be mistaken of course.
If you guys have a version that has Swift 3.0 frameworks, then that'd be great! If not, would an older version of Zip
work well? (assuming that swapping out the swift 4.0 code even fixes it)
The second I call NordicDFU.startDFU
It gives me this error:
This is my code:
NordicDFU.startDFU({
deviceAddress: peripheralID,
name: "My Device",
filePath: firmwarePath
})
.then(res => console.log("Transfer done:", res))
.catch(error => console.log(error));
This is the path to the firmware:
/var/mobile/Containers/Data/Application/5869AB60-ADF7-4FBD-94BD-2C9C2A10D626/Documents/RNFetchBlob_tmp/RNFetchBlobTmp_6k32nkgwxwrx77j66ofrsk.zip
My guess is that it has to do something with permissions, but I am not sure if it's necessary.
p.s I get this error on iOS, haven't checked on Android yet.
Hi,
when I use this library to update our device firmware only application layer part will be uploaded. but when I use NRF toolbox all parts (bootloader + application) will be uploaded>
with dfu progress listener I only see 1 part, is there any bug?
should I extract it to 2 parts for uploading?
I'm trying to load a DFU file from a .zip file bundled within the app. The file sits at [project]/android/app/src/main/assets/firmware/filename.zip
. On iOS, I'm using react-native-fs
to get the path to the resource, and it's working as expected, but on Android, I can't figure out what path it might accept. Here's how it's working right now on iOS:
const { localName, id } = deviceToUpdate
const rootPath = Platform.OS == "ios" ? RNFS.MainBundlePath : "firmware"
const fileName = 'firmware.zip'
const filePath = `${rootPath}/${fileName}`
const dfuConfig = { deviceAddress: id, name: localName, filePath }
NordicDFU.startDFU(dfuConfig)
I can't figure out what path might work, and the docs aren't get about how the DFU path is getting resolved. Any one have an idea of how I can fix this?
@vikeri @Looveh @dariuszseweryn @reekris
As soon as I call NordicDFU.startDFU
I get Firmare not specified error...
Not sure what I am doing wrong here:
const FB = RNFetchBlob.config({
fileCache: true,
appendExt: "zip"
});
FB.fetch("GET", "http://192.168.15.52.xip.io:8081/debugger-ui/myFirmwareFile.zip")
.then(res => {
console.log("file saved to", res.path());
this.setState({ imagefile: res.path() });
})
.catch(error => {
console.log(`FB_FETCH_ERROR: ${error}`);
});
NordicDFU.startDFU({
deviceAddress: peripheral.id,
name: peripheral.name,
filePath: this.state.imagefile
})
.then(res => console.log("Transfer done:", res))
.catch(error => console.log(`Transfer error: ${error}`));
The file gets saved to:
/var/mobile/Containers/Data/Application/DD17EDE3-4DA3-4A07-9173-AA2B9073F037/Documents/RNFetchBlob_tmp/RNFetchBlobTmp_mwgdau6fiwdxlopjjx9wr.zip
I've tried using the hex file as well, but no luck... Could you please explain what I am doing wrong here?
This happens on iOS
Thanks!
when start NordicDFU.startDFU for update firmware got error.
Error: Attempted to start DFU without central manager getter
i have use react-native-ble-plx v0.8.0 and react-native-nordic-dfu v 1.1.2
code -
NordicDFU.startDFU({
deviceAddress: obj.MacAddress,
name: obj.DeviceName,
filePath: filePath
})
.then(res => console.log(""))
.catch(console.log);
filePath is
/var/mobile/Containers/Data/Application/6DD7EC4C-47CB-486D-B132-A39F6813D474/Documents/xxxxxxx/CSS-0201.2.10.zip
obj.MacAddress is
DFE45376-F6A1-BBEF-02F5-3AH8C0342FE1
obj.DeviceName is
CSS-020100080651
I followed the instructions on README.md
, down to adding SWIFT_VERSION = 5.0
, but it says
Module 'iOSDFULibrary' not found
I'm currently using
react-native 0.58.6
Xcode 10.2.1
Here is my code :
NordicDFU.startDFU({
deviceAddress: obj.MacAddress,
deviceName: obj.DeviceName,
filePath: filePath
}).then((res) => {
me.emit('showDfuUpgradeMessage');
}).catch((err) => {
BleUtil.log("Error while start DFU. " + err);
me.emit('hideDFULoader');
me.showServiceStatus('Not able to connect device');
return;
Dependices :
"react-native-nordic-dfu": "^1.2.1",
"react-native-ble-plx": "^0.9.1",
when I clone this repo and run ios version, I get this error "RNNordicDfu.h" file not found
is there any solution to it?
I got this message from apple:
I replaced my app name with ---------
Invalid Binary Architecture - iOS 3.0 introduced support for multiple binary architectures. If your binary is built for multiple architectures, your Info.plist must have a MinimumOSVersion key with a value of at least 3.0. Additionally, if your app is intended to support earlier iPhone and iPod touch models, your app must contain at least an armv6 binary; "thin" armv7-only binaries will not be accepted unless the armv7 required device capability is also present in the Info.plist UIRequiredDeviceCapabilities key or the MinimumOSVersion key has a value of 4.3 or higher.
Specifically, we found the following unsupported architectures in your binary:
x86_64
i386
For more information, see Technical Q&A QA1707 at: http://developer.apple.com/iphone/library/qa/qa2010/qa1707.html.
Invalid Mach-O Format - The Mach-O in bundle "-------/Frameworks/iOSDFULibrary.framework" isn’t consistent with the Mach-O in the main bundle. The main bundle Mach-O contains armv7(bitcode) and arm64(bitcode), while the nested bundle Mach-O contains X86_64ALL(machine code). Verify that all of the targets for a platform have a consistent value for the ENABLE_BITCODE build setting.
Invalid Mach-O Format - The Mach-O in bundle "-------/Frameworks/Zip.framework" isn’t consistent with the Mach-O in the main bundle. The main bundle Mach-O contains armv7(bitcode) and arm64(bitcode), while the nested bundle Mach-O contains X86_64ALL(machine code). Verify that all of the targets for a platform have a consistent value for the ENABLE_BITCODE build setting.
Invalid Segment Alignment - The app binary at '------/Frameworks/Zip.framework/Zip' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version.
Invalid Segment Alignment - The app binary at '------/Frameworks/iOSDFULibrary.framework/iOSDFULibrary' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version.
Invalid Encryption Info - The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker.
After sneaky Xcode update to (10.2) it is no longer able to build the project complaining:
error: The following binaries use incompatible versions of Swift:
.../node_modules/react-native-nordic-dfu/ios/iOSDFULibrary.framework/iOSDFULibrary
I tried to clean the project and to remove DerivedData without success.
Project builds and runs perfectly on both platforms, however, when I start the DFU process on iOS, the error I get is "DFU Service Not Found". Any ideas as to what this error would pertain to? Any suggestions would be greatly appreciated. I am running the newest release of this library and it fully completes the DFU process on Android. Thanks in advance!
使用nordic52系列蓝牙芯片平台,OTA升级包数据格式有什么要求?是否按芯片原厂的格式就可以?
Hi, when I run startDfu
command in ios I get this error:
Exception '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]' was thrown while invoking startDFU on target RNNordicDfu with params (
"E60161B8-7C2B-BB7C-1D60-EEE4BC3E6C1D:E60161B9",
Ninix,
"/var/mobile/Containers/Data/Application/45F13F0D-F4B6-4BD0-A19F-A201C3D4F2D5/Documents/RNFetchBlob_tmp/RNFetchBlobTmp_tuv5vjjvmmvd67t2lhlt.zip",
3250,
3251
)
I'm using:
react-native
: 0.57
react-native-nordic-dfu
: "swift4.1 branch"
Ran into an issue with the build process. I followed all the instructions to manually link in iOS but the app crashes on start, being unable to load the libswiftCore.dylib lib file.
Please advise on how to resolve this issue.
I'm getting the following error when compiling for iOS
the Xcode version is 10, I'm using v1.2.1 of react-native-nordic-dfu
Undefined symbols for architecture arm64:
"OBJC_CLASS$__TtC13iOSDFULibrary11DFUFirmware", referenced from:
objc-class-ref in libRNNordicDfu.a(RNNordicDfu.o)
I'm using React Native 0.57.1. In android works perfect even with the warning:
[email protected] requires a peer of react-native@^0.41.2 but none was installed
Ld /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/UnlimitedSkate.app/UnlimitedSkate normal arm64
cd /Users/unlimited/react-app/ios
export IPHONEOS_DEPLOYMENT_TARGET=9.3
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk -L/Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos -F/Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos -filelist /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Intermediates.noindex/UnlimitedSkate.build/Debug-iphoneos/UnlimitedSkate.build/Objects-normal/arm64/UnlimitedSkate.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.3 -Xlinker -object_path_lto -Xlinker /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Intermediates.noindex/UnlimitedSkate.build/Debug-iphoneos/UnlimitedSkate.build/Objects-normal/arm64/UnlimitedSkate_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -ObjC -lc++ /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/libRCTBlob.a /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/libRCTAnimation.a /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/libReact.a /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/libRCTActionSheet.a /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/libRCTGeolocation.a /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/libRCTImage.a /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/libRCTLinking.a /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/libRCTNetwork.a /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/libRCTSettings.a /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/libRCTText.a /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/libRCTVibration.a /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/libRCTWebSocket.a -lBleManager -lRNExitApp -lRNFetchBlob -lRNNordicDfu -Xlinker -dependency_info -Xlinker /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Intermediates.noindex/UnlimitedSkate.build/Debug-iphoneos/UnlimitedSkate.build/Objects-normal/arm64/UnlimitedSkate_dependency_info.dat -o /Users/unlimited/Library/Developer/Xcode/DerivedData/UnlimitedSkate-hfsvcbifvvpevlditczvbpabedrf/Build/Products/Debug-iphoneos/UnlimitedSkate.app/UnlimitedSkate
Undefined symbols for architecture arm64:
"OBJC_CLASS$__TtC13iOSDFULibrary11DFUFirmware", referenced from:
objc-class-ref in libRNNordicDfu.a(RNNordicDfu.o)
"OBJC_CLASS$__TtC13iOSDFULibrary19DFUServiceInitiator", referenced from:
objc-class-ref in libRNNordicDfu.a(RNNordicDfu.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any ideas?
This error occured on ios with react-native-nordic-dfu 3.0.0
My project builds properly but when the app runs on the simulator or a phone I get this error message. If anyone could shed some light on what I might be doing wrong. I've tried all the common fixes, cleaning then running again, renewing certificates, and even using a different toolchain.
Thanks in advance.
Here is the full error:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: ...../Library/Developer/CoreSimulator/Devices/546B20B3-A072-4C42-8069-18CCC4F24017/data/Containers/Bundle/Application/FFC596CA-061A-4F31-8EF2-92044899244B/connect_react.app/Frameworks/iOSDFULibrary.framework/iOSDFULibrary
Reason: Incompatible library version: iOSDFULibrary requires version 1.0.0 or later, but libswiftCore.dylib provides version 0.0.0
(lldb)
Hello I am running:
Mac OS High Sierra 10.13.6
xCode 9.4.1react-native-cli: 2.0.1
react-native: 0.56.0npm 6.2.0
yarn 1.7.0
watchman 4.9.0
My team and I are switching over to React Native however building for iOS is giving us some issues. We get the following 3 errors and have been trying to solve it for about 3 days now.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$__TtC13iOSDFULibrary11DFUFirmware", referenced from:
objc-class-ref in libRNNordicDfu.a(RNNordicDfu.o)
"_OBJC_CLASS_$__TtC13iOSDFULibrary19DFUServiceInitiator", referenced from:
objc-class-ref in libRNNordicDfu.a(RNNordicDfu.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any help would be very appreciated!
While doing
NordicDFU.startDFU({
deviceAddress: DEVICE_ID,
name: "Ep",
filePath: '/data/user/0/com.nordicdfuexample/files/rose.jpg'
})
Causing error "DFU FILE NOT FOUND"
But file is there in file path.Please help me sort out this issue
I'm am trying to get this up and running, but once I install this plugin, I can no longer run the application. I get the following error:
node_modules\react-native-nordic-dfu\android\src\main\java\com\pilloxa\dfu\RNNordicDfuPackage.java:19: error: method does not override or implement a method from a supertype
@Override
^
1 error
:react-native-nordic-dfu:compileReleaseJavaWithJavac FAILED
I am working in Windows 10 and testing on Android (IOS will be next).
Hi there,
Thanks for your excellent work on this project.
I noticed after reconfiguring a RN project to include React via CocoaPods instead of being manually added to the project, that RNNordicDFU could no longer find the requisite headers and would fail to compile.
ex:
React/RCTBridgeModule.h not found
I'm opening a simultaneous PR to add pods public headers to RNNordicDFU's Header Search Paths.
Fwiw btw I appreciate your use of Carthage, I prefer it too. Unfortunately the official "blessed" advice for integrating RN with an existing app revolves around the use of CocoaPods still. Ref
Cheers,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.