ios 从TestFlight - Expo下载应用程序后出现白色屏幕

xeufq47z  于 2024-01-09  发布在  iOS
关注(0)|答案(3)|浏览(158)

我在我的一个应用程序中遇到了一个奇怪的问题,当我使用

expo build:ios

字符串
然后使用
转运蛋白
当我从TestFlight下载应用程序时,它是opens up with a white screen。我尝试使用以下命令在设备上的生产模式下运行应用程序

expo run:ios -d


之后,在调试器中按p切换到生产模式。它在本地使用本地IP地址工作正常。
当我导出.ipa文件并尝试在它给我的设备上运行时
无法安装应用程序,因为无法验证其完整性
以前有没有人遇到过同样的问题?为什么它没有显示任何错误?
一些信息:我正在使用Expo管理的裸工作流

app.json

{
  "expo": {
    "name": "Myndfulness",
    "slug": "myndfulness",
    "owner": "**************************",
    "version": "1.0.1",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "backgroundColor": "#fff",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 300
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "bundleIdentifier": "app.myndfulness",
      "buildNumber": "29",
      "usesAppleSignIn": true,
      "backgroundColor": "#FFFFFF",
      "icon": "./assets/icon.png",
      "userInterfaceStyle": "light",
      "config": {
        "googleSignIn": {
          "reservedClientId": "**************************"
        }
      },
      "googleServicesFile": "./GoogleService-Info.plist"
    },
    "android": {
      "package": "app.myndfulness",
      "versionCode": 4,
      "icon": "./assets/icon.png",
      "backgroundColor": "#FFFFFF",
      "userInterfaceStyle": "light",
      "googleServicesFile": "./google-services.json",
      "config": {
        "googleSignIn": {
          "certificateHash": "270AA8A33CF59E92614AF182C917CAF866D38719"
        }
      }
    },
    "web": {
      "favicon": "./assets/favicon.png",
      "config": {
        "firebase": {
          "apiKey": "**************************",
          "authDomain": "**************************",
          "projectId": "**************************",
          "storageBucket": "**************************",
          "messagingSenderId": "441874631846",
          "appId": "**************************",
          "measurementId": "G-KX9BYB1D1Z"
        }
      }
    },
    "packagerOpts": {
      "sourceExts": [ "js", "json", "ts", "tsx", "jsx", "vue"]
    }
  }
}

eas.json

{
  "build": {
    "production": {
      "releaseChannel": "production"
    },
    "release": {
      "releaseChannel": "production"
    },
    "development": {
      "developmentClient": true,
      "distribution": "internal",
      "releaseChannel": "staging-dev"
    },
    "team": {
      "releaseChannel": "staging-team",
      "distribution": "internal",
      "android": {
        "buildType": "app-bundle"
      }
    }
  },
  "submit": {
    "production": {
      "ios": {
        "appleId": "**************************",
        "ascAppId": "1579481834",
        "appleTeamId": "**************************",
        "sku": "app.myndfulness"
      },
      "android": {
        "serviceAccountKeyPath": "./google-services.json",
        "track": "internal"
      }
    }
  },
  "cli": {
    "version": ">= 0.35.0",
    "requireCommit": true
  }
}

xqk2d5yq

xqk2d5yq1#

我认为你需要与Sentry集成,以便能够跟踪你的JS错误,因为出现白屏是因为你的JS上有一个中断
或者您可以使用https://github.com/a7ul/react-native-exception-handler并警告错误,以便能够知道是什么使您的应用程序白色屏幕

fdbelqdn

fdbelqdn2#

对于任何人来说,遇到同样的问题,我通过使用EAS上传构建版本来解决它

eas build -p=ios —auto-submit —clear-cache

字符串
了解EAS使用的更多可用选项

eas build --help

jgovgodb

jgovgodb3#

我昨天遇到了同样的问题,在挣扎了几个小时后,我尝试用Yarn而不是npm安装软件包,问题得到了解决。

相关问题