title: Use of "sudo" has broken my Cordova
body: <p>Someone made the mistake of using "sudo ionic add platform ios" and it has entirely broken my cordova for x-Code.</p>
  
  <p>Nothing will build in x-code due to permission problems about accessing Cordova.</p>
  
  <p>If I run "ionic platform add ios", it gives me:</p>
  
  <pre><code>Error: EACCES: permission denied, open '/Users/mac1/.config/configstore/update-notifier-cordova.json'
  You don't have access to this file.
  </code></pre>
  
  <p>During the build, it gives me a build failed message:</p>
  
  <pre><code>"   CompileC build/stashd.build/Debug-iphonesimulator/stashd.build/Objects-normal/i386/MyMainViewController.o stashd/Plugins/com.telerik.plugins.wkwebview/MyMainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
  (1 failure)
  Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/mac1/Dev/John/ionic5/platforms/ios/cordova/build-debug.xcconfig,-project,stashd.xcodeproj,ARCHS=i386,-target,stashd,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/mac1/Dev/John/ionic5/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/mac1/Dev/John/ionic5/platforms/ios/build/sharedpch"
  </code></pre>
  
  <p>Trying to run in x-code it tells me</p>
  
  <pre><code>You don’t have permission to save the file “project.xcworkspace” in the folder “stashd.xcodeproj”.
  </code></pre>
  
  <p>Again- all this started to happen when Sudo was used (I never had to use it before, and ionic/Cordova worked perfectly).</p>
  
  <p>So far I've:</p>
  
  <p>Removed &amp; re-installed Node.js, Ionic, NPM and Cordova. None have helped- I still require sudo.</p>