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

集成Facebook SDK遇ITMS-91061错误:缺失隐私清单求解决

解决集成Facebook SDK时的ITMS-91061隐私清单缺失错误

错误详情

ITMS-91061: 缺失隐私清单 - 您的应用包含“Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit”,其中的FBSDKCoreKit是官方标识的涉及隐私的第三方SDK。自2024年11月12日起,新应用或应用更新中若包含此类SDK,必须附带隐私清单文件。

解决方法

  • 优先方案:升级Facebook SDK到最新版本
    Facebook官方已在最新版SDK中内置符合要求的隐私清单,升级后即可自动解决该问题。

  • 临时方案:手动添加隐私清单
    若暂时无法升级SDK,可按以下步骤操作:

    1. 在Xcode中,为FBSDKCoreKit.framework创建名为PrivacyInfo.xcprivacy的文件;
    2. 将以下代码复制到该文件中:
<?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>NSPrivacyCollectedDataTypes</key>
    <array>
        <dict>
            <key>NSPrivacyCollectedDataType</key>
            <string>NSPrivacyCollectedDataTypeDeviceInformation</string>
            <key>NSPrivacyCollectedDataTypeLinked</key>
            <false/>
            <key>NSPrivacyCollectedDataTypeTracking</key>
            <true/>
            <key>NSPrivacyCollectedDataTypePurposes</key>
            <array>
                <string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
                <string>NSPrivacyCollectedDataTypePurposeAdvertising</string>
            </array>
        </dict>
        <dict>
            <key>NSPrivacyCollectedDataType</key>
            <string>NSPrivacyCollectedDataTypeProductInteraction</string>
            <key>NSPrivacyCollectedDataTypeLinked</key>
            <true/>
            <key>NSPrivacyCollectedDataTypeTracking</key>
            <true/>
            <key>NSPrivacyCollectedDataTypePurposes</key>
            <array>
                <string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
                <string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
                <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
            </array>
        </dict>
    </array>
    <key>NSPrivacyAccessedAPITypes</key>
    <array>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>CA92.1</string>
            </array>
        </dict>
    </array>
    <key>NSPrivacyTracking</key>
    <dict>
        <key>NSPrivacyTrackingEnabled</key>
        <true/>
        <key>NSPrivacyTrackingPurposes</key>
        <array>
            <string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
            <string>NSPrivacyCollectedDataTypePurposeAdvertising</string>
        </array>
        <key>NSPrivacyTrackingDataTypes</key>
        <array>
            <string>NSPrivacyCollectedDataTypeProductInteraction</string>
            <string>NSPrivacyCollectedDataTypeDeviceInformation</string>
        </array>
    </dict>
</dict>
</plist>

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.18 12:47:01