react-native-image-editor: 'RCTImageUtils.h' file not found

Bug

Trying to build my project in Xcode after having linked this library. Getting a “‘RCTImageUtils.h’ file not found” build error.

Environment info

React native info output:

React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (8) x64 Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
      Memory: 221.55 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.14.1 - /usr/local/bin/node
      npm: 6.9.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
      Android SDK:
        API Levels: 23, 25, 26, 27, 28
        Build Tools: 27.0.3, 28.0.3
        System Images: android-28 | Intel x86 Atom, android-28 | Intel x86 Atom_64
    IDEs:
      Android Studio: 3.3 AI-182.5107.16.33.5314842
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3 
      react-native: 0.59.10 => 0.59.10 
    npmGlobalPackages:
      react-native-cli: 2.0.1

Library version: 2.0.0

Steps To Reproduce

  1. install this lib
  2. run react-native link @react-native-community/image-editor
  3. open Xcode, navigate to Product --> Build

Describe what you expected to happen:

  1. the project successfully builds

Notes

I think the problem is that, in RNCImageEditor.m, line 20’s if/else is falling back to the else even when RCTImage/RCTImageUitls exists in the project (where RCTImage.xcodeproj is a sibling to RNCImageEditor.xcodeproj)

image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

The fix is included into v2.0.2. Let me know if it works for you!

I’m getting the same error.

@kevincantstop I am pretty sure you’re using v1 of image-editor. Can you try v2.0.1 ? We no longer use image-store under the hood.