CFBundleDocumentTypes & UIFileSharingEnabled 问题

发布于 2024-08-28 04:30:51 字数 525 浏览 7 评论 0原文

有人让 UIFileSharingEnabled 或 CFBundleDocumentTypes 工作吗?我将 UIFileSharingEnabled 添加为 true 到我的 plist 中,并使用下面链接中的 Apple 示例作为 CFBundleDocumentTypes,但似乎无法让它工作。

我在 iTunes 中的文件共享下看不到我的应用程序,并且当我在 mail.app

http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/ CoreApplication/CoreApplication.html

Has anyone gotten UIFileSharingEnabled or CFBundleDocumentTypes to work? I added UIFileSharingEnabled as true to my plist and used Apple's example from the link below for CFBundleDocumentTypes, but can't seem to get it to work.

I don't see my app under file sharing in iTunes, and I do not get the option to open documents I registered in my app when I click on them in the mail.app

http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/CoreApplication/CoreApplication.html

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

提笔落墨 2024-09-04 04:30:51

卡洛,

将 app-info.plist 作为文本文件打开。 UIFileSharingEnabled 设置应如下所示:

<key>UIFileSharingEnabled</key>
<true/>

如果您执行了我所做的操作并在 plist 中添加了 UIFileSharingEnabled 并将其值设置为 YES,则您的密钥将如下所示:

<key>UIFileSharingEnabled</key>
<string>YES</string>

修复该密钥后,我的应用程序会在文件共享部分中弹出在 iTunes 的“应用程序”选项卡下。

希望也能解决您的问题!

Carloe,

Open your app-info.plist as a text file. The UIFileSharingEnabled setting should look like this:

<key>UIFileSharingEnabled</key>
<true/>

If you did what I did and added UIFileSharingEnabled in the plist and set its value to YES, your key will look like this:

<key>UIFileSharingEnabled</key>
<string>YES</string>

After I fixed that key, my app popped right up in the File Sharing section under the Apps tab of iTunes.

Hope that fixes your problem too!

枕头说它不想醒 2024-09-04 04:30:51

文件共享在 3.2 上确实可以工作,但是有一个小错误,您必须在将 UIFileSharingEnabled 添加到 plist 后删除应用程序,以便让 iTunes 刷新并看到该应用程序现在支持文件共享(重新启动/断开连接不会这样做) )。

File sharing does work on 3.2, but there is a little bug, you have to remove the application after adding UIFileSharingEnabled to the plist in order to get itunes to refresh and see that the app now supports file sharing (rebooting/disconnecting does not do it).

沫离伤花 2024-09-04 04:30:51

我可以确认 valexa 所说的:当我从设备中删除应用程序后,UIFileSharingEnabled 就开始工作。建筑与之后在设备上运行它会使 iTunes 在 iTunes 的文件共享部分识别该应用程序。因此,绝对不需要临时或任何其他“分发”构建。哈!

I can confirm what valexa said: UIFileSharingEnabled started working as soon as I had removed the app from the device. Building & running it on the device afterwards made iTunes recognize the app in the file sharing section of iTunes. So, an ad-hoc or any other 'distribution' build is definitely not needed. HTH!

慈悲佛祖 2024-09-04 04:30:51

看来您还需要设置 CFBundleDisplayName。这就是解决我的问题的方法。请参阅UIFileSharingEnabled 没有效果

It seems you also need to have CFBundleDisplayName set. This is what fixed my problem. See UIFileSharingEnabled has no effect.

椵侞 2024-09-04 04:30:51

我也证实了Valexa的想法。我使用默认的 .plist,它显示

<key>UIFileSharingEnabled</key>
<true/>

多次删除/安装后,iTunes 成功识别了我的应用程序的文件共享功能。

I also confirm Valexa's idea. I use default .plist which shows

<key>UIFileSharingEnabled</key>
<true/>

After Removing/Installing several times, iTunes successfully recognized the File Sharing feature with my app.

久而酒知 2024-09-04 04:30:51

我不知道 UIFileSharingEnabled 是否按照您想象的方式工作。 Apple 提到从 Mail 打开文档是 4.0 的一项功能。设置它应该意味着您的应用程序会显示在 iTunes 的文件部分中。

I don't know if UIFileSharingEnabled works the way you think it does. Apple is mentioning opening documents from Mail as a 4.0 feature. Setting it should mean your app shows up in the file section of iTunes.

暖树树初阳… 2024-09-04 04:30:51

UIFileSharingEnabled 仅当您的应用程序构建为“分发”时才会影响。如果您构建临时版本并安装它,您可以检查您的程序。

UIFileSharingEnabled affects only when your app is built as 'distribution'. If you build ad-hoc version and install it, you can check your program.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文