快速框架崩溃xctest库未加载用于Arch X86_64

发布于 2025-01-22 05:40:42 字数 3884 浏览 1 评论 0原文

你做了什么?

使用POD安装快速框架

 pod 'Quick'

您期望发生什么?

在没有崩溃的情况下运行演示应用程序

实际发生了什么?

应用在启动时崩溃: Dyld [11272]:库未加载: @rpath/xctest.framework/xctest 参考:/用户/aimoresc/library/developer/coresimulator/devices/8930165e-1256-413e-ae71-b81b78c23799/d 原因:尝试:'/users/aimoresc/library/develicer/xcode/deriveddata/quickdemo-hjyhkpgeditvlnbkokgocjlflslb/build/build/build/products/debug-iphonesimulator/xctest.framework.framework.framework.framework.framework.framework.framework.frameworkest.no odeplitation'内容/developer/platforms/iphoneos.platform/library/developer/coresimulator/profiles/runtimes/ios.simruntime/corments/cormest/ression/runtimeroot/usr/lib/swift/xctest.framework.framework/xctests/xctest' (具有'ARMV7,ARMV7S,ARM64,ARM64E',需要'x86_64')),'/usr/lib/swift/xctest.framework/xctest'(没有这样的文件),'/users/aimoresc/aimoresc/aimoresc/aimoresc/liblary/developer/developer/coreSimulatorator/coresimulatorator /Devices/8930165E-1256-413E-AE71-B81B78C23799/data/Containers/Bundle/Application/2D3BCC75-C97C-4F02-96C2-426D3E894DD6/QuickDemo.app/Frameworks/XCTest.framework/XCTest' (no such file), ' /aimoresc/library/developer/coreSimulator/devices/8930165e-1256-413e-ae-ae71-b81b78c23799/data/conta/conta/bundle/bundle/bundle/bunsple/2d3bcc755-c975-c97c-4f02-4f02-4f02-96c2-426d/app /xctest'(没有这样的文件),'/user/aimoresc/library/developer/coreSimulator/devices/8930165E-11256-413E-413E-AE71-B81B78C23799/data/data/contains/contains/contains/contains/containser/bundle/bunapplion/bunapplion/bunapplion/2d3bcc75-c975-c97c-4f02-96c2-96c2-2-2-2-2-2-2-2-2-2-D3 /QuickDemo.app/Frameworks/XCTest.framework/XCTest' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Contents/Resources/runtimeroot/usr/lib/swift/xctest.framework/xctest'(fat File,但缺少兼容的架构(具有'armv7,armv7,armv7s,arm64,arm64,arm64e',需要'x86_64') lib/swift/XCTest.framework/XCTest' (no such file), '/Users/aimoresc/Library/Developer/CoreSimulator/Devices/8930165E-1256-413E-AE71-B81B78C23799/data/Containers/Bundle/Application/2D3BCC75- C97C-4F02-96C2-426D3E894DD6/QuickDemo.app/Frameworks/XCTest.framework/XCTest' (no such file), '/Users/aimoresc/Library/Developer/CoreSimulator/Devices/8930165E-1256-413E-AE71-B81B78C23799/数据/容器/捆绑/应用程序/2D3BCC75-C97C-4F02-96C2-426D3E894DD6/QUICKDEMO.APP/FRAFEWWORK/XCTEST.FRAMEWORK/XCTEST' 8930165E-1256-413E-AE71-B81B78C23799/DATA/CONTAINALE/bundle/bundle/application/2D3BCC75-C97C-4F02-96C2-96C2-426D3E894DDDDD6/QUICKDEMO Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/XCTest.framework/XCTest' (no such file ) 库未加载: @rpath/xctest.framework/xctest 参考:/用户/aimoresc/library/developer/coresimulator/devices/8930165e-1256-413e-ae71-b81b78c23799/d 原因:尝试:'/users/aimoresc/library/develicer/xcode/deriveddata/quickdemo-hjyhkpgeditvlnbkokgocjlflslb/build/build/build/products/debug-iphonesimulator/xctest.framework.framework.framework.framework.framework.framework.framework.frameworkest.no odeplitation'内容/developer/platforms/iphoneos.platform/library/developer/coresimulator/profiles/runtimes/ios.simruntime/corments/cormest/ression/runtimeroot/usr/lib/swift/xctest.framework.framework/xctests/xctest' (具有'ARMV7,ARMV7S,ARM64,ARM64E',需要'x86_64')),'/usr/lib/swift/xctest.framework/xctest'(没有这样的文件),'/users/aimoresc/aimoresc/aimoresc/aimoresc/liblary/developer/developer/coreSimulatorator/coresimulatorator /DEVICES/8930165E

-1256-413E-AE71-B81B78C23799/DATA/DATA/CONTAINERS/BUNDER/BUNDER/APPLICATION /2D3BCC75

-C97C-4F02-96C2-96C2-96C2-426D3E894DD6EROUMITION您使用:

  • 快速: 5.0

  • xcode版本:版本13.2.1(13c100)

  • swift版本:5

  • 可可录:1.11.2

What did you do?

Installed Quick framework using pod

 pod 'Quick'

What did you expect to happen?

Run the Demo app without crashes

What actually happened instead?

App crashes on startup:
dyld[11272]: Library not loaded: @rpath/XCTest.framework/XCTest
Referenced from: /Users/aimoresc/Library/Developer/CoreSimulator/Devices/8930165E-1256-413E-AE71-B81B78C23799/data/Containers/Bundle/Application/2D3BCC75-C97C-4F02-96C2-426D3E894DD6/QuickDemo.app/QuickDemo
Reason: tried: '/Users/aimoresc/Library/Developer/Xcode/DerivedData/QuickDemo-hjyhkpgeditvlnbkokgocjlflslb/Build/Products/Debug-iphonesimulator/XCTest.framework/XCTest' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/XCTest.framework/XCTest' (fat file, but missing compatible architecture (have 'armv7,armv7s,arm64,arm64e', need 'x86_64')), '/usr/lib/swift/XCTest.framework/XCTest' (no such file), '/Users/aimoresc/Library/Developer/CoreSimulator/Devices/8930165E-1256-413E-AE71-B81B78C23799/data/Containers/Bundle/Application/2D3BCC75-C97C-4F02-96C2-426D3E894DD6/QuickDemo.app/Frameworks/XCTest.framework/XCTest' (no such file), '/Users/aimoresc/Library/Developer/CoreSimulator/Devices/8930165E-1256-413E-AE71-B81B78C23799/data/Containers/Bundle/Application/2D3BCC75-C97C-4F02-96C2-426D3E894DD6/QuickDemo.app/Frameworks/XCTest.framework/XCTest' (no such file), '/Users/aimoresc/Library/Developer/CoreSimulator/Devices/8930165E-1256-413E-AE71-B81B78C23799/data/Containers/Bundle/Application/2D3BCC75-C97C-4F02-96C2-426D3E894DD6/QuickDemo.app/Frameworks/XCTest.framework/XCTest' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/XCTest.framework/XCTest' (fat file, but missing compatible architecture (have 'armv7,armv7s,arm64,arm64e', need 'x86_64')), '/usr/lib/swift/XCTest.framework/XCTest' (no such file), '/Users/aimoresc/Library/Developer/CoreSimulator/Devices/8930165E-1256-413E-AE71-B81B78C23799/data/Containers/Bundle/Application/2D3BCC75-C97C-4F02-96C2-426D3E894DD6/QuickDemo.app/Frameworks/XCTest.framework/XCTest' (no such file), '/Users/aimoresc/Library/Developer/CoreSimulator/Devices/8930165E-1256-413E-AE71-B81B78C23799/data/Containers/Bundle/Application/2D3BCC75-C97C-4F02-96C2-426D3E894DD6/QuickDemo.app/Frameworks/XCTest.framework/XCTest' (no such file), '/Users/aimoresc/Library/Developer/CoreSimulator/Devices/8930165E-1256-413E-AE71-B81B78C23799/data/Containers/Bundle/Application/2D3BCC75-C97C-4F02-96C2-426D3E894DD6/QuickDemo.app/Frameworks/XCTest.framework/XCTest' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/XCTest.framework/XCTest' (no such file)
Library not loaded: @rpath/XCTest.framework/XCTest
Referenced from: /Users/aimoresc/Library/Developer/CoreSimulator/Devices/8930165E-1256-413E-AE71-B81B78C23799/data/Containers/Bundle/Application/2D3BCC75-C97C-4F02-96C2-426D3E894DD6/QuickDemo.app/QuickDemo
Reason: tried: '/Users/aimoresc/Library/Developer/Xcode/DerivedData/QuickDemo-hjyhkpgeditvlnbkokgocjlflslb/Build/Products/Debug-iphonesimulator/XCTest.framework/XCTest' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/XCTest.framework/XCTest' (fat file, but missing compatible architecture (have 'armv7,armv7s,arm64,arm64e', need 'x86_64')), '/usr/lib/swift/XCTest.framework/XCTest' (no such file), '/Users/aimoresc/Library/Developer/CoreSimulator/Devices/8930165E-1256-413E-AE71-B81B78C23799/data/Containers/Bundle/Application/2D3BCC75-C97C-4F02-96C2-426D3E894DD6/QuickDemo.app/Frameworks/XCTest.framework/XCTest

Environment

List the software versions you're using:

  • Quick: 5.0

  • Xcode Version: Version 13.2.1 (13C100)

  • Swift Version: 5

  • CocoaPods: 1.11.2

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

原来是傀儡 2025-01-29 05:40:42

Xctest框架仅可从测试捆绑包中可用/可加载,看起来我试图从您的应用程序目标中链接/使用快速使用?更改.podfile,以便您仅与测试目标快速链接。

例如:


target 'QuickDemo' do
  # List of pods for the app target
end

target 'QuickDemoTests' do
  pod 'Quick'
end 

The XCTest framework is only available/loadable from test bundles, and it looks like I was trying to link/use Quick from your app target? changing the .podfile so that you only link Quick with your test target(s).

For example:


target 'QuickDemo' do
  # List of pods for the app target
end

target 'QuickDemoTests' do
  pod 'Quick'
end 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文