React-native-ble-plx: RxSwift Binary for Xcode10

Created on 10 Sep 2018  路  16Comments  路  Source: Polidea/react-native-ble-plx

When will be available RxSwift binary useable for Xcode10? At the moment it crashes with the error:
dyld: Symbol not found: __T0BOSgXwWV
Referenced from: /Users/kkovacs/Library/Developer/CoreSimulator/Devices/2D21788D-8E16-461C-9D4C-DC9D92650BF9/data/Containers/Bundle/Application/C9376551-F934-4563-93F0-3BFDC923F747/Narke.app/Frameworks/RxSwift.framework/RxSwift
Expected in: /Users/kkovacs/Library/Developer/CoreSimulator/Devices/2D21788D-8E16-461C-9D4C-DC9D92650BF9/data/Containers/Bundle/Application/C9376551-F934-4563-93F0-3BFDC923F747/Narke.app/Frameworks/libswiftCore.dylib
in /Users/kkovacs/Library/Developer/CoreSimulator/Devices/2D21788D-8E16-461C-9D4C-DC9D92650BF9/data/Containers/Bundle/Application/C9376551-F934-4563-93F0-3BFDC923F747/Narke.app/Frameworks/RxSwift.framework/RxSwift

It would be a great help testing my app for iOS12, as the launch of the final Xcode10 / iOS12 is soon!!!

Most helpful comment

Xcode10 support is definitely on my priority list. However v0.10 doesn't download any frameworks and I'm little bit confused by your statement @kchris78.

All 16 comments

Xcode10 final is released. RxSwift 4.3 is released! Could you include this version in BLE-PLX? So this module could be used/compiled under Xcode10! (RxSwift 4.3 supports now Xcode10)

I have the same error, I am not sure to understand the issue @kchris78 @Cierpliwy

as I can see when I install this module (v0.10) with npm it downloads the binary version of RxSwift (v4.2). This rxswift version does not work with xcode 10. RxSwift v4.3 should work with Xcode10.

Xcode10 support is definitely on my priority list. However v0.10 doesn't download any frameworks and I'm little bit confused by your statement @kchris78.

Thanks, confused now too :). Trying to reproduce the downloading when installed BLE-PLX.. I see a big Carthage library under BleClientManager, with RxSwift and RxBluetoothKit checkouts and binaries..

update: I think I'm on it. react-native-ble-plx uses RxBluetoothKit which is installed with carthage. This downloads binaries. I didn't tried to reinstall/update by now but this downloaded RxSwift version 4.2.

now trying to update and recompile the whole thing with xcode10.. maybe i'll be lucky and will run...

recompiled, the result is:
dyld: Symbol not found: __T014RxBluetoothKit0B5ErrorON
Referenced from: /Users/kkovacs/Library/Developer/CoreSimulator/Devices/2D21788D-8E16-461C-9D4C-DC9D92650BF9/data/Containers/Bundle/Application/2F97F73D-64DC-4724-B68C-5AA888399870/Narke.app/Frameworks/BleClientManager.framework/BleClientManager
Expected in: /Users/kkovacs/Library/Developer/CoreSimulator/Devices/2D21788D-8E16-461C-9D4C-DC9D92650BF9/data/Containers/Bundle/Application/2F97F73D-64DC-4724-B68C-5AA888399870/Narke.app/Frameworks/RxBluetoothKit.framework/RxBluetoothKit
in /Users/kkovacs/Library/Developer/CoreSimulator/Devices/2D21788D-8E16-461C-9D4C-DC9D92650BF9/data/Containers/Bundle/Application/2F97F73D-64DC-4724-B68C-5AA888399870/Narke.app/Frameworks/BleClientManager.framework/BleClientManager
(lldb)

Dunno what to do with this, maybe the code in BLE Manager should be updated as you wrote @Cierpliwy . Xcode 10, RxBluetoothKit 5.1.3. RxBluetoothKit and the others are compiled seperately with carthage but these finished succesfully, I don't this makes a difference. Thank you for your help.

UPDATE: Resolved the error. Downgraded RxBluetoothKit to 4.0.3 because this module cannot work with 5.x. Recompiled the whole thing, BLEClientManager too, placed in the right folder, setting valid architecture. (Don't know what created this project but its used by this module)
Now my app is running compiled with Xcode10, ios11 device and ios12 simulator.

Sorry for the ignorant question, @kchris78 says the error is resolved, but that seems like a behind the scene fix.

Does what you did provide a clue to how to fix this package in the next version?

After a call with Polidea, they said this should be fixed next week. No real date yet, but @Cierpliwy will get in touch asap, most likely here.

What I think react-native-plx would need is to upgrade the RxBluetoothKit header (or what it needs) files from specifix 4.0.3 to 5.x. After I upgraded the RxBluetoothKit to 5.x I could not compile react-native-plx - I had to downgrade. (For example track the changes like:
"Changed BluetoothManager to CentralManager")

Today I tested library setup with XCode10 for pure react native and expo based projects. I added links to the README file as well. I didn't find any issues with compilation steps and archiving. Could you test above projects if they are working for you?

@kchris78 React native 0.10 is not using frameworks. Make sure you cleaned up your project settings from any leftovers from previous versions of the library.

Can this issue be related with the use of another version than the 0.10? We are using the 0.9+ at the moment.

Yes. I strongly suggest to update to 0.10 as there were no API breaking changes and build process is more straightforward. It's really hard to support frameworks in RN projects.

Ok, I will test this asap, probably at the end of the week.

After some tests, all seems to be fine with the 0.10 version. Thanks for your time !

Everything should work fine both for version 0.10 and 1.0.0. Please reopen if there are any remaining issues.

Was this page helpful?
0 / 5 - 0 ratings