Skip to content

Error while running on device #2911

@dpdragnev

Description

@dpdragnev

Hello,

I am trying to execute tns run ios --device 1 but I am getting the following error:

**BUILD FAILED

The following build commands failed:
PhaseScriptExecution NativeScript\ PostBuild /Users/danieldragnev/Library/Developer/Xcode/DerivedData/vlmobile-dltdszpmttvwrggquktgdsxlreac/Build/Intermediates/vlmobile.build/Debug-iphoneos/vlmobile.build/S
cript-CD3EAD351B05FF060042DBFC.sh
(1 failure)
Unable to apply changes on device: 627fc6038a935c7d6fa76316c447e4cbe8ca8116. Error is: Command xcodebuild failed with exit code 65.
Executing before-watch hook from /Users/danieldragnev/Documents/Projects/vlmobile/hooks/before-watch/nativescript-dev-typescript.js
Found peer TypeScript 2.2.2
6:01:08 AM - Compilation complete. Watching for file changes.**

Here is my package.json:

  "name": "app",
  "version": "1.0.0",
  "description": "Mobile Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "Mobile Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "com.company.app",
    "tns-ios": {
      "version": "3.0.1"
    }
  },
  "dependencies": {
    "@angular/animations": "~4.1.0",
    "@angular/common": "~4.1.0",
    "@angular/compiler": "~4.1.0",
    "@angular/core": "~4.1.0",
    "@angular/forms": "~4.1.0",
    "@angular/http": "~4.1.0",
    "@angular/platform-browser": "~4.1.0",
    "@angular/router": "~4.1.0",
    "@progress/nativescript-telerik-ui-pro": "^2.0.1",
    "moment": "^2.18.1",
    "nativescript-angular": "~3.0.0",
    "nativescript-appversion": "^1.4.1",
    "nativescript-drop-down": "^3.0.2",
    "nativescript-iqkeyboardmanager": "^1.1.0",
    "nativescript-loading-indicator": "^2.3.2",
    "nativescript-local-notifications": "^1.2.1",
    "nativescript-theme-core": "~1.0.2",
    "nativescript-toast": "^1.4.5",
    "reflect-metadata": "~0.1.8",
    "rxjs": "~5.3.0",
    "tns-core-modules": "~3.0.0",
    "zone.js": "~0.8.2"
  },
  "devDependencies": {
    "nativescript-dev-typescript": "~0.4.0",
    "typescript": "~2.2.1"
  }
}

I have set my debug and release provisioning profiles in Xcode's General tab. The device is registered at developer.apple.com. The device is listed as #1 when I run tns device.

If I try to build the project in Xcode I am getting:

diff: /Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

However, tns build ios succeeds.

Tha last change I made was to install https://github.com/tjvantoll/nativescript-IQKeyboardManager. I don't know if this has anything to do or not.

Any ideas on what could be wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions