Xcode 9模拟器运行缓慢

3

当应用程序首次运行时,Xcode 9 iOS 11模拟器非常缓慢。是否有人遇到过相同的问题?模拟器的“减速动画”功能已经取消选中。

1个回答

2

是的,这只是Xcode中的一个错误。

iOS 11/tvOS 11/watchOS 4模拟器中的OpenGLES.framework存在一个错误,导致它们跳过加载LLVM JIT并回退到解释着色器。这对模拟器的性能有严重影响,因为它完全是软件渲染的OpenGL(包括CoreAnimation、SceneKit等)。

你需要从Xcode 9b3中切换OpenGLES.framework来解决这个问题。

作为临时解决方法,您可以将Beta 3中的libCoreVMClient.dylib复制到Xcode 9 GMxcode 9.0.1中。

对于iOS,它位于:

Xcode[-beta].app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib

对于tvOS,这个位置位于:

Xcode[-beta].app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/tvOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib  

对于watchOS,它位于:

Xcode[-beta].app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/watchOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib  

请查看下面的链接:

Apple开发者论坛

Xcode 9模拟器非常慢


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接