首页 > 解决方案 > 尝试使用 xcodebuild 创建的 .app 文件运行排毒测试时出错

问题描述

我正在尝试创建一个.app然后可以在我的文件中引用的.detoxrc.json文件,但我遇到了 2 个问题。

这是我正在使用的命令...

xcodebuild -workspace ios/Boomin.xcworkspace -scheme Boomin -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build -UseModernBuildSystem=YES -arch x86_64

  1. 我能看到的唯一.app文件是在ios -> build -> Build -> Products -> Debug-iphonesimulator目录中创建的,它被称为customer.app. 它看起来customer来自我的终端用户帐户。我该如何重命名这个?
  2. 当我尝试运行时,detox test --configuration ios我得到以下...

detox[19353] ERROR: field CFBundleIdentifier not found inside Info.plist of app binary at /ios/build/Build/Products/Debug-iphonesimulator/customer.app

我该如何解决这两个问题?

谢谢,

标签: react-nativedetox

解决方案


推荐阅读