ios - 分享扩展应用商店上传问题
<p><p>各位开发者大家好,</p>
<p>我正在上传一个带有分享扩展的应用,扩展应该只接受图片。</p>
<p>出于某种原因,当我上传应用程序进行 Beta 测试时,我收到如下警告。</p>
<blockquote>
<p>No values under NSExtensionActivationRule in bundle APPNAME.app/PlugIns/ShareOnAPPNAME.appex appear to trigger activation.</p>
</blockquote>
<p>我也收到了下面的邮件</p>
<blockquote>
<p>Dear developer,</p>
<p>We have discovered one or more issues with your recent delivery for "APPNAME". Your delivery was successful, but you may wish to correct the following issues in your next delivery:</p>
<p>Unreachable Activation - No values under NSExtensionActivationRule in bundle APPNAME.app/PlugIns/ShareOnAPPNAME.appex appear to trigger activation.</p>
<p>After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.</p>
</blockquote>
<p>我在扩展目标中的 plist 文件看起来像这样...我尝试添加所有支持键值 0 除了图像和值 1 的唯一图像键...但警告仍然存在...</p>
<pre><code><key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>NSExtensionActivationRule</key>
<dict>
<key> NSExtensionActivationSupportsImageWithMaxCount </key>
<integer>1</integer>
<key>NSExtensionActivationSupportsText</key>
<false/>
</dict>
</dict>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.share-services</string>
<key>NSExtensionPrincipalClass</key>
<string>ShareOnAPPNAMEVC</string>
</dict>
</code></pre>
<p>App 还显示了每种类型的共享选项,即电影、文本、网页等以及图像。</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>好的,所以我让它工作了,问题是从开发人员端复制粘贴的规则 NSExtensionActivationSupportsImageWithMaxCount 导致 plist 中出现空白 :( 检查下面。</p>
<pre><code><key> NSExtensionActivationSupportsImageWithMaxCount </key>
</code></pre></p>
<p style="font-size: 20px;">关于ios - 分享扩展应用商店上传问题,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/38049508/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/38049508/
</a>
</p>
页:
[1]