'InvalidOperationException', reason: 'fbauth2 is missing from your Info.plist under LSApplicationQueriesSchemes and is required for iOS 9.0'
Asked Answered
U

4

3

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>
Ungenerous answered 28/10, 2015 at 14:26 Comment(0)
E
5

remove the space after fbauth2

Eellike answered 17/11, 2015 at 13:45 Comment(0)
C
7

Right-click on Info.plist of your app and select "Open as Source Code". Just after the <dict> tag, add the following code:

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>fbauth2</string>
</array>

Now run your app and try signing to Facebook again. Credits to this answer.

Cyclamate answered 20/11, 2015 at 18:39 Comment(0)
E
5

remove the space after fbauth2

Eellike answered 17/11, 2015 at 13:45 Comment(0)
C
0

The versions you mention in your tags are not prepared to handle iOS 9. The solution is to download 4.7.1, latest one as of November 4th, 2015.

Chaqueta answered 4/11, 2015 at 22:57 Comment(0)
W
0

You need to add "fbauth2" in your plist. Just check the difference between your plist file and what they have given in the sample folder.

You need to add "LSApplicationQueriesSchemes" array with 4 string values. Please check samples for reference.

It is the exact solution.

Waxwork answered 9/11, 2015 at 12:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.