我最近更新了XCode。我还将OSX更新为El Capitan。
现在我不能再在ios中模拟我的离子应用程序了。
问题1:现在我必须输入sudo ionic emulate ios
(在我不需要sudo之前)
问题2:当我模拟时,模拟器启动,我得到一个完全黑屏。控制台输出此错误:
2015-10-08 13:14:38.486 ios-sim[7223:306928] stderrPath: /Users/Foad/Documents/My apps/quedro-ionic/platforms/ios/cordova/console.log
2015-10-08 13:14:38.486 ios-sim[7223:306928] stdoutPath: /Users/Foad/Documents/My apps/quedro-ionic/platforms/ios/cordova/console.log
2015-10-08 13:14:38.551 ios-sim[7223:306928] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-8208/DVTFoundation/PlugInArchitecture/PlugInManager/DVTPlugInManager.m:257
Details: Requested but did not find extension point with identifier Xcode.DVTFoundation.DevicePlatformMapping
Object: <DVTPlugInManager: 0x7fbad174fd10>
Method: -extensionPointWithIdentifier:
Thread: <NSThread: 0x7fbad140dd80>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
我不知道这意味着什么。我团队中的每个人都遇到了同样的问题。离子团队是否意识到这一点?
答案 0 :(得分:0)
我遇到了完全相同的问题并按照here
上的步骤操作1. Uninstall cordova
2. Delete .cordova (hidden) directory from ~/
3. Delete platforms/ and plugins/ directories from my ionic project
4. npm install ios-sim -g
5. npm install ios-deploy -g
6. Make sure all the dependencies I have in package.json up to date
7. npm install
8. npm install cordova -g
9. ionic state reset
10. ionic emulate ios
我还有 sudo 问题,所以我更改了项目中node_modules和〜/ .npm的权限。