簡體   English   中英

我無法通過Expo在iOS中測試我的應用

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

當我嘗試在裝有iOS的手機上運行我的應用程序時遇到一些問題,但在Android上則沒有此問題。 我使用Sublime Text(而不是XDE)進行編碼,並在終端中執行我的項目,使用命令npm start並讀取QR Code。 我在Windows 10中編碼。我使用create-react-native-app構建項目

出現的錯誤是

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

第一次,我確實認為該映像名稱或目錄錯誤,然后轉到代碼並確認該映像正確。 因此,我下定決心嘗試在我的Android設備上嘗試,令我驚訝的是,它可以正常工作。

我的項目:[ https://snack.expo.io/HyKP1hyjz] [1 ]

我的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"
  } 
}

我嘗試從我的項目中刪除該圖像,然后嘗試再次運行,但是從react-navigation中遇到了另一個圖像,但存在相同的問題

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