GoogleMaps on simulator in Xcode 9 uses over 100% of CPU when moving the map

后端 未结 1 1608
情歌与酒
情歌与酒 2021-02-04 01:50

So I\'ve now converted my project to use Swift 4 in Xcode 9, and have started testing my app. It\'s a big app with four distinct tabs, and nearly everything is working as expect

1条回答
  •  梦毁少年i
    2021-02-04 02:07

    Update: This issue is fixed in Xcode 9.1 beta 2

    There is a bug in OpenGLES.framework that causes it to skip loading the LLVM JIT and fall back to interpreting shaders. This has a severe performance impact on the Simulator since it is entirely software-rendered OpenGL (this includes CoreAnimation, SceneKit, etc).

    edit: To clarify, the symptoms of this are exactly what you describe: 100% or greater CPU usage and <1fps rendering. This affects the Google Maps SDK and MapKit.

    As a temporary workaround you can copy libCoreVMClient.dylib from Beta 3 into the Xcode 9 GM and performance should be restored to what it was previously. This must be done for each platform runtime separately.

    For iOS this is located at: 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

    For tvOS this is located at: 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

    For watchOS this is located at: 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

    0 讨论(0)
提交回复
热议问题