You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何用plutil移除plist文件中的com.apple.developer.associated-domains键

plutil移除Entitlements.plist特定键失败问题

构建阶段使用plutil操作plist文件(如Info.plist和Entitlements.plist)时,执行plutil -remove "key1"这类命令可正常移除各类键,但执行以下命令移除com.apple.developer.associated-domains键时:

plutil -remove "com.apple.developer.associated-domains"

返回错误:

No value to remove at key path com.apple.developer.associated-domains

但该键明确存在于目标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>aps-environment</key>
    <string>development</string>
    <key>com.apple.developer.associated-domains</key>
    <array>
        <string>applinks:mycompany.com</string>
        <string>applinks:mycompany.com*</string>
    </array>
</dict>
</plist>

内容的提问来源于stack exchange,提问作者thomasgalliker

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 13:26:03