简体   繁体   English

我无法通过Expo在iOS中测试我的应用

[英]I can't test my app in iOS with Expo

I have some problems when i try to run my app on phones that have iOS, but in Android don't have this problem. 当我尝试在装有iOS的手机上运行我的应用程序时遇到一些问题,但在Android上则没有此问题。 I'm coding in Sublime Text, not in XDE and executing my project in terminal, with commands npm start and reading the QR Code. 我使用Sublime Text(而不是XDE)进行编码,并在终端中执行我的项目,使用命令npm start并读取QR Code。 I'm coding in Windows 10. I build the project with create-react-native-app 我在Windows 10中编码。我使用create-react-native-app构建项目

The erro that appears is 出现的错误是

C:/Users/adria/Desktop/App/src/Imgs/image.png: Cannot find module 'C:/Users/adria/Desktop/App/node_moduless/expo/tools/hashAssetFiles' C:/Users/adria/Desktop/App/src/Imgs/image.png:找不到模块'C:/ Users / adria / Desktop / App / node_moduless / expo / tools / hashAssetFiles'

In the first time i did think that image is with wrong name or wrong directory, and i go to the code and certify that is correctly. 第一次,我确实认为该映像名称或目录错误,然后转到代码并确认该映像正确。 So, i resolve to try in my Android and for my surprise, work correctly.` 因此,我下定决心尝试在我的Android设备上尝试,令我惊讶的是,它可以正常工作。

My project: [ https://snack.expo.io/HyKP1hyjz][1] 我的项目:[ https://snack.expo.io/HyKP1hyjz] [1 ]

My package.json 我的package.json

{ 
  "name": "App", 
  "version": "0.1.0",
  "private": true,
  "devDependencies": { 
    "react-native-scripts": "1.11.1",  
    "jest-expo": "25.0.0", 
    "react-test-renderer": "16.2.0" 
  }, 
  "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
  "scripts": { 
  "start": "react-native-scripts start", 
  "eject": "react-native-scripts eject", 
  "android": "react-native-scripts android",
  "ios": "react-native-scripts ios", 
  "test": "node node_modules/jest/bin/jest.js" }, 
  "jest": { 
    "preset": "jest-expo" 
  },
  "dependencies": { 
    "expo": "^25.0.0", 
    "react": "16.2.0",
    "react-native": "0.52.0", 
    "react-navigation": "^1.5.8"
  } 
}

I try to remove the image from my project and try run again, and have the same problem but with another image, from react-navigation 我尝试从我的项目中删除该图像,然后尝试再次运行,但是从react-navigation中遇到了另一个图像,但存在相同的问题

C:\\Users\\adria\\Desktop\\App\\node_modules\\react-navigation\\src\\views\\assets\\back-icon.png C:\\ Users \\用户阿德里亚\\桌面\\软件\\ node_modules \\反应导航的\\ src \\意见\\ \\资产背的icon.png

您需要安装exponent软件包,请参见: https : //github.com/expo/expo/issues/72

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

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