react-native-boundary icon indicating copy to clipboard operation
react-native-boundary copied to clipboard

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

Open TusharAswal opened this issue 5 years ago • 8 comments

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.

TusharAswal avatar Sep 07 '19 07:09 TusharAswal

Same here

gusilveiramp avatar Mar 26 '20 02:03 gusilveiramp

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

mykhailoperemitko avatar Jul 22 '20 10:07 mykhailoperemitko

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

abhilash-behera avatar Aug 04 '20 06:08 abhilash-behera

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

rahulmr-rently avatar Aug 04 '20 06:08 rahulmr-rently

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

ok

abhilash-behera avatar Aug 04 '20 06:08 abhilash-behera

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

woojong92 avatar Aug 25 '20 08:08 woojong92

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 avatar Oct 29 '20 20:10 Sbphillips19

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

Sbphillips19 avatar Oct 29 '20 21:10 Sbphillips19