在hackintosh上使用Xcode Instruments [英] Using Xcode Instruments on hackintosh

查看:79
本文介绍了在hackintosh上使用Xcode Instruments的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用hackintosh(i7-4790K 4GHz,16GB DDR3,GF980Ti)在Xcode(Swift和Objective-C)上进行开发大约一年,永远不会出错. 但是现在我需要使用Instruments应用程序(例如泄漏,分配,能源日志,系统跟踪等)-但我不能!当我启动这些应用程序中的任何一个时,我只会看到透明的窗口,没有任何可见的信息.

Using hackintosh (i7-4790K 4GHz, 16GB DDR3, GF980Ti) for developing on Xcode (both Swift and Objective-C) about an year, never get any errors. But now I need to use Instruments apps (such Leaks, Allocations, Energy Log, System Trace, etc.) - but I can not! When I start ANY of these apps I see just transparent window without any visible information.

推荐答案

正如@Eike在回答中所说的那样,面向该问题的Instruments和其他应用程序从10.13起即开箱即用.对于10.12,NVWebDriverLibValFix kext是更好/更少侵入性的修复程序,可以避免某些权限问题.现在应该认为这个答案已经过时了.

as @Eike said in his answer, Instruments and other apps facing this issue work out of the box from 10.13 onwards. For 10.12, the NVWebDriverLibValFix kext is a better/less intrusive fix and avoid some permissions issues. This answer should now be considered obsolete.

Instruments是Apple发行的带有代码签名的应用程序.这些应用程序中有一些已被标记,因此它们拒绝加载未由Apple签名的库. Nvidia Web驱动程序未由Apple签名,因此未加载,从而导致您描述的行为.

Instruments is a code-signed application distributed by Apple. Some of these applications are flagged so they refuse to load libraries that are not signed by Apple. The Nvidia Web Driver is not signed by Apple, so it's not loaded, resulting in the behavior you describe.

接受的答案告诉您通过加载另一个由Apple签名的驱动程序来解决此问题.尽管这当然可以工作,但我还是希望采用另一种方法:强制Instruments加载nvidia驱动程序.

The accepted answer tell you to work around the issue by loading another driver, signed by Apple. While this will certainly work, I prefer to do it the other way around : force Instruments to load the nvidia driver.

您可以使用以下命令重新签署Instruments二进制文件:

You can re-sign the Instruments binary with the following command:

sudo codesign -f -s - /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Instruments

然后它将加载Nvidia驱动程序并完美运行.

It will then load the Nvidia driver and run perfectly well.

这篇关于在hackintosh上使用Xcode Instruments的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆