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

Moving to subfolder causes run-ios to fail. - Precompiled headers PCH #6797

Closed
GantMan opened this issue Apr 4, 2016 · 7 comments
Closed
Labels
Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@GantMan
Copy link
Contributor

GantMan commented Apr 4, 2016

✅ I'm willing to fix this

I just need to know where to start.

The problem:

react-native init MyAwesomeProject
cd MyAwesomeProject
react-native run-ios # THIS WORKS
cd ..
mkdir newDir
mv MyAwesomeProject/ newDir/MyAwesomeProject
cd newDir/MyAwesomeProject
react-native run-ios # THIS NOW FAILS

ERROR:
error: PCH was compiled with module cache path '/Users/gantman/Documents/Projects/rn/MyAwesomeProject/ios/build/ModuleCache/3UB7MQ6FP2IXG', but the path is currently '/Users/gantman/Documents/Projects/rn/PlanA/MyAwesomeProject/ios/build/ModuleCache/3UB7MQ6FP2IXG'

SOLUTION:
rm -rf ios/build/ModuleCache/*

How can I help?

@satya164
Copy link
Contributor

cc @nicklockwood

@satya164 satya164 added the Platform: iOS iOS applications. label Apr 16, 2016
@grabbou
Copy link
Contributor

grabbou commented Apr 18, 2016

I believe we can add this to FAQ -> http://stackoverflow.com/a/15463219/3110982

@GantMan
Copy link
Contributor Author

GantMan commented Apr 20, 2016

I like adding the rm command, too. As I have been trying to use react-native run-ios lately, instead of opening Xcode.

@GantMan
Copy link
Contributor Author

GantMan commented Apr 20, 2016

@grabbou : Are you suggesting an edit to: http://facebook.github.io/react-native/docs/known-issues.html#content

Or is FAQ a different document?

@grabbou
Copy link
Contributor

grabbou commented Apr 20, 2016

Probably, after init hangs bit. However I can see that in the future, we might need to split that into sep. files.

GantMan added a commit to GantMan/react-native that referenced this issue Apr 23, 2016
Moving files that have generated PCHs causes an error that you cannot clear easily.  Here are the instructions on how.

I was prompted to place this info here via facebook#6797
@grabbou grabbou closed this as completed Apr 23, 2016
ghost pushed a commit that referenced this issue Jun 17, 2016
Summary:
Moving files that have generated PCHs causes an error that you cannot clear easily.  Here are the instructions on how.

I was prompted to place this info here via #6797
Closes #7185

Differential Revision: D3453289

Pulled By: mkonicek

fbshipit-source-id: 8e16ea8f1bc3495209d1510a1caad2c6208c2e1e
samerce pushed a commit to iodine/react-native that referenced this issue Aug 23, 2016
Summary:
Moving files that have generated PCHs causes an error that you cannot clear easily.  Here are the instructions on how.

I was prompted to place this info here via facebook#6797
Closes facebook#7185

Differential Revision: D3453289

Pulled By: mkonicek

fbshipit-source-id: 8e16ea8f1bc3495209d1510a1caad2c6208c2e1e
mpretty-cyro pushed a commit to HomePass/react-native that referenced this issue Aug 25, 2016
Summary:
Moving files that have generated PCHs causes an error that you cannot clear easily.  Here are the instructions on how.

I was prompted to place this info here via facebook#6797
Closes facebook#7185

Differential Revision: D3453289

Pulled By: mkonicek

fbshipit-source-id: 8e16ea8f1bc3495209d1510a1caad2c6208c2e1e
@zeroasterisk
Copy link

FYI this is still happening

@mateodelnorte
Copy link

+1 Same here

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

7 participants