react-native run-ios --port 8082
facebook/react-native#10715 (comment)
- On ./node_modules/metro -> delete the folder node_modules
- On package.json (on metro folder) -> change "@babel/core": "7.0.0-beta.56" for "@babel/core": "7.0.0"
npm install
(on metro folder)- On projectFolder ->
rm -f .git/index.lock
- watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
- node node_modules/react-native/local-cli/cli.js start --reset-cache
- watchman watch-del-all
- watchman shutdown-server
- rm -rf /usr/local/var/run/watchman/root-state
iOS ld: library not found for -libName clang: error: linker command failed with exit code 1 (use -v to see invocation)
Select your Target, go to "Build Phases" in "Link Binary With Libraries" remove ".a" file of that library. Clean and Build.
echo "Cleaning up node modules";
rm -rf node_modules;
npm install;
echo "Clearning all temp directories";
rm -rf $TMPDIR/react-native-packager-cache-*;
rm -rf $TMPDIR/metro-*;
rm -rf $TMPDIR/react-*;
rm -rf $TMPDIR/haste-*;
watchman watch-del-all;
echo "Cleaning up iOS folders" cd ios;
rm -rf Pods;
rm -rf Podfile.lock;
rm -rf build;
pod install;
cd ..;
echo "cleanup android folder" cd android;
rm -rf build;
echo "PLEASE DELETE THE APP AND RESTART SIMULATOR after cache is reset";
cd ..;
npm start -- --reset-cache;
You can try to change the build system to Legacy,
File > Workspace Settings > Build System > Legacy Build System.
({ someProp, ...props })