gpt4 book ai didi

ios - XCode 9 缺少 CoreSimulator.framework

转载 作者:行者123 更新时间:2023-11-28 21:04:38 25 4
gpt4 key购买 nike

我已经下载了新的第9版XCode,发现~/Xcode.app/Contents/Developer/Library/PrivateFrameworks里面没有CoreSimulator.framework。 .

使用 Xamarin Studio,我可以在模拟器上运行应用程序,但是,当尝试运行测试时,它没有成功,因为这个框架不存在于这个 Xcode 版本中。

我发现在 Xcode 8 中存在该框架。有没有可能将这个框架导入到新的 Xcode 中?

最佳答案

好吧,我必须感谢@SushiHangover 提供的线索。

我之前使用的是 Visual Studio for Mac(版本 7.1.xxx)和 Xcode 9.4.2,我最近更新了它们。所以我有一个使用这些旧环境创建的 Xamarin 解决方案。现在,我将我的两个工具都更新为 Xcode 10 和 Visual Studio for Mac 7.6.2,然后尝试在 VS for Mac 上运行 Xamarin.UITest,然后出现如下错误:

SetUp : Calabash.XDB.Core.Exceptions.DeviceAgentException : Failed to launch simulator

ExitCode: 134
0 CoreFoundation 0x00007fff4314243d __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff6f053720 objc_exception_throw + 48
10 libobjc.A.dylib 0x00007fff6f056248 CALLING_SOME_+initialize_METHOD + 19
11 libobjc.A.dylib 0x00007fff6f04600c _class_initialize + 282
12 libobjc.A.dylib 0x00007fff6f045a19 lookUpImpOrForward + 238
13 libobjc.A.dylib 0x00007fff6f045494 _objc_msgSend_uncached + 68
14 iOSDeviceManager 0x0000000103501fdf +[Device withID:] + 105
15 iOSDeviceManager 0x000000010350705e +[Command simulatorFromArgs:] + 227
16 iOSDeviceManager 0x0000000103513803 +[LaunchSimulatorCommand execute:] + 20
17 iOSDeviceManager 0x0000000103509285 +[CLI process:] + 1106
18 iOSDeviceManager 0x00000001034d69a1 main + 121
19 libdyld.dylib 0x00007fff70121085 start + 1
2 CoreFoundation 0x00007fff4315d08e +[NSException raise:format:arguments:] + 98
3 Foundation 0x00007fff454f955d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
4 FBControlCore 0x00000001035cc84b +[FBControlCoreFrameworkLoader loadPrivateFrameworksOrAbort] + 462
5 libobjc.A.dylib 0x00007fff6f056248 CALLING_SOME_+initialize_METHOD + 19
6 libobjc.A.dylib 0x00007fff6f04600c _class_initialize + 282
7 libobjc.A.dylib 0x00007fff6f045a19 lookUpImpOrForward + 238
8 libobjc.A.dylib 0x00007fff6f045494 _objc_msgSend_uncached + 68
9 iOSDeviceManager 0x000000010350db41 +[Simulator initialize] + 40
(
)
*** First throw call stack:
2018-10-22 09:23:08.055 iOSDeviceManager[1586:180576] *** Assertion failure in +[FBSimulatorControlFrameworkLoader loadPrivateFrameworksOrAbort], /Users/moody/git/calabash/FBSimulatorControl/FBControlCore/Utility/FBControlCoreFrameworkLoader.m:41
2018-10-22 09:23:08.058 iOSDeviceManager[1586:180576] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to private frameworks for FBSimulatorControl with error Error Domain=com.facebook.FBControlCore Code=0 "Attempting to load a file at path '/Applications/Xcode-10.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework', but it does not exist" UserInfo={NSLocalizedDescription=Attempting to load a file at path '/Applications/Xcode-10.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework', but it does not exist}'
libc++abi.dylib: terminating with uncaught exception of type NSException

所以我必须做的是我只是更新了一些在解决方案资源管理器面板中表示的可用更新,如下所示:

enter image description here

右键单击 Packages and update 然后清理解决方案,然后再次尝试重新运行 UITests,这次很可能它应该在所有平台上成功运行(在我的例子中是在 iPhone 模拟器和 Android 中模拟器)。

希望对大家有所帮助!

关于ios - XCode 9 缺少 CoreSimulator.framework,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46463791/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com