त्रुटि स्थिति 10,814 मूल रूप से तब होता है जब cantOpenUrl
, जो facebook
द्वारा किया जाता है तर्कों का उपयोग url
कॉल करने के लिए fbauth2:/ जैसा कि इस thread bt का सुझाव दिया, मुद्रण इस समारोह के अंदर होता है तो आप कुछ भी नहीं कर सकते कि
एप्पल के साथ ज्यादा आईओएस 10.To के साथ काम कर इस समस्या को हल का तरीका ही बदल आप
लक्ष्य> क्षमताओं पर जा सकते हैं > सक्षम Keychain
, साझा करना
यहाँ एक ही धागा ऊपर
जुड़ा हुआ से एक स्क्रीनशॉट इस पोस्ट में तैनात रूप में मंचों की developor मुद्दों
समस्या FBSDLoginManager साथ है समापन हैंडलर को कभी भी
so in debuging, the author put the breakpoint in "FBSDKLoginManager.m" at "logInWithBehavior: (FBSDKLoginBehavior)loginBehavior" and findout that weakSelf getting nil and not be able to call "logInWithBehavior: serverConfiguration: serverConfigurationLoadError:"
नहीं कहा जाता है
- (void)logInWithBehavior:(FBSDKLoginBehavior)loginBehavior
{
__weak __typeof__(self) weakSelf = self;
[FBSDKServerConfigurationManager loadServerConfigurationWithCompletionBlock:^(FBSDKServerConfiguration *serverConfiguration, NSError *loadError) {
[weakSelf logInWithBehavior:loginBehavior serverConfiguration:serverConfiguration serverConfigurationLoadError:loadError];
}];
}
समाधान 1:
Change FBSDKLoginManager variable as property rather than using as function variable. Make sure, FBSDKLoginManager variable must remain alive until the completion handler call
आप चालू कर सकते हैं -Wimplicit-बनाए रखने आत्म चेतावनी आप स्वयं संदर्भ यदि एक ब्लॉक में गलती से एक चेतावनी प्राप्त करने के लिए।Github issues
समाधान में प्रकाशित किया गया था 2:
आप अपने plist करने के लिए इन जोड़ सकते हैं
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>akamaihd.net</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
<key>facebook.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
<key>fbcdn.net</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
</dict>
</dict>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
और भी AppDelegate बदलने के द्वारा सुझाए गए के रूप में
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return SDKApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
}
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool
{
return SDKApplicationDelegate.shared.application(app, open: url, options: options)
}
इस प्रकार है author इस के बाद आप अपने swift3, एसडीके, ios10पर XCode8
इसके अलावा द्वारा उल्लेख के रूप में जाँच चला सकते हैं author अगर गूगल एनालिटिक्स
सेट करके अपने दृश्य नियंत्रक के शीर्ष पर अपने स्वयं के नियंत्रक जोड़ने था
Setting "FirebaseAppDelegateProxyEnabled" to "NO" in the -Info.plist solved the problem.
।
Full attribution goes to the forum and the authors mentioned in the forum
मैंने पहले से ही यह किया है, लेकिन हल नहीं किया गया है। –
आपके सिम्युलेटर पर आपके पास कोई फेसबुक ऐप इंस्टॉल नहीं है, इसलिए यह त्रुटि आपको सूचित करती है कि आईओएस इसे नहीं ढूंढ सकता है। इस मामले में आपको एक वेब-आधारित लॉगिन विंडो देखना चाहिए। –
क्या आप वेब आधारित लॉगिन दृश्य चलाने के लिए उसमें सहायता कर सकते हैं। क्या होता है: मैं ऐप चलाता हूं, फेसबुक बटन दबाता हूं। एक वेब आधारित दृश्य खुलता है और बताता है कि आप इस ऐप के लिए पहले से ही फेसबुक में लॉग इन हैं। फिर मैं ठीक क्लिक करता हूं, बंद करता हूं और फेसबुक प्रतिक्रिया त्रुटि 308 आता है। कोई मदद? –