【发布时间】:2015-01-14 21:02:29
【问题描述】:
我是 Meteor 的新手。
我的应用在浏览器和 iOS 模拟器中运行良好。但是,我无法让它在 iOS 设备上运行。我使用命令-meteor run iOS-device,它假设打开Xcode,以便您可以运行应用程序。 Xcode 永远不会打开,我收到以下消息:无法在 Xcode 中打开您的项目。
下面是终端的更多内容。
%% Running synchronously: /Users/NAME/.meteor/packages/meteor-tool/.1.0.35.wql4jh++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/cordova-scripts/cordova.sh [ '--verbose', 'build', 'ios' ]
%% Done building the cordova build project
%% A run on a device requested
WARNING: You are testing your app on a remote device.
For the mobile app to be able to connect to the local server, make
sure your device is on the same network, and that the network
configuration allows clients to talk to each other
(no client isolation).
[[[[[ ~/Google Drive/Meteor-Apps/APPNAME ]]]]]
=> Started proxy.
=> Started MongoDB.
%% Execing cordova for platform ios-device
%% isDevice: true
%% It is ios-device, just opening the Xcode project with `open` command
%% Running synchronously: sh [ '-c',
'open /Users/NAME/Google Drive/Meteor-Apps/APPNAME/.meteor/local/cordova-build/platforms/ios/*.xcodeproj' ]
Could not open your project in Xcode.
【问题讨论】:
-
一个明显的问题:你能从 Spotlight 菜单中手动打开你的 xcode 吗?
-
是的。 Xcode 可以正常打开。我正在运行 Xcode 6.1 和 Meteor 1.0。
-
可以手动打开 Meteor 生成的 XCode 项目吗?
/Users/NAME/Google Drive/Meteor-Apps/APPNAME/.meteor/local/cordova-build/platforms/ios/里面的那个? -
刚刚尝试过,它可以工作。它在 Xcode 中打开,我可以在我的设备上运行它。谢谢!但是,我仍然对为什么使用 meteor run iOS-device 命令不起作用感到困惑。
-
完整路径是什么?
标签: xcode cordova meteor meteorite