名为“Runner”的工作区不包含名为“Runner”的方案,iOS中带巡逻的Flutter集成测试错误

34gzjxbg  于 2023-03-19  发布在  Flutter
关注(0)|答案(1)|浏览(208)

我尝试在我的flutter项目中实现集成测试,我发现Patrol符合我的要求,它可以评估openNotificationsdisableWifi等本地特性。
我遵循了如何集成巡逻本机代码的教程,以便在iOS中启用此功能,但我陷入了此错误。我不知道如何解决此问题,因为我对iOS一无所知。xcodebuild: error:
我的应用程序有3个风格的每个环境。我运行巡逻测试使用此命令。
patrol test --target integration_test/auth/google_sign_in_test.dart --flavor development --verbose
但是我一直在iOS上停止这个错误。

2023-03-13 08:45:40.141 xcodebuild[18956:5655849] Writing error result bundle to /var/folders/xk/rpw6m91n5vdfjl_n16_ccyg80000gn/T/ResultBundle_2023-13-03_08-45-0040.xcresult
        xcodebuild: error: The workspace named "Runner" does not contain a scheme named "Runner". The "-list" option can be used to find the names of the schemes in the workspace.
✗ Failed to build app with entrypoint google_sign_in_test.dart for iOS simulator (xcodebuild exited with code 65) (86.3s)
Error: xcodebuild exited with code 65
#0      throwToolExit (package:patrol_cli/src/base/exceptions.dart:7:3)
#1      IOSTestBackend.build.<anonymous closure> (package:patrol_cli/src/ios/ios_test_backend.dart:90:9)
<asynchronous suspension>
#2      DisposeScope.run (package:dispose_scope/src/dispose_scope.dart:44:7)
<asynchronous suspension>
#3      IOSTestBackend.build (package:patrol_cli/src/ios/ios_test_backend.dart:40:5)
<asynchronous suspension>
#4      TestCommand._builderFor.<anonymous closure> (package:patrol_cli/src/commands/test.dart:227:9)
<asynchronous suspension>
#5      _NativeTestRunner.run.runTestsOnDevice (package:patrol_cli/src/test_runner.dart:230:13)
<asynchronous suspension>
#6      Future.wait.<anonymous closure> (dart:async/future.dart:522:21)
<asynchronous suspension>
#7      _NativeTestRunner.run (package:patrol_cli/src/test_runner.dart:258:5)
<asynchronous suspension>
#8      TestCommand.run (package:patrol_cli/src/commands/test.dart:188:21)
<asynchronous suspension>
#9      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#10     PatrolCommandRunner.runCommand (package:patrol_cli/src/runner/patrol_command_runner.dart:304:18)
<asynchronous suspension>
#11     PatrolCommandRunner.run (package:patrol_cli/src/runner/patrol_command_runner.dart:243:18)
<asynchronous suspension>
#12     patrolCommandRunner (package:patrol_cli/src/runner/patrol_command_runner.dart:47:20)
<asynchronous suspension>
#13     main (file:///Users/bajochero/.pub-cache/hosted/pub.dartlang.org/patrol_cli-1.0.10/bin/main.dart:6:20)
<asynchronous suspension>
jmo0nnb3

jmo0nnb31#

尝试显式指定生成配置和方案:

patrol test --target integration_test/auth/google_sign_in_test.dart --flavor development --configuration Debug-development --scheme development --verbose

相关问题