Skip to content

Error when executing "tns run ios" with 3.0 on a project that is located in a directory path with "spaces" #2764

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
VladimirAmiorkov opened this issue May 4, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@VladimirAmiorkov
Copy link

VladimirAmiorkov commented May 4, 2017

Did you verify this is a real problem by searching [Stack Overflow]

Yes, until now there has not been such thread.

Tell us about the problem

After upgrading to NativeScript 3.0, running my migrated to 3.0 project on iOS that was running ok with the "rc" NativeScript throws the following error:

** BUILD SUCCEEDED **

Project successfully built.
Installing...
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Multiple errors were thrown:
Error Command failed: xcrun simctl install BB045E4E-57A0-44B2-B0F0-65BA885B09FD /Users/amiorkov/Desktop/Work/work _projs/sdkAngular/platforms/ios/build/emulator/sdkAngular.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
while executing xcrun simctl install BB045E4E-57A0-44B2-B0F0-65BA885B09FD /Users/amiorkov/Desktop/Work/work _projs/sdkAngular/platforms/ios/build/emulator/sdkAngular.app.

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

  • CLI: (3.0.0
  • Cross-platform modules: 3.0.0
  • Runtime(s): 3.0.0
  • XCode: 8.2.1
  • Plugin(s):
"dependencies": {
    "@angular/common": "~4.0.0",
    "@angular/compiler": "~4.0.0",
    "@angular/core": "~4.0.0",
    "@angular/forms": "~4.0.0",
    "@angular/http": "~4.0.0",
    "@angular/platform-browser": "~4.0.0",
    "@angular/platform-browser-dynamic": "~4.0.0",
    "@angular/router": "~4.0.0",
    "nativescript-angular": "3.0.0",
    "nativescript-fresco": "^3.0.2",
    "nativescript-intl": "^3.0.0",
    "nativescript-telerik-ui-pro": "2.0.0",
    "nativescript-unit-test-runner": "^0.3.2",
    "rxjs": "~5.3.0",
    "tns-core-modules": "3.0.0",
    "zone.js": "~0.8.2"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~4.0.0",
    "@ngtools/webpack": "1.3.0",
    "babel-traverse": "6.24.1",
    "babel-types": "6.24.1",
    "babylon": "6.17.0",
    "chai": "^3.5.0",
    "codelyzer": "^3.0.0",
    "copy-webpack-plugin": "~4.0.1",
    "extract-text-webpack-plugin": "~2.1.0",
    "filewalker": "0.1.3",
    "karma": "^1.6.0",
    "karma-chai": "^0.1.0",
    "karma-mocha": "^1.3.0",
    "karma-nativescript-launcher": "^0.4.0",
    "lazy": "1.0.11",
    "mocha": "^3.3.0",
    "nativescript-css-loader": "~0.26.0",
    "nativescript-dev-typescript": "^0.4.2",
    "nativescript-dev-webpack": "^0.4.0",
    "raw-loader": "~0.5.1",
    "resolve-url-loader": "~2.0.2",
    "tns-platform-declarations": "3.0.0",
    "tslint": "^5.1.0",
    "typescript": "~2.2.2",
    "webpack": "~2.4.1",
    "webpack-sources": "~0.2.3"
  },

Please tell us how to recreate the issue in as much detail as possible.

Run any project or the sdkAngular from the Progress UI for NativeScript

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

No simply run a project tns run ios , the project needs to be in a path that somewhere contains space bars (example on Mac: /Users/user1/Desktop/Work/work projects)

@VladimirAmiorkov VladimirAmiorkov changed the title Error when executing "tns run ios" with 3.0 on a project that is located in a path with "spaces" Error when executing "tns run ios" with 3.0 on a project that is located in a directory path with "spaces" May 4, 2017
@pkoleva pkoleva added the bug label May 4, 2017
@yyosifov yyosifov self-assigned this May 4, 2017
@dtopuzov dtopuzov added this to the 3.0.1 milestone May 5, 2017
dtopuzov added a commit to NativeScript/nativescript-cli-tests that referenced this issue May 11, 2017
@ghost
Copy link

ghost commented May 23, 2017

I get this error when I run "tns run ios" command on 3.0.1

/Users/path/platforms/ios/Pods/MiniTabBar/MiniTabBar/Classes/MiniTabBarItemView.swift:101:44: error: value of optional type 'UIColor?' not unwrapped; did you mean to use '!' or '?'?
return self.item.barBackgroundColor?
^
( )!

** BUILD FAILED **

The following build commands failed:
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
CompileSwift normal x86_64 /Users/path/platforms/ios/Pods/MiniTabBar/MiniTabBar/Classes/MiniTabBar.swift
CompileSwift normal x86_64 /Users/path/platforms/ios/Pods/MiniTabBar/MiniTabBar/Classes/MiniTabBarItemView.swift
(3 failures)
Multiple errors were thrown:
Command xcodebuild failed with exit code 65

@ivanbuhov
Copy link
Contributor

Hi @Alampalli-Yeshwanth
It seems that the MiniTabBar Pod you are using fails to compile. The compilation fails on the MiniTabBar.swift file. The problem may be in the Pod itself. You may find this thread useful.

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

No branches or pull requests

5 participants