首页 > 解决方案 > 使用 iOS 设备运行测试时出错

问题描述

我创建了一个使用相机的框架,因此它不会构建或无法在 ios 模拟器中运行 sonarqube。

我尝试使用真实设备并使用 Xcode->Product->Test 运行测试,它显示以下错误

TestFacial.app (53366) encountered an error (Failed to load the test bundle. 
If you believe this error represents a bug, please attach the result bundle at
 /Users/np/Library/Developer/Xcode/DerivedData/SSDK-byourtlovsdebofxjjffsbmkjyib/Logs/Test/
 Run-SSDK-2021.06.09_08-36-51-+0530.xcresult. (Underlying Error: The bundle “SSDKTests” couldn’t be loaded because 
 it is damaged or missing necessary resources. The bundle is damaged or missing necessary resources. 
 Try reinstalling the bundle. dlopen_preflight(/var/containers/Bundle/Application/E531A30A-81C0-4568-9B36-28AABD812787/
 TestFacial.app/PlugIns/SSDKTests.xctest/SSDKTests): Library not loaded: @rpath/SSDK.framework/SSDK
  Referenced from: /var/containers/Bundle/Application/E531A30A-81C0-4568-9B36-28AABD812787/TestFacial.app/
  PlugIns/SSDKTests.xctest/SSDKTests
  Reason: image not found))

这里 TestFacial 是我添加为目标以测试我的框架(SSDK)的测试应用程序 TestFacial 是空项目(xcode 只有默认代码)。

我的 SSDKTests 也如下所示 在此处输入图像描述

所以我真的被困在这一点上,无法理解错误的原因是什么。请帮忙

标签: iosiphonexcodeunit-testing

解决方案


推荐阅读