本文介绍了'InvalidOperationException',原因:在您的Info.plist中缺少LSApplicationQueriesSchemes的fbauth2,并且是iOS 9.0“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在将此标记为重复之前,请注意,我已经在相关问题中尝试了所有解决方案。当我点击我的应用程序的Facebook登录按钮时,该应用程序崩溃,出现此错误 2015-10-28 18:31 :05.277 retailcatalogue [96362:2057887] ***由于未捕获的异常'InvalidOperationException'终止应用程序,原因是:您的Info.plist在LSApplicationQueriesSchemes下缺少fbauth2,并且是iOS 9.0
我查看了可用的解决方案,并更新了我的info.plist,但它仍然不起作用。请帮忙,谢谢!
我的info.plist
< key> LSApplicationQueriesSchemes< /密钥>
< 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-messenger-api20140430< / string>
< string> fb-messenger-platform-20150128< / string>
< string> fb-messenger-platform-20150218< / string>
< string> fb-messenger-platform-20150305< / string>
< / array>
解决方案
删除fbauth2后面的空格
Before you mark this as duplicate, please note that I have already tried all the solutions in the related questions. When I click on the Facebook login button on my app, the app crashes with this error
2015-10-28 18:31:05.277 retailcatalogue[96362:2057887] *** Terminating app due to uncaught exception 'InvalidOperationException', reason: 'fbauth2 is missing from your Info.plist under LSApplicationQueriesSchemes and is required for iOS 9.0'
I looked at the available solutions and updated my info.plist but it still doesn't work. Please help, thanks!
My 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-messenger-api20140430</string>
<string>fb-messenger-platform-20150128</string>
<string>fb-messenger-platform-20150218</string>
<string>fb-messenger-platform-20150305</string>
</array>
解决方案
remove the space after fbauth2
这篇关于'InvalidOperationException',原因:在您的Info.plist中缺少LSApplicationQueriesSchemes的fbauth2,并且是iOS 9.0“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!