Tips and tricks

React Native - Change Packages

Run your npm install, then

cd ios
pod install
cd ..

It is important you run npx react-native run-ios for rebuilding the ios build

Restart Metro clearing the cache:

npx react-native start --reset-cache

if you are having problems you can use --repo-update

cd ./ios
pod install --repo-update

clean XCODE cache
xcodebuild -alltargets clean
xcodebuild clean -workspace FoodPlanner.xcworkspace -scheme FoodPlanner -configuration Debug
clear xcode global cache
  # Kill all Xcode processes                                                                               
  killall Xcode 2>/dev/null; killall XCBBuildService 2>/dev/null; killall com.apple.dt.SKAgent 2>/dev/null
                                                                                                           
  # Clear derived data and package caches                                                                
  rm -rf ~/Library/Developer/Xcode/DerivedData                                                             
  rm -rf ~/Library/Caches/com.apple.dt.Xcode                                                               
                                                                                                           
  # Then reopen                                                                                            
  open {{PATH}}.xcworkspace  
List simulator devices
 xcrun simctl list devices   
clean derived data ios
rm -rf ~/Library/Developer/Xcode/DerivedData

cd ios
rm -rf build
rm -rf Pods
rm -rf ~/Library/Caches/CocoaPods
If you are having problems with Sandbox rsync errors

Go to XCode, Build Options and disable User Script Sandboxing

ENABLE_USER_SCRIPT_SANDBOXING

Leave a comment

Your email address will not be published

{"type":"main_options","images_arr":"'#ffffff'","bg_slideshow_time":"0","site_url":"https:\/\/digitalzoomstudio.net","theme_url":"https:\/\/digitalzoomstudio.net\/wp-content\/themes\/qucreative\/","is_customize_preview":"off","gallery_w_thumbs_autoplay_videos":"off","base_url":"https:\/\/digitalzoomstudio.net"}