Created
August 5, 2015 12:17
-
-
Save allending/ae32e4eace730eabd25d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lembacon | |
Aug 5, 2015 5:04 AM | |
(in response to daltheman) | |
Hi guys, I've just found a temporary workaround. (Applies to Xcode 7 beta 4 on OS X El Capitan Developer Beta 6) | |
Open your Terminal: | |
cd /Applications/Xcode-beta.app (or wherever your Xcode 7 beta 4 is located) | |
cd Contents/Developer/Platforms/iPhoneSimulator.platform | |
cd Developer/SDKs/iPhoneSimulator.sdk/usr/lib | |
sudo mv dyld_sim dyld_sim.orig | |
The reason is that the internal implementation of `_NSGetExecutablePath` has been updated (where the Kernel is involved), and the host `dyld` has also been updated to track this change. The `dyld_sim`, however, has not yet been updated. So the problem is that `_NSGetExecutablePath` will return a path that contains a `executable_path=` part which causes that the `CFBundleGetMainBundle()` always returns `NULL`. This workaround simply forces the simulator to use the host `dyld`. By far, everything works great for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment