快速框架崩溃xctest库未加载用于Arch X86_64
你做了什么?
使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Xctest框架仅可从测试捆绑包中可用/可加载,看起来我试图从您的应用程序目标中链接/使用快速使用?更改.podfile,以便您仅与测试目标快速链接。
例如:
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: