菜鸟教程小白 发表于 2022-12-13 02:24:24

ios - 应用被拒绝 - 缺少 info.Plist 键


                                            <p><p>尝试将我的第一个应用部署到 App Store,但出现了一些错误。</p>
<p>由于以下原因,我的应用被 App Store 拒绝:</p>
<blockquote>
<p>Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app&#39;s Info.plist must contain an NSContactsUsageDescription key with a string value explaining to the user how the app uses this data.</p>
<p>Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app&#39;s Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.</p>
<p>Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app&#39;s Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.</p>
<p>Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app&#39;s Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.</p>
</blockquote>
<p> <a href="/image/RHt7H.png" rel="noreferrer noopener nofollow">My info.plist file</a> </p>
<p>谁能给我更多信息?如何添加这些键?</p>
<p>对 Swift 和 Xcode 来说还很陌生,所以这可能是一个 super 简单的修复!</p>
<p>感谢您的帮助!</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>您需要添加特定的 key 才能使用某些功能。您必须添加描述以向用户解释您需要访问这些功能的原因。您需要添加的内容(根据您的问题)如下。包含键后,输入描述作为值。 </p>

<ul>
<li>隐私 - 联系人使用说明</li>
<li>隐私 - 照片库使用说明</li>
<li>隐私 - 麦克风使用说明</li>
<li><p>隐私 - 相机使用说明</p>

<p> <a href="/image/idyvT.jpg" rel="noreferrer noopener nofollow"><img src="/image/idyvT.jpg" alt="info.plist screenshot"/></a> </p></li>
</ul></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 应用被拒绝 - 缺少 info.Plist 键,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/45289840/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/45289840/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 应用被拒绝 - 缺少 info.Plist 键