Closed JamesPJ closed 3 years ago
I have also same problem but nativescript environment is different. Below are my nativescript environment.
Environment
CLI: 7.0.10 iOS Runtime: 13.5 XCode Version: 11.5 (11E608c)
Error:
Unable to apply changes on device: 149FA8BE-F671-48F5-A9E4-68F52CA06044. Error is: Command xcrun with arguments simctl install 149FA8BE-F671-48F5-A9E4-68F52CA06044 /Users/apple/projects/ns-7/platforms/ios/build/Debug-iphonesimulator/ns7.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/apple/Library/Developer/CoreSimulator/Devices/149FA8BE-F671-48F5-A9E4-68F52CA06044/data/Bundle/Application/58567C7A-A429-478E-95AA-22CF5A1C9BD7/ns7.app/ns7 : No such file or directory Underlying error (domain=MIInstallerErrorDomain, code=4): Failed to chmod /Users/apple/Library/Developer/CoreSimulator/Devices/149FA8BE-F671-48F5-A9E4-68F52CA06044/data/Bundle/Application/58567C7A-A429-478E-95AA-22CF5A1C9BD7/ns7.app/ns7 : No such file or directory
package.json
{
"name": "@nativescript/template-hello-world-ng",
"main": "main.js",
"version": "7.0.2",
"author": "NativeScript Team <oss@nativescript.org>",
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"publishConfig": {
"access": "public"
},
"keywords": [
"nativescript",
"mobile",
"angular",
"{N}",
"template"
],
"repository": "<fill-your-repository-here>",
"bugs": {
"url": "https://github.com/NativeScript/NativeScript/issues"
},
"scripts": {
"ngcc": "ngcc --properties es2015 module main --first-only",
"postinstall": "npm run ngcc"
},
"dependencies": {
"@angular/animations": "~10.1.0",
"@angular/common": "~10.1.0",
"@angular/compiler": "~10.1.0",
"@angular/core": "~10.1.0",
"@angular/forms": "~10.1.0",
"@angular/platform-browser": "~10.1.0",
"@angular/platform-browser-dynamic": "~10.1.0",
"@angular/router": "~10.1.0",
"@nativescript/angular": "~10.1.0",
"@nativescript/core": "~7.0.0",
"@nativescript/theme": "~2.3.0",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.6.0",
"zone.js": "~0.11.1"
},
"devDependencies": {
"@angular/compiler-cli": "~10.1.0",
"@nativescript/ios": "7.0.1",
"@nativescript/types": "~7.0.0",
"@nativescript/webpack": "~3.0.0",
"@ngtools/webpack": "~10.1.0",
"typescript": "~3.9.0"
},
"private": "true",
"readme": "NativeScript Application"
}
@JamesPJ have you found any solution?
@tjvantoll @rosen-vladimirov
Thanks
@JamesPJ, @jitendraP-ashutec --- please see the https://nativescript.org/blog/nativescript-6-7-xcode-compatibility/
@NathanaelA I've updated NS CLI to 6.8.0 as suggested in the compatibility page, I'm still facing the original issue. Here is the out of tns info
.
✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 6.8.0 and the latest available version is 7.0.10.
✔ Component tns-core-modules has 6.5.20 version and is up to date.
✔ Component tns-android has 6.5.3 version and is up to date.
✔ Component tns-ios has 6.5.3 version and is up to date
Let me know whether I'm I still having the wrong versions.
@JamesPJ - Are you still using xCode 11?
@NathanaelA Yes, I'm still on 11.3 (11C29)
Ok, a couple things can you try:
tns platform remove ios
& tns platform add ios@6.5.2
)npm i -g nativescript@6.5.1
@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
.
Environment
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.To Reproduce With this package.json I'm able to reproduce the issue on new NS app as well
After
npm install
runtns run ios
Expected behavior App should run on similator as well as device.