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

Xcode build cache not cleaned #18

Closed
mikehardy opened this issue Jun 27, 2019 · 2 comments
Closed

Xcode build cache not cleaned #18

mikehardy opened this issue Jun 27, 2019 · 2 comments

Comments

@mikehardy
Copy link
Contributor

Hello there again good sir :-)

I just had a problem with react-native-firebase after making some changes there that removed whole files. Turns out Xcode has some more secret state that sometimes needs to be blown away, but it’s not done (yet) by react-native-clean-project

invertase/react-native-firebase#2269 (comment)
https://gist.github.com/maciekish/66b6deaa7bc979d0a16c50784e16d697

killall Xcode
xcrun -k
xcodebuild -alltargets clean
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/com.apple.dt.Xcode/*
@mikehardy
Copy link
Contributor Author

mikehardy commented Jun 27, 2019

Following these steps fixed an otherwise-mysterious issue (linked here) where iOS builds worked in debug and release, but not archive. Would have been fiendish to figure out without knowing of them, this could solve a tough class of problems for people

mikehardy added a commit to mikehardy/react-native-clean-project that referenced this issue Jun 28, 2019
mikehardy added a commit to mikehardy/react-native-clean-project that referenced this issue Jun 28, 2019
mikehardy added a commit to mikehardy/react-native-clean-project that referenced this issue Jun 28, 2019
pmadruga added a commit that referenced this issue Jul 3, 2019
fix: wipe iOS build should wipe all iOS build artifacts, Fixes #18
@pmadruga
Copy link
Owner

pmadruga commented Jul 3, 2019

Thanks @mikehardy 👍

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

2 participants