为什么我的XCODE不能断点调试?

     使用 iAtkos 10.5.7版本的黑苹果操作系统,装了Xcode竟然发现断点不能工作,只用GDB也不行。 经过研究,看上去是一个X86上Voodoo Kernel的Bug,貌似装了破解内核的童鞋会有这个问题。

     解决办法:

     1.修改/Library/Preferences/SystemConfiguration/com.apple.Boot.plist为,红色为修改处.

 

        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
        <plist version="1.0">
        <dict>
            <key>Kernel</key>
            <string>custom</string>
            <key>Kernel Flags</key>
            <string>cpus=1 -f std_dyld=1 </string>
            <key>Boot Graphics</key>
            <string>Yes</string>
            <key>Quiet Boot</key>
            <string>No</string>
            <key>Timeout</key>
            <string>5</string>
        </dict>
        </plist>

 

    2.将文件另存至桌面,然后将桌面上的该文件拷贝到/Library/Preferences/SystemConfiguration/中覆盖(因为com.apple.Boot.plist不能在原位置修改保存)

    3.重启机器OK.

你可能感兴趣的:(工作,String,xcode,破解,encoding,X86)