Instruments 想要获得分析其他进程的权限 Jenkins

Instruments wants permission to analyze other processes Jenkins

所以我的问题是,在纯 swift 项目(几乎 :-) )上,测试也在 Swift 中编写,我每次构建都会得到这个。构建是通过 Fastlane 1.63 开始的。 :

▸ DTServiceHub: Instruments wants permission to analyze other processes. Please enter an administrator username and password to allow this.
▸ Username (jenkins): Password:
▸ Failed to authorize rights (0x1) with status: -60007.

在带有 OSX 服务器的 MacPro 上安装新的命令行工具和 Xcode 7.3 时出现问题。 Objective-C 项目每次都有效。我已经完成了这些线程中的建议,但没有用: Remove the authorization prompt from command line instruments (Under mavericks) Is there a way to remove the authorization prompt from command-line instances of Instruments (XCode)? 以及我能找到的所有其他地方。我不知道如何解决它。

我刚刚遇到了类似的问题,由 Fastlane scan 命令执行测试触发。

按照 the discussion on this issue and this Apple Support discussion 我设法通过 在我的 CI 机器上启用 "Developer Mode" 来解决它。

$ DevToolsSecurity -status
Developer mode is currently disabled.

$ DevToolsSecurity -enable
Developer mode is now enabled.

我在 Xcode 7.3 中遇到了同样的问题。我在我的 Mac 上不是管理员(我在公司网络上工作)所​​以网络管理员给了我管理员权限并且它有效......我不知道为什么 :)