Tweaked steps to prevent path errors in ionic capacitor + reactJS projects

sudo chmod -R 777 . #incase sudo trapped at install time.
ionic capacitor copy ios
cp -r build/static ios/App/App/public/{custom-context-path-if-any}
ionic capacitor update ios
npx cap open ios

On Xcode,

  • clean build folder
  • build
  • run on device or simulator

Kj
Kj [/.] Sreekumar programs computers as a hobby and profession. Into programming from his school days, Sree uses Codemarvels to key in facts and fixes he finds interesting while working on different projects. Some of the articles here give away a few shades of his philosophical leanings too.

Leave a Comment

Your email address will not be published. Required fields are marked *