【问题标题】:Can't get my meteor app to run on iphone无法让我的流星应用程序在 iPhone 上运行
【发布时间】:2015-03-17 00:36:12
【问题描述】:

我的应用在 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

【问题讨论】:

  • 好吧,我还没有测试过这个流星,但是可以看到警告表明您的设备未连接到您在 macbook 上使用的网络

标签: ios iphone meteor


【解决方案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

Differential 在这方面也有很棒的资源。 https://github.com/Differential/meteor-mobile-cookbook/blob/master/iOS/Building.md

【讨论】:

    猜你喜欢
    • 2014-12-18
    • 2012-03-03
    • 2017-05-17
    • 2012-11-27
    • 2017-07-08
    • 1970-01-01
    • 1970-01-01
    • 2014-08-31
    • 1970-01-01
    相关资源
    最近更新 更多