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

latest version fails to build with 'butter/map.h' error ([email protected]) #3823

Closed
mgcrea opened this issue Nov 30, 2022 · 10 comments
Closed
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided

Comments

@mgcrea
Copy link

mgcrea commented Nov 30, 2022

Description

Starting a new project using the latest rc available, Xcode won't build once I've added react-native-reanimated.

Error is related to an include: #include <butter/map.h>

/node_modules/react-native/ReactCommon/react/bridging/Object.h:13:10 'butter/map.h' file not found

Steps to reproduce

  1. npx react-native init ETSMobile --version 0.71.0-rc.2
  2. yarn add react-native-reanimated + babel config
  3. npm run ios or build via xcodexed ios/

Snack or a link to a repository

https://github.com/mgcrea/react-native-sandbox/tree/reanimated-bug

Reanimated version

2.13.0

React Native version

0.71.0-rc.2

Platforms

iOS

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

No response

Build type

Debug mode

Device

Real device

Device model

No response

Acknowledgements

Yes

@mgcrea mgcrea added the Needs review Issue is ready to be reviewed by a maintainer label Nov 30, 2022
@github-actions github-actions bot added Repro provided A reproduction with a snippet of code, snack or repo is provided Platform: iOS This issue is specific to iOS labels Nov 30, 2022
@tomekzaw
Copy link
Member

Hello @mgcrea, thanks for reporting this issue.

I've also noticed this error when using a nightly build of RN.

We are actively working on adding support for React Native 0.71.0, see this PR:

@tomekzaw tomekzaw removed the Needs review Issue is ready to be reviewed by a maintainer label Nov 30, 2022
@krmao
Copy link

krmao commented Dec 2, 2022

I am also face this problem.

@wojtekmaj
Copy link

Interestingly, I don't use react-native-reanimated and I also faced this error in 0.71.0.

@tomekzaw
Copy link
Member

Interestingly, I don't use react-native-reanimated and I also faced this error in 0.71.0.

This might be a matter of outdated files in ios/build directory due to broken cleanup script.

Please clean Xcode build folder, then run the following commands:

  • rm -rf ios/build
  • rm -rf Pods
  • pod install

and try again.

@wojtekmaj
Copy link

I came up with this handy command:

  "nuke": "rm -rf node_modules; rm -rf ios/build; rm -rf ios/Pods; rm -rf ios/Podfile.lock; yarn; yarn podinstall"

@tomekzaw
Copy link
Member

tomekzaw commented Jan 2, 2023

Hey, while Reanimated 2.13.0 technically works with React Native 0.71.0-rc.x on iOS, it doesn't compile on Android due to many breaking changes in React Native itself.

We already have a PR that adds support for React Native 0.71.0 (#3745) which we plan to merge and release soon, so I'm closing this issue.

@tomekzaw tomekzaw closed this as completed Jan 2, 2023
@sunilsaguna
Copy link

Interestingly, I don't use react-native-reanimated and I also faced this error in 0.71.0.

This might be a matter of outdated files in ios/build directory due to broken cleanup script.

Please clean Xcode build folder, then run the following commands:

  • rm -rf ios/build
  • rm -rf Pods
  • pod install

and try again.

great! it's working for me

@Akeuuh
Copy link

Akeuuh commented Jan 27, 2023

I came up with this handy command:

  "nuke": "rm -rf node_modules; rm -rf ios/build; rm -rf ios/Pods; rm -rf ios/Podfile.lock; yarn; yarn podinstall"

I like the spirit haha!

@edgarcandales
Copy link

edgarcandales commented Apr 7, 2023

@wojtekmaj I came out with a bash script. Create a file in the main folder and call it "start.sh". Put this code inside it:

`
#!/bin/bash

rm -rf node_modules
rm -rf ios/Pods
rm -rf ios/build
rm ios/Podfile.lock
rm package-lock.json
kill $(lsof -t -i :8081)
npm start -- --reset-cache &
pid=$!
sleep 5
kill $pid
npm i
cd ios
pod install
cd ..
npx react-native run-ios
#npx react-native run-ios --simulator="iPhone 8"
#npx react-native run-ios --simulator="iPhone 8 Plus"
#npx react-native run-ios --simulator="iPhone 11"
#npx react-native run-ios --simulator="iPhone 11 Pro"
#npx react-native run-ios --simulator="iPhone 11 Pro Max"
#npx react-native run-ios --simulator="iPhone SE (2nd generation)"
#npx react-native run-ios --simulator="iPhone 12 mini"
#npx react-native run-ios --simulator="iPhone 12"
#npx react-native run-ios --simulator="iPhone 12 Pro"
#npx react-native run-ios --simulator="iPhone 12 Pro Max"
#npx react-native run-ios --simulator="iPhone 13 Pro"
#npx react-native run-ios --simulator="iPhone 13 Pro Max"
#npx react-native run-ios --simulator="iPhone 13 mini"
#npx react-native run-ios --simulator="iPhone 13"
#npx react-native run-ios --simulator="iPhone 14 Pro Max"
#npx react-native run-ios --simulator="iPhone 14"
#npx react-native run-ios --simulator="iPhone 14 Pro"

#npx react-native run-android
`
uncomment and comment any npx as convinient (depending on the device you want to run the app). Tu run the app simply write in your terminal "bash start.sh" or "./start.sh".

@RaguRam1991
Copy link

Interestingly, I don't use react-native-reanimated and I also faced this error in 0.71.0.

This might be a matter of outdated files in ios/build directory due to broken cleanup script.

Please clean Xcode build folder, then run the following commands:

  • rm -rf ios/build
  • rm -rf Pods
  • pod install

and try again.

thanks, this working for me

@software-mansion software-mansion locked as spam and limited conversation to collaborators May 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided
Projects
None yet
Development

No branches or pull requests

8 participants