在具有root权限的app上添加entitlements失败,在makefile里添加 appName_CODESIGN_FLAGS = -Sentitlement.xml,内容如下 <?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>application-identifier</key>
<string>appbundleId</string>
<key>com.apple.private.mobileinstall.allowedSPI</key>
<array>
<string>Install</string>
<string>Browse</string>
<string>Uninstall</string>
<string>Archive</string>
<string>RemoveArchive</string>
</array>
<key>com.apple.springboard.launchapplications</key>
<true/>
<key>com.apple.springboard.openapplications</key>
<true/>
<key>keychain-access-groups</key>
<array>
<string>appbundleId</string>
</array>
</dict>
</plist>
能够make package install,并打开app,但是调用卸载app失败.于是导出app的可执行文件,使用ldid -e app执行文件,提示ldid _assert(signature != NULL); errno=0