我" git克隆"我的项目进入MacBook Pro。 run ios命令似乎因权限而失败。我需要设置什么?我是MacOs的新手,并且不知道如何继续。
这些是相关文件夹的设置:
drwxr-xr-x 5 jbaird staff 170 Sep 5 11:05 NativeScript.framework
-rw-r--r-- 1 jbaird staff 135 Sep 5 11:05 README.md
drwxr-xr-x 4 jbaird staff 136 Sep 5 11:05 TKLiveSync
-rw-r--r-- 1 jbaird staff 11433 Sep 5 11:05 TNSDebugging.h
-rw-r--r-- 1 jbaird staff 2871 Sep 5 11:05 TNSExceptionHandler.h
-rw-r--r-- 1 jbaird staff 1187 Sep 5 11:05 main.m
drwxr-xr-x 4 jbaird staff 136 Sep 5 11:05 metadata-generator
-rw-r--r-- 1 jbaird staff 1590 Sep 5 11:05 nativescript-build.xcconfig
-rw-r--r-- 1 jbaird staff 421 Sep 5 11:05 nativescript-post-build
-rw-r--r-- 1 jbaird staff 117 Sep 5 11:05 nativescript-pre-build
-rw-r--r-- 1 jbaird staff 26 Sep 5 11:05 nativescript-pre-link
-rw-r--r-- 1 jbaird staff 2293 Sep 5 11:05 strip-dynamic-framework-architectures.sh
错误信息:
new-host:nativescript jbaird$ tns run ios
Searching for devices...
Executing before-liveSync hook
Project successfully created.
Executing before-prepare hook from /Users/jbaird/Documents/development/gr8dates/Nativescript/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.4.2
Preparing project...
Successfully prepared plugin nativescript-angular for ios.
Successfully prepared plugin nativescript-theme-core for ios.
Successfully prepared plugin tns-core-modules for ios.
Successfully prepared plugin nativescript-intl for ios.
Successfully prepared plugin tns-core-modules-widgets for ios.
Project successfully prepared (iOS)
Building project...
Build settings from command line:
...
-c /Users/jbaird/Documents/development/gr8dates/Nativescript/platforms/ios/build/Nativescript.build/Debug-iphonesimulator/Nativescript.build/Script-C97FD7AC1ADE5369004DB2A4.sh
/Users/jbaird/Documents/development/gr8dates/Nativescript/platforms/ios/build/Nativescript.build/Debug-iphonesimulator/Nativescript.build/Script-C97FD7AC1ADE5369004DB2A4.sh: line 2: /Users/jbaird/Documents/development/gr8dates/Nativescript/platforms/ios/internal/nativescript-pre-build: Permission denied
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution NativeScript\ PreBuild build/Nativescript.build/Debug-iphonesimulator/Nativescript.build/Script-C97FD7AC1ADE5369004DB2A4.sh
(1 failure)
Unable to apply changes on device: C204F45C-A9B4-4412-95BB-A4B7BC077253. Error is: Command xcodebuild failed with exit code 65.
Executing after-watch hook from /Users/jbaird/Documents/development/gr8dates/Nativescript/hooks/after-watch/nativescript-dev-typescript.js
答案 0 :(得分:0)
我遇到了同样的问题并且运行此命令修复了它:
Caused by: java.lang.RuntimeException: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
... 57 more