Skip to content

Error while running on device #2911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dpdragnev opened this issue Jun 21, 2017 · 1 comment
Closed

Error while running on device #2911

dpdragnev opened this issue Jun 21, 2017 · 1 comment

Comments

@dpdragnev
Copy link

dpdragnev commented Jun 21, 2017

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?

@dpdragnev
Copy link
Author

removing the platform and adding it again fixed the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant