【问题标题】:Detox field CFBundleIdentifier not found inside Info.plist在 Info.plist 中找不到排毒字段 CFBundleIdentifier
【发布时间】:2019-07-20 13:32:56
【问题描述】:

按照 Expo 使用指南进行排毒,并在运行排毒测试时出现以下错误。

使用:

"detox": "^10.0.10",
"detox-expo-helpers": "^0.6.0",
"expo-detox-hook": "^1.0.10"

IPA 由 :

xcode v 9.4.1
expo v 31.0.6

还尝试了使用 xcode v10 和 expo v 32.0.0 构建的 IPA,同样的错误。

错误:

Error: field CFBundleIdentifier not found inside Info.plist of app binary at /Users/admin/Desktop/expo-test/bin/gogonow.app
at SimulatorDriver.getBundleIdFromBinary (/Users/admin/Desktop/expo-test/node_modules/detox/src/devices/drivers/SimulatorDriver.js:70:13)

【问题讨论】:

  • @Andrew 使用 expo 的官方排毒文档
  • 查看我最近给出的答案,了解如何使用 expo stackoverflow.com/a/54834078/5508175 设置排毒的步骤
  • 谢谢!我从 Expo 而不是 Expo 的客户端工具下载我的应用程序构建。你的回答让事情变得更清楚了。测试现在正在运行,但崩溃了:Test Suites: 1 failed, 1 total Tests: 1 failed, 1 total Snapshots: 0 total Time: 43.191s Ran all test suites matching /e2e/i with tests matching "^((?!:android:).)*$". child_process.js:644 throw err; ^ Error: Command failed: node_modules/.bin/jest "e2e" --config=e2e/config.json--maxWorkers=1 '--testNamePattern=^((?!:android:).)*$' 我没有任何 android 测试。
  • stackoverflow.com/a/53929106/5508175 这个答案的第一部分解释了你关于 android 的问题,如果你的测试失败了,这就是他们所说的。

标签: react-native expo detox


【解决方案1】:

在排毒配置中尝试使用 您应该注意 .app 路径、xcodeproj 路径、Scheme[The app name] 和 info.plist 路径。

这应该可行..

【讨论】:

    猜你喜欢
    • 2021-03-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-21
    • 2016-05-25
    • 1970-01-01
    • 2015-12-30
    • 1970-01-01
    相关资源
    最近更新 更多