El Capitan beta 6 + Xcode7 beta4一直卡在processing files的解决办法

来源:互联网 发布:淘宝店一年赚千万 编辑:程序博客网 时间:2024/05/17 22:45

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:

  1. cd /Applications/Xcode-beta.app (or wherever your Xcode 7 beta 4 is located)  
  2. cd Contents/Developer/Platforms/iPhoneSimulator.platform  
  3. cd Developer/SDKs/iPhoneSimulator.sdk/usr/lib  
  4. 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.

0 0