title: Couldn’t be opened because you don’t have permission to view it - React Native - Expo?
body: <p>After ejecting the Expo project using <code>expo eject</code>, and try to run the project using Xcode &quot;11.7&quot; &amp; Command-line &quot;For <strong>iOS</strong>&quot;</p>
  <p>I got these errors,</p>
  <p>Note:</p>
  <blockquote>
  <p>Android Works well after ejecting</p>
  <p>iOS &amp; Android Works well before Ejecting.</p>
  </blockquote>
  <p><strong>Xcode</strong></p>
  <pre><code>Details
  
  The file “MyApp” couldn’t be opened because you don’t have permission to view it.
  Domain: NSCocoaErrorDomain
  Code: 257
  Failure Reason: You don’t have permission.
  Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File &gt; Get Info.
  User Info: {
      NSFilePath = &quot;/Users/username/Library/Developer/Xcode/DerivedData/MyApp-bnfffrwsrhskljawuujrmpuwldgt/Build/Products/Debug-iphonesimulator/MyApp.app&quot;;
  }
  --
  The operation couldn’t be completed. Permission denied
  Domain: NSPOSIXErrorDomain
  Code: 13
  Failure Reason: Permission denied
  --
  
  
  System Information
  
  macOS Version 10.14.6 (Build 18G95)
  Xcode 11.7 (16142)
  </code></pre>
  <p><strong>Architectures</strong></p>
  <p><a href="https://i.stack.imgur.com/ReltG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ReltG.png" alt="Architectures" /></a></p>
  <p><strong>Command-line</strong></p>
  <blockquote>
  <p>npx react-native run-ios</p>
  </blockquote>
  <pre><code>info Found Xcode workspace &quot;MyApp.xcworkspace&quot;
  info Launching iPhone 11 (iOS 13.7)
  info Building (using &quot;xcodebuild -workspace MyApp.xcworkspace -configuration Debug -scheme MyApp -destination id=60F7E669-0AE4-4CF3-9BC8-17027D01B172&quot;)
  success Successfully built the app
  info Installing &quot;/Users/username/Library/Developer/Xcode/DerivedData/MyApp-bnfffrwsrhskljawuujrmpuwldgt/Build/Products/Debug-iphonesimulator/MyApp.app&quot;
  An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
  This app could not be installed at this time.
  Could not install at this time.
  Failed to chmod /Users/username/Library/Developer/CoreSimulator/Devices/60F7E669-0AE4-4CF3-9BC8-17027D01B172/data/Bundle/Application/3C7513F0-9BFE-4C94-A722-7C1BE6898E54/MyApp.app/MyApp : No such file or directory
  Underlying error (domain=MIInstallerErrorDomain, code=4):
          Failed to chmod /Users/username/Library/Developer/CoreSimulator/Devices/60F7E669-0AE4-4CF3-9BC8-17027D01B172/data/Bundle/Application/3C7513F0-9BFE-4C94-A722-7C1BE6898E54/MyApp.app/MyApp : No such file or directory
  info Launching &quot;com.MyApp&quot;
  error Failed to launch the app on simulator, An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
  The request to open &quot;com.MyApp&quot; failed.
  The request was denied by service delegate (SBMainWorkspace) for reason: NotFound (&quot;Application &quot;com.MyApp&quot; is unknown to FrontBoard&quot;).
  Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
          The operation couldn’t be completed. Application &quot;com.MyApp&quot; is unknown to FrontBoard.
          Application &quot;com.MyApp&quot; is unknown to FrontBoard.
  </code></pre>