question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot run app on iOS: Unable to apply changes on device: 75E3E329-50CC-4958-8760-782AF99783CF. Error is: Command xcrun with arguments simctl install

See original GitHub issue

Environment

  • CLI: 6.5.3
  • iOS Runtime: 13.3
  • XCode Version: 11.3 (11C29)
  • Plugin(s):

Describe the bug I’m unable to run the app on iOS simulators after upgrading the app from 5.4 to 6.x tns run ios throws following error.

Installing on device 75E3E329-50CC-4958-8760-782AF99783CF...
Unable to apply changes on device: 75E3E329-50CC-4958-8760-782AF99783CF. Error is: Command xcrun with arguments simctl install 75E3E329-50CC-4958-8760-782AF99783CF /Users/james/HelloWorld/platforms/ios/build/Debug-iphonesimulator/HelloWorld.app failed with exit code 1. Error output:
 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/james/Library/Developer/CoreSimulator/Devices/75E3E329-50CC-4958-8760-782AF99783CF/data/Bundle/Application/358B3C8E-8140-4DF0-BDCB-2F42AB804868/HelloWorld.app/HelloWorld : No such file or directory
Underlying error (domain=MIInstallerErrorDomain, code=4):
	Failed to chmod /Users/james/Library/Developer/CoreSimulator/Devices/75E3E329-50CC-4958-8760-782AF99783CF/data/Bundle/Application/358B3C8E-8140-4DF0-BDCB-2F42AB804868/HelloWorld.app/HelloWorld : No such file or directory

To Reproduce With this package.json I’m able to reproduce the issue on new NS app as well

{
  "nativescript": {
    "id": "org.nativescript.HelloWorld",
    "tns-android": {
      "version": "6.5.0"
    },
    "tns-ios": {
      "version": "6.5.3"
    }
  },
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "repository": "<fill-your-repository-here>",
  "dependencies": {
    "@angular/animations": "8.0.0",
    "@angular/common": "8.0.0",
    "@angular/compiler": "8.0.0",
    "@angular/core": "8.0.0",
    "@angular/forms": "8.0.0",
    "@angular/http": "8.0.0-beta.10",
    "@angular/platform-browser": "8.0.0",
    "@angular/platform-browser-dynamic": "8.0.0",
    "@angular/router": "8.0.0",
    "@nativescript/theme": "^3.0.0",
    "@nstudio/nativescript-checkbox": "^1.0.0",
    "@nstudio/nativescript-loading-indicator": "^3.0.4",
    "@nstudio/nativescript-pulltorefresh": "^2.0.0",
    "@proplugins/nativescript-drop-down": "^7.1.0",
    "@proplugins/nativescript-localstorage": "^2.3.2",
    "@proplugins/nativescript-orientation": "^2.4.2",
    "base-64": "^0.1.0",
    "crypto-js": "^3.1.9-1",
    "nativescript-advanced-webview": "^6.0.0",
    "nativescript-angular": "^8.0.2",
    "nativescript-badge-button": "^0.1.2",
    "nativescript-iqkeyboardmanager": "^1.5.1",
    "nativescript-local-notifications": "^4.2.1",
    "nativescript-pdf-view": "^2.4.3",
    "nativescript-permissions": "^1.3.9",
    "nativescript-plugin-firebase": "^10.5.2",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-ui-calendar": "~6.1.0",
    "nativescript-ui-sidedrawer": "~8.0.1",
    "nativescript-webview-interface": "^1.4.2",
    "reflect-metadata": "^0.1.13",
    "rxjs": "^6.6.3",
    "rxjs-compat": "^6.6.3",
    "tns-core-modules": "^6.5.20",
    "uglifyjs-webpack-plugin": "^2.1.1",
    "utf8": "^3.0.0",
    "zone.js": "0.9.1"
  },
  "devDependencies": {
    "@angular/compiler-cli": "8.0.0",
    "@ngtools/webpack": "8.0.0",
    "babel-traverse": "^6.26.0",
    "babel-types": "^6.26.0",
    "babylon": "6.4.5",
    "extract-text-webpack-plugin": "~3.0.0",
    "lazy": "1.0.11",
    "nativescript-css-loader": "~0.26.0",
    "nativescript-dev-webpack": "~1.5.1",
    "typescript": "3.4.5"
  },
  "scripts": {
    "ns-bundle": "ns-bundle",
    "publish-ios-bundle": "npm run ns-bundle --ios --publish-app",
    "generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install",
    "start-android-bundle": "npm run ns-bundle --android --run-app",
    "start-ios-bundle": "npm run ns-bundle --ios --run-app",
    "build-android-bundle": "npm run ns-bundle --android --build-app",
    "build-ios-bundle": "npm run ns-bundle --ios --build-app"
  },
  "gitHead": "20a65d338ae8f8911087ab6615b89363f864b07b",
  "readme": "NativeScript Application"
}

After npm install run tns run ios

Expected behavior App should run on similator as well as device.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
JamesPJcommented, Oct 16, 2020

@NathanaelA Thank you for your support. After switching to 6.5.2 iOS is working now.

tns platform remove ios & tns platform add ios@6.5.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

simctl not working in Xcode 7.0 an…
In Xcode 7.0, I have not been able to install or uninstall apps with simctl. And there is a typo in the simctl...
Read more >
Nativescript - The app cannot be installed on the simulator
Unable to apply changes on device: 8E7C6AE0-A3AB-476E-B9D9-931F3738EF3A. Error is: Command xcrun with arguments simctl install ...
Read more >
tns run ios - NativeScript Docs
Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application. WARNING: You can run this command...
Read more >
an error was encountered processing the command ...
To erase the device, execute xcrun simctl erase [Device UDID] from terminal or choose Erase ... code=1): This app could not be installed...
Read more >
How to Change the iOS Simulator When Running NativeScript ...
After an update my iPad simulator kept popping up instead of an iPhone simulator when I ran my NativeScript apps. In this video...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found