突然(从昨天开始 - 当我升级到 OSX 10.12.5 时)我无法从模拟器或物理设备上的命令行运行 cordova run ios 。
任何帮助或提示将不胜感激 - 我完全被阻止了。
我明白了
[ 65%] InstallingEmbeddedProfile
[ 70%] VerifyingApplication
[ 75%] CreatingContainer
[ 80%] InstallingApplication
[ 85%] PostflightingApplication
[ 90%] SandboxingApplication
[ 95%] GeneratingApplicationMap
[100%] Installed package /Users/rob//Junk/MyApp/platforms/ios/build/device/HelloCordova.app
------ Debug phase ------
Starting debug of b33a71e77db63cb8b28523eba033d1ece54c1ca1 (N42AP, iPhone 5 (Global/CDMA), iphoneos, armv7s) a.k.a. 'Rob’s iPhone' connected through USB...
2017-06-07 12:29:23.706 ios-deploy[7470:113619] [ !! ] Unable to locate DeviceSupport directory. This probably means you don't have Xcode installed, you will need to launch the app manually and logging output will not be shown!
Error: Error code 253 for command: ios-deploy with args: --justlaunch,--no-wifi,-d,-b,/Users/rob/Junk/MyApp/platforms/ios/build/device/HelloCordova.app
我有一个 DeviceSupport 目录...
ls -l ~/Library/Developer/Xcode/iOS\ DeviceSupport
total 0
drwxr-xr-x 5 rob staff 170 1 Jun 12:13 10.3.1 (14E304)
drwxr-xr-x 5 rob staff 170 7 Jun 11:54 10.3.2 (14F89)
drwxr-xr-x 4 rob staff 136 31 Jan 2013 5.1.1 (9B206)
drwxr-xr-x 4 rob staff 136 22 Jan 2013 6.0.1 (10A525)
drwxr-xr-x 4 rob staff 136 30 Jan 2013 6.0.2 (10A551)
drwxr-xr-x 4 rob staff 136 6 Feb 2013 6.1 (10B142)
drwxr-xr-x 4 rob staff 136 7 Mar 2013 6.1 (10B143)
drwxr-xr-x 4 rob staff 136 22 Apr 2013 6.1.1 (10B145)
drwxr-xr-x 4 rob staff 136 9 Aug 2013 6.1.2 (10B146)
drwxr-xr-x 4 rob staff 136 14 Aug 2013 6.1.3 (10B329)
drwxr-xr-x 4 rob staff 136 10 Sep 2013 6.1.4 (10B350)
drwxr-xr-x 4 rob staff 136 12 Dec 2013 7.0.2 (11A501)
drwxr-xr-x 4 rob staff 136 14 Jan 2015 7.0.4 (11B554a)
我试图用 创建一个全新的项目
$ cordova create MyApp
$ cd MyApp
$ cordova platform add ios
$ cordova run ios
谢谢
罗伯
Best Answer-推荐答案 strong>
https://developer.apple.com/download/more/?name=Xcode我确实降级了,现在它又可以工作了!
关于ios - cordova run ios 已停止工作,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/44410506/
|