Skip to content

Instantly share code, notes, and snippets.

@bramus
Last active May 20, 2018 19:47
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bramus/5b9183e06ba956250c16674b19577007 to your computer and use it in GitHub Desktop.
Save bramus/5b9183e06ba956250c16674b19577007 to your computer and use it in GitHub Desktop.
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