美文网首页iOS 开发 iOS Developer
iOS APP打包上传错误ERROR ITMS-90149解决方

iOS APP打包上传错误ERROR ITMS-90149解决方

作者: 小球why | 来源:发表于2016-05-09 19:18 被阅读1058次

今天在打包上传APP时碰到了一个错误,如下图:


Snip20160509_1.png

根据提示,我去Info.plist下看,并没有CFBundleDocumentTypes这个值,于是我去网上看了一下CFBundleDocumentTypes的作用:注册(向iOS/mac系统)申明app能够打开某种类型的文档,这样其他app才可能通过DIC(document interaction interface)把文件转给你app来打开,注册就要在plist里声明

解决方法:把CFBundleDocumentTypes加进info.plist,用source code方式打开info.plist,往里面添加以下东西即可

<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>pdf</string>
<key>LSHandlerRank</key> 
<string>Default</string>
</dict>
</array>

相关文章

网友评论

    本文标题:iOS APP打包上传错误ERROR ITMS-90149解决方

    本文链接:https://www.haomeiwen.com/subject/trperttx.html