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.

[iOS][cocoapods] 'RCTAnimation/RCTValueAnimatedNode.h' file not found

See original GitHub issue

Description

'RCTAnimation/RCTValueAnimatedNode.h' file not found. in current master https://github.com/facebook/react-native/tree/c233191485ef733aa7a8d4ea5c758b9e6a06964c

  1. related to 28 of march changes. @janicduplessis might help
  2. podspec test are passed. @alloy do you have ideas how tests could be improved? Maybe we need to run xcbuild to test?

Reproduction Steps and Sample Code

https://github.com/skv-headless/AwesomeProject - demo project based on this page https://facebook.github.io/react-native/docs/integration-with-existing-apps.html#cocoapods

Solution

It works if change #import <RCTAnimation/RCTValueAnimatedNode.h> to #import "RCTValueAnimatedNode.h"

Additional Information

  • Platform: [iOS]
  • Development Operating System: [MacOS]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:77
  • Comments:69 (16 by maintainers)

github_iconTop GitHub Comments

35reactions
egorkhmelevcommented, May 21, 2017

For those who still searching for a quick solution. I was able to launch iOS app with RCTAnimation subspec by including following string to my package.json:

"scripts": {
  "postinstall": "sed -i '' 's\/#import <RCTAnimation\\/RCTValueAnimatedNode.h>\/#import \"RCTValueAnimatedNode.h\"\/' ./node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h",
  ...rest scripts
}

React: 16.0.0-alpha.12 ReactNative: 0.45.0-rc.0

Didn’t work for me with above PR which already accepted in 0.45.0-rc.0

26reactions
shruticcommented, May 2, 2017

I still get this error even in 0.44.0 where the code in RCTNativeAnimatedModule.h is updated from It works if change #import <RCTAnimation/RCTValueAnimatedNode.h> to #import “RCTValueAnimatedNode.h”

as mentioned by the original Bug logger. So the solution did not work for me… Any other recommended solutions?

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS - Build fails with CocoaPods cannot find header files
I have checked out his branch and tried to build it, but I am getting an error: ASLogger/ASLogger.h file not found. Even if...
Read more >
Trouble with installing cocoapods | Apple Developer Forums
I am getting the same error over and over again and I do not know why. ... `try_do': The compiler failed to generate...
Read more >
CocoaPods
CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 93 thousand libraries and is used in over 3...
Read more >
Installation | React Native Navigation - Open Source
pod install --project-directory=ios ... 'ReactNativeNavigation/ReactNativeNavigation.h' file not found. ... node_modules/react-native-navigation/lib/ios.
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 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