简体   繁体   English

我可以在没有Xcode的情况下测试/开发应用程序吗?

[英]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: 以下是您需要的大致概述:

  1. An iDevice 一个iDevice
  2. A colleague who will put a build on that iDevice whose root react native bundle points to some endpoint you can control. 一位同事将在iDevice上构建一个根,它的root响应本机包指向你可以控制的某个端点。 eg jsCodeLocation = [NSURL URLWithString:@"http://mydomain/index.ios.bundle"]; 例如jsCodeLocation = [NSURL URLWithString:@"http://mydomain/index.ios.bundle"];
  3. Compile your react app to that location. 将您的反应应用程序编译到该位置。
  4. Run the application on the iDevice, which will do so by downloading the js bundle. 在iDevice上运行应用程序,这将通过下载js包来实现。

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.

相关问题 如何在不必成为默认 SMS 处理程序的情况下开发和测试 Android SMS 应用程序 - How can I develop and test an Android SMS app without having to be the default SMS handler 我可以开发可在没有手机的情况下运行的Android手表应用吗? - Can I develop Android watch app to run without mobile phone? 没有ADT-1的我可以开发Android TV应用程序吗? - Can I develop Android TV app without ADT-1? 如何创建简单的api来测试我的移动应用程序而无需在服务器上编写api? - How can I create a simple api to test my mobile app without having to code the api out on a server? 我想测试'Crittercism'工具,我怎么能为android开发一个崩溃的应用程序? - I want to test 'Crittercism' tool, how can i develop a crashing app for android? 我可以在没有Android手机的情况下为Android开发吗? - Can I develop for Android without an Android phone? 我可以在没有 IDE 的情况下开发 Android 应用程序吗? - Can I develop Android apps without an IDE? 我可以在不将应用发布到Alpha或Beta的情况下测试应用帐单吗? - Can I test In App Billing without publishing the app to Alpha or Beta? 我可以测试在此真实硬件设备上开发的Android应用程序吗? - Can I test Android apps that I develop on this real hardware device? 我想使用 PHP 开发一个 Android 聊天应用程序。 我该怎么做? 不使用 Google Firebase Cloud Messeging 和 AWS - I want to develop an Android chat app using PHP. How can I do it? without using Google Firebase Cloud Messeging and AWS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM