提交应用程序到应用商店错误

时间:2016-06-15 09:39:07

标签: ios iphone app-store itunesconnect

当我将我的应用程序提交到AppStore时,我收到此错误:

  

错误ITMS-90149:"此捆绑包无效。 Info.plist中CFBundleDocumentTypes键的值必须是字典数组,每个字典至少包含CFBundleTypeName键。"

在我的Info.plist中,我添加:



<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeName</key>
        <string>public.jpeg</string>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>LSHandlerRank</key>
        <string>Owner</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.jpeg</string>
        </array>
    </dict>
</array>
&#13;
&#13;
&#13;

错误仍然存​​在。

感谢您的帮助

1 个答案:

答案 0 :(得分:1)

您不尊重差异键的格式。

<dict>
   <key>CFBundleTypeName</key>
   <string>My File Format</string>
   <key>CFBundleTypeIconFiles</key>
       <array>
           <string>MySmallIcon.png</string>
           <string>MyLargeIcon.png</string>
       </array>
   <key>LSItemContentTypes</key>
       <array>
           <string>com.example.myformat</string>
       </array>
   <key>LSHandlerRank</key>
   <string>Owner</string>
</dict>

https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.html