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.
本文提供了一个针对 Xcode 7 beta 4 在 OSX El Capitan Developer Beta 6 上遇到的一个模拟器问题的临时解决办法。通过修改 dyld_sim 文件,使得模拟器能够正确返回可执行文件路径,从而解决了 CFBundleGetMainBundle() 返回 NULL 的问题。
8390

被折叠的 条评论
为什么被折叠?



