question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

node module cannot be null. please help thank you!

See original GitHub issue

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Expected Behavior

app can run Please describe the behavior you are expecting

Current Behavior

What is the current behavior? if I build with Xcode Screen Shot 2019-12-15 at 6 14 14 PM

If I build with terminal

CodeSign /Users/isabelbolger/Documents/Code/MountLock/ios/build/MountLock/Build/Products/Debug-iphonesimulator/MountLock.app (in target: MountLock)
    cd /Users/isabelbolger/Documents/Code/MountLock/ios
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    
Signing Identity:     "-"

    /usr/bin/codesign --force --sign - --entitlements /Users/isabelbolger/Documents/Code/MountLock/ios/build/MountLock/Build/Intermediates.noindex/MountLock.build/Debug-iphonesimulator/MountLock.build/MountLock.app.xcent --timestamp=none /Users/isabelbolger/Documents/Code/MountLock/ios/build/MountLock/Build/Products/Debug-iphonesimulator/MountLock.app
/Users/isabelbolger/Documents/Code/MountLock/ios/build/MountLock/Build/Products/Debug-iphonesimulator/MountLock.app: resource fork, Finder information, or similar detritus not allowed
Command CodeSign failed with a nonzero exit code


** BUILD FAILED **


The following build commands failed:
	CodeSign /Users/isabelbolger/Documents/Code/MountLock/ios/build/MountLock/Build/Products/Debug-iphonesimulator/MountLock.app
(1 failure)

Context

Podfile

platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'


target 'MountLock' do
  # Pods for MountLock
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
  pod 'RNGestureHandler', :podspec => '../node_modules/react-native-gesture-handler/RNGestureHandler.podspec'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'


  # https://github.com/Polidea/react-native-ble-plx#ios-expopodfile-and-rn-060-example-setup
  pod 'react-native-ble-plx-swift', :path => '../node_modules/react-native-ble-plx'

  target 'MountLockTests' do
    inherit! :search_paths
    # Pods for testing
  end

 end

target 'MountLock-tvOS' do
  # Pods for MountLock-tvOS

  target 'MountLock-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end
  • Platform: iOS.
  • Contents of the package.json file:
  "name": "MountLock",
  "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 ."
  },
  "dependencies": {
    "firebase": "^7.2.2",
    "js-base64": "^2.5.1",
    "js-sha3": "^0.8.0",
    "react": "^16.11.0",
    "react-native": "0.61.5",
    "react-native-ble-plx": "^1.1.0",
    "react-native-gesture-handler": "^1.4.1",
    "react-navigation": "^4.0.10",
    "react-navigation-stack": "^1.10.3"
  },
  "devDependencies": {
    "@babel/core": "^7.6.4",
    "@babel/runtime": "^7.6.3",
    "@react-native-community/eslint-config": "^0.0.5",
    "babel-jest": "^24.9.0",
    "eslint": "^6.6.0",
    "jest": "^24.9.0",
    "metro-react-native-babel-preset": "^0.57.0",
    "react-test-renderer": "16.12.0"
  },
  "jest": {
    "preset": "react-native"
  }
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
dariuszseweryncommented, Dec 16, 2019

Hello, It seems that you have not integrated the library correctly. Try going through the integration process once again (check readme)

0reactions
dariuszseweryncommented, Dec 19, 2019

Closing then

Read more comments on GitHub >

github_iconTop Results From Across the Web

node module cannot be null. please help thank you! #590
I am running the latest version · I checked the documentation and found no answer · I checked to make sure that this...
Read more >
React-native, "Native module cannot be null" - Stack Overflow
1. i think u should try to use import instead of require. – KOTIOS · 2. For example, I am using the "import"...
Read more >
Top 10 Most Common Node.js Developer Mistakes - Toptal
js appear straight out unusable for whatever you are trying to achieve. In this article, we will take a look at ten common...
Read more >
Mocking RN modules | React Made Native Easy
i have introduced a native module called 'react-native-gps-state' in my personal project,but after running tests suits i'm getting error of "Invarient Voilation ...
Read more >
Why do I get an error "value cannot be null (Parameter 'type ...
I am using the example code from https://docs.microsoft.com/en-us/answers/questions/299791/saving-to-appsettingsjson.html.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found