无法让我的meteor应用程序在iphone上运行

时间:2015-03-15 14:30:07

标签: ios iphone meteor

我的应用在iOS模拟器上运行良好,但当我尝试在终端中使用meteor run ios-device时,这就是我得到的:

raress-MacBook-Pro:To Dos rares$ meteor run ios-device
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).
[[[[[ ~/To Dos ]]]]]                          

=> Started proxy.                             

Could not open your project in Xcode.         
Try running again with the --verbose option.  
Instructions for running your app on an iOS device:
https://github.com/meteor/meteor/wiki/How-to-run-your-app-on-an-iOS-device

1 个答案:

答案 0 :(得分:1)

尝试将您的应用部署到服务器,然后使用--server标志运行Meteor应用。这允许在iOS上本地运行的应用程序访问您的服务器。

meteor deploy myapp

然后

meteor run ios-device --mobile-server http://<app-server>

然后我建议您按照此处的简短指南使用XCode连接您的iOS设备... https://github.com/meteor/meteor/wiki/How-to-run-your-app-on-an-iOS-device

差异也有一个很棒的资源。 https://github.com/Differential/meteor-mobile-cookbook/blob/master/iOS/Building.md