xcode IOS 10/plist/LS应用程序查询方案

23c0lvtd  于 2023-06-07  发布在  iOS
关注(0)|答案(2)|浏览(162)

我一直收到一个“这个应用程序是不允许查询方案fb”错误时,试图打开Facebook从我的应用程序。
Apple在9.0中显然需要LSApplication中的plist条目用于url方案,以实现canOpenURL方法。运行IOS10.3,我在Plist中看不到LSapplication选项。
苹果更改了plist键吗?提前感谢您的任何建议。

vzgqcmou

vzgqcmou1#

右击info.plist文件,然后将其作为源代码打开。
请在下面的代码里面。

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>fbapi</string>
    <string>fbapi20130214</string>
    <string>fbapi20130410</string>
    <string>fbapi20130702</string>
    <string>fbapi20131010</string>
    <string>fbapi20131219</string>
    <string>fbapi20140410</string>
    <string>fbapi20140116</string>
    <string>fbapi20150313</string>
    <string>fbapi20150629</string>
    <string>fbauth</string>
    <string>fbauth2</string>
    <string>fb</string>
    <string>fb-messenger-api20140430</string>
    <string>fb-messenger-platform-20150128</string>
    <string>fb-messenger-platform-20150218</string>
    <string>fb-messenger-platform-20150305</string>
    <string>fb-messenger-api</string>
    <string>fbshareextension</string>
</array>

你的信息.plist会看到这样的。

如果有任何疑问请告诉我。

twh00eeo

twh00eeo2#

在plist中尝试Queried URL Schemes

相关问题