添加 Entitlements.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>com.apple.springboard.launchapplications</key>
<true/>
+ <key>platform-application</key>
+ <true/>
+ <key>get-task-allow</key>
+ <true/>
+ <key>proc_info-allow</key>
+ <true/>
+ <key>task_for_pid-allow</key>
+ <true/>
+ <key>run-unsigned-code</key>
+ <true/>
+ <key>com.apple.system-task-ports</key>
+ <true/>
</dict>
</plist>
Makefile 添加签名配置
applaunch_CODESIGN_FLAGS = -SEntitlements.plist