phi*_*tre 6 xcode ios circleci swift swift-package-manager
我的 CircleCI 工作流程开始失败,出现错误,我似乎找不到任何文档:
\n无法计算签名任务输入 - 操作已取消。
\n...后面是对第三方库产品的引用,例如:
\n(在项目“Appboy_iOS_SDK”的目标“Appboy_iOS_SDK_AppboyKit”中)。
\n我正在使用 SPM 来管理依赖项,并尝试通过添加本地 SPM 包来模块化我的 Xcode 项目。
\n以下是 CircleCI 输出的相关部分。
\n我似乎无法弄清楚这些错误指的是什么,但如果我从我的方案中删除 UI 测试,CircleCI 不会失败,并且所有测试都会顺利运行。
\n我猜这与“MyAppUITests”目标的“复制捆绑资源”步骤有关。
\n任何帮助将非常感激。
\nXcode 版本:12.5.1\nFastlane 版本:2.187.0
\n相关快车道:
\n desc "Runs the MyApp unit tests"\n lane :myapp_tests do\n scan(\n scheme: "MyApp",\n project: "MyApp.xcodeproj",\n devices: ["iPhone 11"],\n cloned_source_packages_path: "SourcePackages"\n )\n end\nRun Code Online (Sandbox Code Playgroud)\nCircleCI 输出:
\n[00:00:45]: Running Tests: \xe2\x96\xb8 Touching MyApp.app (in target \'MyApp\' from project \'MyApp\')\n[00:00:45]: \xe2\x96\xb8 Build Succeeded\n[00:00:45]: \xe2\x96\xb8 2021-07-22 00:00:45.521 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678\n[00:00:45]: \xe2\x96\xb8 Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa5036121a0>\n[00:00:45]: \xe2\x96\xb8 Object: <IDETestRunSpecificationBuilder>\n[00:00:45]: \xe2\x96\xb8 Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error:\n[00:00:45]: \xe2\x96\xb8 Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main}\n[00:00:45]: \xe2\x96\xb8 Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.\n[00:00:45]: \xe2\x96\xb8 2021-07-22 00:00:45.526 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678\n[00:00:45]: \xe2\x96\xb8 Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50305bb20>\n[00:00:45]: \xe2\x96\xb8 Object: <IDETestRunSpecificationBuilder>\n[00:00:45]: \xe2\x96\xb8 Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error:\n[00:00:45]: \xe2\x96\xb8 Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main}\n[00:00:45]: \xe2\x96\xb8 Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.\n[00:00:45]: \xe2\x96\xb8 2021-07-22 00:00:45.531 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678\n[00:00:45]: \xe2\x96\xb8 Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50306a230>\n[00:00:45]: \xe2\x96\xb8 Object: <IDETestRunSpecificationBuilder>\n[00:00:45]: \xe2\x96\xb8 Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error:\n[00:00:45]: \xe2\x96\xb8 Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main}\n[00:00:45]: \xe2\x96\xb8 Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.\n[00:00:45]: \xe2\x96\xb8 2021-07-22 00:00:45.536 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678\n[00:00:45]: \xe2\x96\xb8 Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa503076680>\n[00:00:45]: \xe2\x96\xb8 Object: <IDETestRunSpecificationBuilder>\n[00:00:45]: \xe2\x96\xb8 Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error:\n[00:00:45]: \xe2\x96\xb8 Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main}\n[00:00:45]: \xe2\x96\xb8 Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.\n[00:00:45]: \xe2\x96\xb8 2021-07-22 00:00:45.549 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678\n[00:00:45]: \xe2\x96\xb8 Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa503660a10>\n[00:00:45]: \xe2\x96\xb8 Object: <IDETestRunSpecificationBuilder>\n[00:00:45]: \xe2\x96\xb8 Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error:\n[00:00:45]: \xe2\x96\xb8 Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main}\n[00:00:45]: \xe2\x96\xb8 Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.\n[00:00:45]: \xe2\x96\xb8 2021-07-22 00:00:45.555 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678\n[00:00:45]: \xe2\x96\xb8 Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50366c6a0>\n[00:00:45]: \xe2\x96\xb8 Object: <IDETestRunSpecificationBuilder>\n[00:00:45]: \xe2\x96\xb8 Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error:\n[00:00:45]: \xe2\x96\xb8 Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main}\n[00:00:45]: \xe2\x96\xb8 Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.\n[00:00:51]: \xe2\x96\xb8 \xe2\x9d\x8c error: Could not compute signing task inputs - operation was cancelled. (in target \'Appboy_iOS_SDK_AppboyKit\' from project \'Appboy_iOS_SDK\')\n[00:00:51]: \xe2\x96\xb8 \xe2\x9d\x8c error: Could not compute signing task inputs - operation was cancelled. (in target \'Appboy_iOS_SDK_AppboyUI\' from project \'Appboy_iOS_SDK\')\n[00:00:51]: \xe2\x96\xb8 \xe2\x9d\x8c error: Could not compute signing task inputs - operation was cancelled. (in target \'Mixpanel_Mixpanel\' from project \'Mixpanel\')\n[00:00:52]: \xe2\x96\xb8 Testing failed:\n[00:00:52]: \xe2\x96\xb8 Could not compute signing task inputs - operation was cancelled.\n[00:00:52]: \xe2\x96\xb8 Testing cancelled because the build failed.\n[00:00:52]: \xe2\x96\xb8 ** TEST FAILED **\nRun Code Online (Sandbox Code Playgroud)\n更新:
\n看来问题是由于将本地共享 SPM 包中的测试添加到主目标的方案中而引起的,因为我正在寻找一种通过 Fastlane 在 CircleCI 中运行这些测试的方法。
\n似乎没有其他方法可以通过 Fastlane 在 SPM 包中运行测试。
\n然后,我在 Fastlane Github 存储库中偶然发现了一个拉取请求,该请求增加了在 SPM 包中运行测试的能力,而无需指定.xcodeproj.
我将 SPM 包测试分离到它们自己的通道(和 CircleCI 作业)中,如此处所述,到目前为止,这似乎已经消除了构建失败。
\n| 归档时间: |
|
| 查看次数: |
1105 次 |
| 最近记录: |