当应用程序首次运行时,Xcode 9 iOS 11 模拟器非常慢。有没有人经历过同样的事情? 模拟器的慢动画功能已经取消选中。
最佳答案
是的,这只是 Xcode
中的一个错误
iOS 11/tvOS 11/watchOS 4 模拟器中的 OpenGLES.framework 存在一个错误,导致它们跳过加载 LLVM JIT 并回退到解释着色器。这对模拟器有严重的性能影响,因为它完全是软件渲染的 OpenGL(包括 CoreAnimation、SceneKit 等)。
您需要从 Xcode 9b3 换入 OpenGLES.framework
作为临时解决方法,您可以将 libCoreVMClient.dylib 从 Beta 3 复制到 Xcode 9 GM
和 xcode 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
请检查以下链接:
关于ios - Xcode 9 模拟器慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47406967/