简体   繁体   English

ReactNative - 模拟器工作,iPhone崩溃

[英]ReactNative - Simulator works, iPhone crashes

First app development in ReactNative. ReactNative中的第一个应用程序开发。 I just started to load data in via API and now the App crashes on my phone - but works fine in the simulator. 我刚开始通过API加载数据,现在应用程序崩溃在我的手机上 - 但在模拟器中工作正常。 The only errors I have (nothing in console) are from xCode, see image: 我遇到的唯一错误(控制台中没有任何错误)来自xCode,请参阅图片:

在此输入图像描述

Any help debugging / fixing this issue? 有没有帮助调试/解决这个问题?

Thanks 谢谢

This was an issue because I was running 8.2 in simulator and 10.2 on my phone. 这是一个问题,因为我在模拟器中运行8.2,在手机上运行10.2。 10.2 does not allow you to fetch using http, only https. 10.2不允许您使用http获取,仅使用https。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM