dotintent / react-native-ble-plx

React Native BLE library
Apache License 2.0
3.07k stars 512 forks source link

[IOS] Release build fails with linking errors to swift libs despite bridging header #833

Closed ortonomy closed 1 year ago

ortonomy commented 3 years ago

Expected Behavior

App builds for release

Current Behavior

App fails on release build with errors relating to swift libraries used in MultiPlatformBLEAdapater

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. install react-native-ble-plx as per README
  2. build for release

Context

image

image

image


Showing Recent Issues
Ld /Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Intermediates.noindex/onigiri.build/Release-iphonesimulator/onigiri.build/Objects-normal/arm64/Binary/onigiri normal arm64 (in target 'onigiri' from project 'onigiri')
    cd /Users/ortonomy/Vault/projects/professional/aliengen/clients/nuggets_technologies/onigiri/code/onigiri/ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios10.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/BVLinearGradient -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/DoubleConversion -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/FBReactNativeSpec -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/Folly -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/MultiplatformBleAdapter -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/Permission-LocationWhenInUse -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/RCTTypeSafety -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/RNBootSplash -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/RNCAsyncStorage -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/RNCMaskedView -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/RNGestureHandler -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/RNLanguages -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/RNLocalize -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/RNPermissions -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/RNReanimated -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/RNSVG -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/RNScreens -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-Core -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-CoreModules -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-RCTAnimation -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-RCTBlob -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-RCTImage -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-RCTLinking -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-RCTNetwork -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-RCTSettings -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-RCTText -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-RCTVibration -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-cxxreact -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-jsi -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-jsiexecutor -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/React-jsinspector -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/ReactCommon -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/Yoga -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/glog -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/react-native-ble-plx -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/react-native-geolocation -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/react-native-safe-area-context -L/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator/react-native-webview -F/Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Products/Release-iphonesimulator -filelist /Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Intermediates.noindex/onigiri.build/Release-iphonesimulator/onigiri.build/Objects-normal/arm64/onigiri.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Intermediates.noindex/onigiri.build/Release-iphonesimulator/onigiri.build/Objects-normal/arm64/onigiri_lto.o -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Intermediates.noindex/onigiri.build/Release-iphonesimulator/onigiri.build/Objects-normal/arm64/onigiri.swiftmodule -ObjC -lBVLinearGradient -lDoubleConversion -lFBReactNativeSpec -lFolly -lMultiplatformBleAdapter -lPermission-LocationWhenInUse -lRCTTypeSafety -lRNBootSplash -lRNCAsyncStorage -lRNCMaskedView -lRNGestureHandler -lRNLanguages -lRNLocalize -lRNPermissions -lRNReanimated -lRNSVG -lRNScreens -lReact-Core -lReact-CoreModules -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReactCommon -lYoga -lglog -lreact-native-ble-plx -lreact-native-geolocation -lreact-native-safe-area-context -lreact-native-webview -lstdc++ -framework AudioToolbox -framework CoreBluetooth -framework Foundation -framework JavaScriptCore -framework MobileCoreServices -framework QuartzCore -framework UIKit -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Intermediates.noindex/onigiri.build/Release-iphonesimulator/onigiri.build/onigiri.app-Simulated.xcent -lPods-onigiri -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Intermediates.noindex/onigiri.build/Release-iphonesimulator/onigiri.build/Objects-normal/arm64/onigiri_dependency_info.dat -o /Users/ortonomy/Library/Developer/Xcode/DerivedData/onigiri-ekuxdnmnnxjdiidqkasyrbzwwqbd/Build/Intermediates.noindex/onigiri.build/Release-iphonesimulator/onigiri.build/Objects-normal/arm64/Binary/onigiri

ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftMetal'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
ld: warning: Could not find or use auto-linked library 'swiftUIKit'
ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find or use auto-linked library 'swiftCore'
ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find or use auto-linked library 'swiftObjectiveC'
ld: warning: Could not find or use auto-linked library 'swiftDispatch'
ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'
ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
Undefined symbols for architecture arm64:
  "Swift.String.Index.characterStride.getter : Swift.Int?", referenced from:
      (extension in MultiplatformBleAdapter):Swift.String.lastIndexOf(Swift.Character) -> Swift.String.Index? in libMultiplatformBleAdapter.a(String+Rx.o)
  "Swift._StringGuts.foreignErrorCorrectedGrapheme(startingAt: Swift.Int, endingAt: Swift.Int) -> Swift.Character", referenced from:
      (extension in MultiplatformBleAdapter):Swift.String.lastIndexOf(Swift.Character) -> Swift.String.Index? in libMultiplatformBleAdapter.a(String+Rx.o)
  "Swift.Array.reserveCapacity(Swift.Int) -> ()", referenced from:
      MultiplatformBleAdapter.(ZipCollectionTypeSink in _D2471EFFA19210DC02D9BEA1D347B540).on(_: MultiplatformBleAdapter.Event<A.Element.E>, atIndex: Swift.Int) -> () in libMultiplatformBleAdapter.a(Zip+Collection.o)
     (maybe you meant: generic specialization <MultiplatformBleAdapter.SingleAssignmentDisposable> of 

[... truncated for brevity ]

  "associated type descriptor for Foundation._ErrorCodeProtocol._ErrorType", referenced from:
      l_got.$s10_ErrorType10Foundation01_A12CodeProtocolPTl in libMultiplatformBleAdapter.a(AddRef.o)
  "_swift_allocError", referenced from:
      closure #1 (MultiplatformBleAdapter.BluetoothState) -> MultiplatformBleAdapter.Observable<MultiplatformBleAdapter.Peripheral> in closure #1 (MultiplatformBleAdapter.Peripheral) -> () in MultiplatformBleAdapter.BleClientManager.(onRestoreState in _91B11B39DE99A7D0847651011B6326F9)(MultiplatformBleAdapter.RestoredState?) -> () in libMultiplatformBleAdapter.a(BleModule.o)
      MultiplatformBleAdapter.BleClientManager.(safeConnectToDevice in _91B11B39DE99A7D0847651011B6326F9)(_: Foundation.UUID, timeout: Swift.Int?, promise: MultiplatformBleAdapter.SafePromise) -> () in libMultiplatformBleAdapter.a(BleModule.o)
      closure #1 ([MultiplatformBleAdapter.Peripheral]) -> MultiplatformBleAdapter.Observable<MultiplatformBleAdapter.Peripheral> in MultiplatformBleAdapter.BleClientManager.(safeConnectToDevice in _91B11B39DE99A7D0847651011B6326F9)(_: Foundation.UUID, timeout: Swift.Int?, promise: MultiplatformBleAdapter.SafePromise) -> () in libMultiplatformBleAdapter.a(BleModule.o)
      closure #1 (MultiplatformBleAdapter.AnyObserver<MultiplatformBleAdapter.Characteristic>) -> MultiplatformBleAdapter.Disposable in MultiplatformBleAdapter.BleClientManager.(getCharacteristicForDevice in _91B11B39DE99A7D0847651011B6326F9)(_: Swift.String, serviceUUID: Swift.String, characteristicUUID: Swift.String) -> MultiplatformBleAdapter.Observable<MultiplatformBleAdapter.Characteristic> in libMultiplatformBleAdapter.a(BleModule.o)
      closure #1 (MultiplatformBleAdapter.AnyObserver<MultiplatformBleAdapter.Characteristic>) -> MultiplatformBleAdapter.Disposable in MultiplatformBleAdapter.BleClientManager.(getCharacteristicForService in _91B11B39DE99A7D0847651011B6326F9)(_: Swift.Double, characteristicUUID: Swift.String) -> MultiplatformBleAdapter.Observable<MultiplatformBleAdapter.Characteristic> in libMultiplatformBleAdapter.a(BleModule.o)
      closure #1 (MultiplatformBleAdapter.AnyObserver<MultiplatformBleAdapter.Characteristic>) -> MultiplatformBleAdapter.Disposable in MultiplatformBleAdapter.BleClientManager.(getCharacteristic in _91B11B39DE99A7D0847651011B6326F9)(Swift.Double) -> MultiplatformBleAdapter.Observable<MultiplatformBleAdapter.Characteristic> in libMultiplatformBleAdapter.a(BleModule.o)
      closure #1 (MultiplatformBleAdapter.Characteristic) -> MultiplatformBleAdapter.Observable<MultiplatformBleAdapter.Descriptor> in MultiplatformBleAdapter.BleClientManager.(getDescriptorByUUID in _91B11B39DE99A7D0847651011B6326F9)(_: Swift.String, characteristicObservable: MultiplatformBleAdapter.Observable<MultiplatformBleAdapter.Characteristic>) -> MultiplatformBleAdapter.Observable<MultiplatformBleAdapter.Descriptor> in libMultiplatformBleAdapter.a(BleModule.o)
      ...
  "__swift_FORCE_LOAD_$_swiftFoundation", referenced from:
      __swift_FORCE_LOAD_$_swiftFoundation_$_onigiri in Bridge.o
      __swift_FORCE_LOAD_$_swiftFoundation_$_MultiplatformBleAdapter in libMultiplatformBleAdapter.a(BleModule.o)
      __swift_FORCE_LOAD_$_swiftFoundation_$_MultiplatformBleAdapter in libMultiplatformBleAdapter.a(BleEvent.o)
      __swift_FORCE_LOAD_$_swiftFoundation_$_MultiplatformBleAdapter in libMultiplatformBleAdapter.a(BleAdapterFactory.o)
      __swift_FORCE_LOAD_$_swiftFoundation_$_MultiplatformBleAdapter in libMultiplatformBleAdapter.a(AddRef.o)
      __swift_FORCE_LOAD_$_swiftFoundation_$_MultiplatformBleAdapter in libMultiplatformBleAdapter.a(AdvertisementData.o)
      __swift_FORCE_LOAD_$_swiftFoundation_$_MultiplatformBleAdapter in libMultiplatformBleAdapter.a(Amb.o)
      ...
     (maybe you meant: __swift_FORCE_LOAD_$_swiftFoundation_$_onigiri, __swift_FORCE_LOAD_$_swiftFoundation_$_MultiplatformBleAdapter )
  "nominal type descriptor for Swift.UInt64", referenced from:
      _symbolic _____ s6UInt64V in libMultiplatformBleAdapter.a(Bag.o)
      _symbolic _____ s6UInt64V in libMultiplatformBleAdapter.a(Debounce.o)
      _symbolic ___________pIegyr_ s6UInt64V 23MultiplatformBleAdapter10DisposableP in libMultiplatformBleAdapter.a(Debounce.o)
  "static Foundation.UUID._unconditionallyBridgeFromObjectiveC(__C.NSUUID?) -> Foundation.UUID", referenced from:
      MultiplatformBleAdapter.BleClientManager.(clearCacheForPeripheral in _91B11B39DE99A7D0847651011B6326F9)(peripheral: MultiplatformBleAdapter.Peripheral) -> () in libMultiplatformBleAdapter.a(BleModule.o)
      (extension in MultiplatformBleAdapter):__C.CBPeripheral.logDescription.getter : Swift.String in libMultiplatformBleAdapter.a(Logging.o)
      MultiplatformBleAdapter.RxCBPeripheral.identifier.getter : Foundation.UUID in libMultiplatformBleAdapter.a(RxCBPeripheral.o)
  "Swift.Set.init(minimumCapacity: Swift.Int) -> Swift.Set<A>", referenced from:
      function signature specialization <Arg[0] = Owned To Guaranteed> of generic specialization <__C.CBUUID, [__C.CBUUID]> of Swift.Set.init<A where A == A1.Element, A1: Swift.Sequence>(__owned A1) -> Swift.Set<A> in libMultiplatformBleAdapter.a(Peripheral.o)
  "(extension in Swift):Swift.Error._userInfo.getter : Swift.AnyObject?", referenced from:
      protocol witness for Swift.Error._userInfo.getter : Swift.AnyObject? in conformance __C_Synthesized.related decl 'e' for CBATTError : Swift.Error in __C_Synthesized in libMultiplatformBleAdapter.a(AddRef.o)
      protocol witness for Swift.Error._userInfo.getter : Swift.AnyObject? in conformance MultiplatformBleAdapter.BleError : Swift.Error in MultiplatformBleAdapter in libMultiplatformBleAdapter.a(BleError.o)
      protocol witness for Swift.Error._userInfo.getter : Swift.AnyObject? in conformance MultiplatformBleAdapter.BluetoothError : Swift.Error in MultiplatformBleAdapter in libMultiplatformBleAdapter.a(BluetoothError.o)
      protocol witness for Swift.Error._userInfo.getter : Swift.AnyObject? in conformance MultiplatformBleAdapter.RxError : Swift.Error in MultiplatformBleAdapter in libMultiplatformBleAdapter.a(Errors.o)
  "__swift_FORCE_LOAD_$_swiftCoreFoundation", referenced from:
      __swift_FORCE_LOAD_$_swiftCoreFoundation_$_onigiri in Bridge.o
      __swift_FORCE_LOAD_$_swiftCoreFoundation_$_MultiplatformBleAdapter in libMultiplatformBleAdapter.a(BleModule.o)
      __swift_FORCE_LOAD_$_swiftCoreFoundation_$_MultiplatformBleAdapter in libMultiplatformBleAdapter.a(BleEvent.o)
      __swift_FORCE_LOAD_$_swiftCoreFoundation_$_MultiplatformBleAdapter in libMultiplatformBleAdapter.a(BleAdapterFactory.o)
      __swift_FORCE_LOAD_$_swiftCoreFoundation_$_MultiplatformBleAdapter in libMultiplatformBleAdapter.a(AddRef.o)
      __swift_FORCE_LOAD_$_swiftCoreFoundation_$_MultiplatformBleAdapter in libMultiplatformBleAdapter.a(AdvertisementData.o)
      __swift_FORCE_LOAD_$_swiftCoreFoundation_$_MultiplatformBleAdapter in libMultiplatformBleAdapter.a(Amb.o)
      ...
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreFoundation_$_MultiplatformBleAdapter, __swift_FORCE_LOAD_$_swiftCoreFoundation_$_onigiri )
  "method descriptor for Foundation.CustomNSError.errorUserInfo.getter : [Swift.String : Any]", referenced from:
      l_got.$s10Foundation13CustomNSErrorP13errorUserInfoSDySSypGvgTq in libMultiplatformBleAdapter.a(AddRef.o)
  "(extension in Dispatch):__C.OS_dispatch_queue.init(label: Swift.String, qos: Dispatch.DispatchQoS, attributes: (extension in Dispatch):__C.OS_dispatch_queue.Attributes, autoreleaseFrequency: (extension in Dispatch):__C.OS_dispatch_queue.AutoreleaseFrequency, target: __C.OS_dispatch_queue?) -> __C.OS_dispatch_queue", referenced from:
      MultiplatformBleAdapter.ConcurrentDispatchQueueScheduler.__allocating_init(qos: Dispatch.DispatchQoS, leeway: Dispatch.DispatchTimeInterval) -> MultiplatformBleAdapter.ConcurrentDispatchQueueScheduler in libMultiplatformBleAdapter.a(ConcurrentDispatchQueueScheduler.o)
      MultiplatformBleAdapter.SerialDispatchQueueScheduler.__allocating_init(internalSerialQueueName: Swift.String, serialQueueConfiguration: (__C.OS_dispatch_queue) -> ()?, leeway: Dispatch.DispatchTimeInterval) -> MultiplatformBleAdapter.SerialDispatchQueueScheduler in libMultiplatformBleAdapter.a(SerialDispatchQueueScheduler.o)
      function signature specialization <Arg[0] = Owned To Guaranteed, Arg[1] = Owned To Guaranteed> of MultiplatformBleAdapter.SerialDispatchQueueScheduler.__allocating_init(queue: __C.OS_dispatch_queue, internalSerialQueueName: Swift.String, leeway: Dispatch.DispatchTimeInterval) -> MultiplatformBleAdapter.SerialDispatchQueueScheduler in libMultiplatformBleAdapter.a(SerialDispatchQueueScheduler.o)
  "type metadata accessor for Foundation.UUID", referenced from:
      generic specialization <Foundation.UUID, MultiplatformBleAdapter.Peripheral> of Swift.Dictionary.removeValue(forKey: A) -> B? in libMultiplatformBleAdapter.a(BleModule.o)
      generic specialization <Foundation.UUID, MultiplatformBleAdapter.Disposable> of Swift.Dictionary.removeValue(forKey: A) -> B? in libMultiplatformBleAdapter.a(BleModule.o)
      MultiplatformBleAdapter.BleClientManager.invalidate() -> () in libMultiplatformBleAdapter.a(BleModule.o)
      closure #1 (MultiplatformBleAdapter.Peripheral) -> () in MultiplatformBleAdapter.BleClientManager.(onRestoreState in _91B11B39DE99A7D0847651011B6326F9)(MultiplatformBleAdapter.RestoredState?) -> () in libMultiplatformBleAdapter.a(BleModule.o)
      MultiplatformBleAdapter.BleClientManager.readRSSIForDevice(_: Swift.String, transactionId: Swift.String, resolve: (Any?) -> (), reject: (Swift.String?, Swift.String?, __C.NSError?) -> ()) -> () in libMultiplatformBleAdapter.a(BleModule.o)
      MultiplatformBleAdapter.BleClientManager.devices(_: [Swift.String], resolve: (Any?) -> (), reject: (Swift.String?, Swift.String?, __C.NSError?) -> ()) -> () in libMultiplatformBleAdapter.a(BleModule.o)
      MultiplatformBleAdapter.BleClientManager.connectedDevices(_: [Swift.String], resolve: (Any?) -> (), reject: (Swift.String?, Swift.String?, __C.NSError?) -> ()) -> () in libMultiplatformBleAdapter.a(BleModule.o)
      ...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
{
  "name": "onigiri",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint .",
    "bundle-dev": "npx react-native bundle --platform android --dev true --entry-file index.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debug",
    "bundle": "npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output ./android/app/build/intermediates/assets/release/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/release",
    "build-debug": "./android/gradlew assembleDebug",
    "build": "./android/gradlew assembleRelease"
  },
  "dependencies": {
    "@popmotion/popcorn": "^0.4.4",
    "@react-native-async-storage/async-storage": "^1.14.1",
    "@react-native-community/geolocation": "^2.0.2",
    "@react-native-community/masked-view": "^0.1.10",
    "@react-navigation/bottom-tabs": "^5.5.2",
    "@react-navigation/native": "^5.5.1",
    "@react-navigation/stack": "^5.5.1",
    "@reduxjs/toolkit": "^1.3.6",
    "add": "^2.0.6",
    "dayjs": "^1.10.4",
    "geolib": "^3.3.1",
    "i18next": "^19.4.5",
    "leaflet": "^1.6.0",
    "lodash.debounce": "^4.0.8",
    "lodash.isequal": "^4.5.0",
    "react": "16.13.1",
    "react-i18next": "^11.5.0",
    "react-native": "0.63.4",
    "react-native-ble-plx": "^2.0.2",
    "react-native-bootsplash": "^2.2.4",
    "react-native-gesture-handler": "^1.6.1",
    "react-native-languages": "^3.0.2",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-localize": "^1.4.0",
    "react-native-modal": "^11.5.6",
    "react-native-permissions": "^3.0.0",
    "react-native-reanimated": "^1.9.0",
    "react-native-safe-area-context": "^3.0.3",
    "react-native-safe-area-view": "^1.1.1",
    "react-native-screens": "^2.8.0",
    "react-native-svg": "^12.1.0",
    "react-native-webview": "^10.3.1",
    "react-redux": "^7.2.0",
    "redux-persist": "^6.0.0",
    "redux-thunk": "^2.3.0",
    "reselect": "^4.0.0",
    "styled-components": "^5.1.1"
  },
  "devDependencies": {
    "@babel/cli": "^7.10.1",
    "@babel/core": "^7.12.10",
    "@babel/eslint-parser": "^7.12.1",
    "@babel/preset-flow": "^7.10.1",
    "@babel/runtime": "^7.8.4",
    "@react-native-community/eslint-config": "^1.1.0",
    "babel-jest": "^25.1.0",
    "eslint": "^7.18.0",
    "eslint-plugin-flowtype": "^5.2.0",
    "flow-bin": "^0.126.1",
    "jest": "^25.1.0",
    "metro-react-native-babel-preset": "^0.59.0",
    "react-native-dotenv": "^2.4.3",
    "react-native-svg-transformer": "^0.14.3",
    "react-test-renderer": "16.13.1"
  },
  "jest": {
    "preset": "react-native"
  }
}
ortonomy commented 3 years ago

xcode version is 12.4

Brassco commented 3 years ago

I got this errors for Debug scheme

tickietackie commented 3 years ago

Just wanted to say that I got the same error, but indeed it was related to not having the bridging file. Somehow the first time I was creating the first swift file I wasn't ask for if a bridging file should be created. So I deleted the Swift file, created it again and the second time it asked me. Afterwards the build succeeded. This probably does not have sth. do to with this issues in particular, but maybe someone stumbles over the same problem that I did.

tickietackie commented 3 years ago

Also not opening the workspace file directly got me this error.

dominik-czupryna-withintent commented 1 year ago

The new major release updates the core packages that support the latest versions of the operating system and fixes some old bugs. Please confirm if the issue still persists and create a new issue if it still does.