Skip to content

Error while converting JavaScript argument 3 to Objective C type NSInteger #22

@jakecurreri

Description

@jakecurreri

Receiving this error on RN 0.76.3:

RNNordicDfu.startDFU(): Error while converting JavaScript argument 3 to Objective C type NSInteger. Objective C type NSInteger is unsupported.

Android DFU is working as expected. iOS continues to throw this error at the initiation of startDFU. No build issues. AppDelegate.mm written as prescribed by the docs.

Here is the only adjustment to my Podfile with USE_FRAMEWORKS=static pod install for installation:

target 'MyApp' do
  config = use_native_modules!

  pod "react-native-nordic-dfu", path: "../node_modules/react-native-nordic-dfu"
  ...

And my call to NordicDFU.startDFU:

return await NordicDFU.startDFU({
   deviceAddress: deviceId,
   deviceName: deviceName || undefined,
   filePath: Platform.OS === 'ios' ? `file://${filePath}` : filePath,
   retries: 4,
 });

Possibly a library issue with the new architecture?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions