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

React-native 0.60.5, iOs error when running fastlane 'React/RCTView.h' file not found #21

Open
maxKimoby opened this issue Aug 29, 2019 · 3 comments

Comments

@maxKimoby
Copy link

I get 'React/RCTView.h' file not found whenever I try to compile my react-native app for iOs. Can it be fixed? Thank you

@nihgwu
Copy link
Owner

nihgwu commented Aug 30, 2019

I haven't written any React Native code for more than two years, sorry

@PaperMonster
Copy link

I fixed this by:

  1. Create RNFLAnimatedImage.podspec to package root with following content:
require 'json'

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

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

  s.authors      = package['author']
  s.homepage     = package['homepage']
  s.platform     = :ios, "9.0"

  s.source       = { :git => "https://github.com/nihgwu/react-native-flanimatedimage.git", :tag => "v#{s.version}" }
  s.source_files  = "**/*.{h,m}"

  s.dependency 'React'
  s.dependency 'FLAnimatedImage'
end
  1. Make sure the library is already unlinked.
  2. Make sure your Podfile contains use_native_modules! after dependencies e.g.:
...
target 'MyApp' do
  pod 'React', :path => '../node_modules/react-native/'
  ...
  target 'MyAppTests' do
      inherit! :search_paths
      # Pods for testing
    end
  use_native_modules!    # Required for autolink
end

  1. pod install to activate autolink.

Or use our forked version https://github.com/shobshop/react-native-flanimatedimage

@nihgwu
Copy link
Owner

nihgwu commented Jan 14, 2020

I guess it happens because RNv0.60+ has builtin support for CocoaPods while this package uses Carthage by default?

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

3 participants