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.