Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native Module cannot be null on ( "react-native": "0.60.5") #49

Open
TusharAswal opened this issue Sep 7, 2019 · 8 comments
Open

Native Module cannot be null on ( "react-native": "0.60.5") #49

TusharAswal opened this issue Sep 7, 2019 · 8 comments

Comments

@TusharAswal
Copy link

TusharAswal commented Sep 7, 2019

Screen Shot 2019-09-07 at 12 56 38 PM
Works fine on android but as soon as I open it on IOS I get this error.

@gusilveiramp
Copy link

Same here

@mykhailoperemitko
Copy link

mykhailoperemitko commented Jul 22, 2020

This problem can be fixed by setting a correct .podspec configuration. You can use the example below as a reference

require 'json'

package = JSON.parse(File.read(File.join(__dir__, '../package.json')))

Pod::Spec.new do |s|
  s.name         = "RNBoundary"
  s.version      = package['version']
  s.summary      = package['description']
  s.license      = package['license']

  s.authors      = package['author']
  s.homepage     = "https://github.com/mikhailperemitko/react-native-boundary#readme"
  s.platform     = :ios, "9.0"

  s.source       = { :git => "https://github.com/eddieowens/react-native-boundary.git", :tag => "#{s.version}" }
  s.source_files  = "*.{h,m}"
  s.requires_arc = true

  s.dependency 'React'
end

@abhilash-behera
Copy link

require 'json'

package = JSON.parse(File.read(File.join(dir, '../package.json')))

Pod::Spec.new do |s|
s.name = "RNBoundary"
s.version = package['version']
s.summary = package['description']
s.license = package['license']

s.authors = package['author']
s.homepage = "https://github.com/mikhailperemitko/react-native-boundary#readme"
s.platform = :ios, "9.0"

s.source = { :git => "https://github.com/eddieowens/react-native-boundary.git", :tag => "#{s.version}" }
s.source_files = "*.{h,m}"
s.requires_arc = true

s.dependency 'React'
end

This worked for me

@rahulmr-rently
Copy link

@abhilashfancy Hi Abhilash,
I have mailed you regarding one clarification. can you please check and help me with that?

@abhilash-behera
Copy link

@abhilashfancy Hi Abhilash,
I have mailed you regarding one clarification. can you please check and help me with that?

ok

@woojong92
Copy link

I used the following command.
watchman watch-del-all, and react-native start --reset-cache
This worked for me

@Sbphillips19
Copy link

Sbphillips19 commented Oct 29, 2020

Any other ideas what to change in podspec file? I have tried everything above and still get the error:

No podspec found for `RNBoundary` in `../node_modules/react-native-boundary`

I can see the file there

@Sbphillips19
Copy link

Somehow I figured it out by looking at other projects. The podspec file was inside the ios file and so the link is wrong:

pod 'RNBoundary', :path => '../node_modules/react-native-boundary'

should be:

pod 'RNBoundary', :path => '../node_modules/react-native-boundary/ios'

Hope this helps other people

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants