如何使“系统偏好设置”->“安全性和隐私”选项卡中的“开发人员工具”部分可见?
我以前曾看到“系统偏好设置”->“安全和隐私”->“隐私”->“开发人员工具”部分,但是随后我做出了不明智的决定,进行一些房屋打扫,并删除了所有在其中(Terminal,iTerm和IntelliJ)。现在“开发人员工具”部分不再可见,而且我似乎找不到找到再次显示它的方法。
我似乎记得Xcode最初与添加“开发人员工具”部分有关。我尝试过xcode-select --install
,但是已经有了最新的Xcode命令行工具,因此它什么也没做。我希望我不必完全卸载并重新安装Xcode。当然,必须有一些终端命令可以重新添加“开发人员工具”吗?
答案 0 :(得分:2)
尝试手动而不是从终端下载和安装最新的<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver
android:name=".MyAlarm"
android:process=":remote" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service android:name=".MyServices"
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="false"
></service>
</application>
:
xcode-tools
并登录(您应该已经有一个帐户,否则请注册)Account
command line tools
排序并下载最新版本希望这会有所帮助:)
答案 1 :(得分:2)
奇怪的是,我使用了spctl工具,发现您需要向列表中添加至少一个工具,以使“开发人员工具”在系统偏好设置->安全和隐私->隐私列表中可见。
通过运行命令:
spctl developer-mode enable-terminal
它将以非检查模式添加终端,然后您可以根据需要添加应用程序,例如iTerm。