Create a gist now

Instantly share code, notes, and snippets.

@bramus /fix.md
Last active Oct 24, 2017

What would you like to do?
Fixing the XCode 9.x Simulator 3D/Map Performance issue

Got a slow/unresponsive Simulator with XCode 9.x?

You're most likely using some kind of 3D or Native Maps in your App then, no? Awaiting XCode 9.1 (which contains a fix) here's a workaround which replaces the bundled OpenGLES.framework with the version from XCode 9.0 beta 3.

Please do note …

⚠️ Installing frameworks/binaries from unfamiliar/untrusted resources always involves some risk. I can only say that I’ve been using the linked version without any issues. Your mileage may vary.

Instructions

  • Make sure the Simulator is closed

  • Download OpenGLES.framework.zip from http://cl.ly/0q2k0r232o2h

  • Extract the and move the OpenGLES.framework to its proper location:

     # Go to folder where the downloaded OpenGLES.framework.zip resides
     cd ~/Downloads
    
     # Unzip it
     unzip OpenGLES.framework.zip
    
     # Back up existing framework
     sudo mv /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OpenGLES.framework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OpenGLES.framework.bak
    
     # Move “new” framework into place
     sudo mv OpenGLES.framework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/
    

That should do the trick :)

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment