[英]Can I test/develop an App without having Xcode?
I'm really excited to see React Native available but I don't have an Apple device of any kind around and I am used to coding on Debian-based systems. 我很高兴看到React Native可用,但我没有任何类型的Apple设备,我习惯于在基于Debian的系统上编码。
Is it possible to test the app locally and then once I get a Mac to do the run the build process? 是否有可能在本地测试应用程序,然后一旦我让Mac运行构建过程?
Also, anyone knows when the Android version will be available? 此外,任何人都知道什么时候Android版本可用?
It's not officially supported but you should be able to. 它没有得到官方的支持,但你应该能够。 The app delegate has a path that points to a JS server: react-native/Examples/SampleApp/iOS/AppDelegate.m .
app委托有一条指向JS服务器的路径: react-native / Examples / SampleApp / iOS / AppDelegate.m 。
If you point that URL to your Debian machine before building to your phone, it should work. 如果您在构建到手机之前将该URL指向Debian计算机,它应该可以正常工作。 (Of course, the JS should get bundled into the app before submission to the App Store.)
(当然,JS应该在提交到App Store之前捆绑到应用程序中。)
Unfortunately you can't do that for now. 不幸的是,你现在不能这样做。 It supports only iOS devices and you need XCode in order to test in the simulator because following the documentation ( http://facebook.github.io/react-native/docs/getting-started.html#content ), it's going to create an XCode project
它只支持iOS设备,你需要XCode才能在模拟器中进行测试,因为按照文档( http://facebook.github.io/react-native/docs/getting-started.html#content ),它将创建一个XCode项目
Unfortunately you can't. 不幸的是你不能。 If it's because you don't have an apple computer you can always try running one on a virtual machine.
如果是因为你没有苹果电脑,你总是可以尝试在虚拟机上运行一台。
Here's a rough outline of what you would need: 以下是您需要的大致概述:
jsCodeLocation = [NSURL URLWithString:@"http://mydomain/index.ios.bundle"];
jsCodeLocation = [NSURL URLWithString:@"http://mydomain/index.ios.bundle"];
This flow would be considerably inferior to developing on a mac though, as there would be virtually no capacity for debugging, the setup would be a pain, and you would need to restart the application on the device every time. 这个流程在mac上的开发性能要差得多,因为几乎没有调试能力,设置会很麻烦,而且每次都需要在设备上重启应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.