【发布时间】:2015-11-10 21:01:12
【问题描述】:
我正在尝试在我的 iphone 上运行一个在模拟器中正常运行的 react-native 应用程序。我正在遵循与“使用离线包”相关的说明(大部分),https://facebook.github.io/react-native/docs/running-on-device-ios.html
我跑了
react-native bundle --entry-file ./index.ios.js --platform ios --bundle-output tmp/groups.bundle
导致
的终端输出--bundle-output tmp/groups.bundle
bundle: Created ReactPackager
bundle: Closing client
bundle: start
bundle: finish
bundle: Writing bundle output to: tmp/groups.bundle
bundle: Done writing bundle output
Assets destination folder is not set, skipping...
当然,“资产目的地跳过”可能不是一个好消息,但我不清楚它在此过程中如何/在何处相关。
我通常不清楚在 xcode 中要考虑哪些反馈,我绝对不是经验丰富的 ios 开发人员,但请考虑这个屏幕截图,
是否有我遗漏的明显细节?我需要提醒的是,我不能 100% 确定我的设备配置正确,但我通常会觉得它是正确的。
【问题讨论】:
-
你能在不尝试制作离线捆绑包的情况下让它工作吗?去检查;在 AppDelegate.m 中将 localhost:8081 的行更改为主机的名称或 IP 地址,例如mymacbook.local:8081 然后确保打包程序在主机上运行(就像在模拟器中运行时一样)并将构建推送到设备。
标签: ios react-native