热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

无法运行phonegapiOS应用-UnabletorunphonegapiOSapp

Iamunabletorunphonegapioshelloworldapp.SameapproachonwindowsmachinewithandroidSDK

I am unable to 'run' phonegap ios hello world app. Same approach on windows machine with android SDK worked. I've been googling this for a while but didn't found anything helpful. Any thoughts what may error I am getting mean?

我无法“运行”phonegap ios hello world应用程序。我已经用谷歌搜索了一段时间,但没有发现任何有用的东西。有什么想法吗?

Configuration:

配置:

phonegap -v: 3.4.0-0.19.7

phonegap - v:3.4.0-0.19.7

cordova -v: 3.4.0-0.1.3

科尔多瓦- v:3.4.0-0.1.3

Mac OS X: 10.7.5 (unupgradable - Intel GMA X3100)

Mac OS X: 10.7.5(无法升级-英特尔GMA X3100)

Xcode: 4.6.3

Xcode:4.6.3

approach:

方法:

~: phonegap create hello
~: cd hello
~: phonegap run ios
...
** BUILD SUCCEEDED **

2014-03-16 18:24:17.091 ios-sim[6863:707] stderrPath: /Users/username/git/hello/platforms/ios/cordova/console.log
2014-03-16 18:24:17.096 ios-sim[6863:707] stdoutPath: /Users/username/git/hello/platforms/ios/cordova/console.log
2014-03-16 18:24:17.110 ios-sim[6863:707] Error loading /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/DVTFoundation:  dlopen(/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/DVTFoundation, 265): no suitable image found.  Did find:
    /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/DVTFoundation: GC capability mismatch
Unable to dvtFoundationBundle. Error: 
   [error] /Users/username/git/hello/platforms/ios/cordova/run: Command failed with exit code 1

5 个解决方案

#1


18  

I solved that issue by downgrading to ios-sim 1.8.2

我通过降级为ios-sim 1.8.2解决了这个问题

npm uninstall -g ios-sim
brew uninstall ios-sim
npm install -g ios-sim@~1.8

#2


2  

I got the same issue. I had installed ios-sim using npm. Try uninstalling ios-sim and install it using brew.

我也有同样的问题。我使用npm安装了ios-sim。尝试卸载ios-sim并安装它。

npm uninstall -g ios-sim

brew install ios-sim

#3


0  

I solved this by (1)brew uninstalling the 1.9 version and then (2) brew install the 1.8 version

我解决了这个问题(1)brew卸载1.9版本,然后(2)brew安装1.8版本。

This link explains the version change in brew: https://coderwall.com/p/lqphzg

这个链接解释了brew中的版本变化:https://coderwall.com/p/lqphzg。

#4


0  

I solved the issue by upgrading Xcode from 4.x.x to the latest (5.1.1). Then I reinstalled ios-sim using MacPorts. Then "phonegap run ios" succeeded.

我通过将Xcode从4.x升级来解决这个问题。最新的x(5.1.1)。然后我用MacPorts重新安装了ios-sim。然后“phonegap run ios”成功。

#5


0  

This is a strange issue.

这是一个奇怪的问题。

In my case, I solved this by running the project in Xcode on a simulator (found at platforms/ios/*.xcodeproj). When I went back to phonegap the problem was resolved.

在我的例子中,我通过在模拟器上运行Xcode项目(在platform /ios/*.xcodeproj上可以找到)来解决这个问题。当我回到phonegap时,问题已经解决了。


推荐阅读
author-avatar
zh1234之歌
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有