오류 상태 10,814는 기본적으로 발생 fbauth2 : 당신은 아무것도 할 질수 있도록이 .as이 thread BT는 제안/는 인쇄이 함수 내에서 발생 그
애플 많은 당신이
대상> 기능에 갈 수이 문제를 해결 IOS 10.To 작업의 방식을 변화 >Keychain
에서,이 게시물에 문제가 FBSDLoginManager 함께 포럼의 developor 문제
을 게시 여기
이
위에 링크 된 동일한 스레드에서 스크린 샷입니다 공유 활성화 완료 핸들을 호출하지 않음
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>
에 의해 제안
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)
}
을 다음과 같이 또한 AppDelegate에 변경 author이 후에는
는 또한에 의해 언급으로 확인 에 XCode8 당신의 swift3, SDK, ios10를 실행할 수3210 authorGoogle 웹 로그 분석이
을 설정하여 뷰 컨트롤러의 상단에 자신의 컨트롤러를 추가하는 경우
Setting "FirebaseAppDelegateProxyEnabled" to "NO" in the -Info.plist solved the problem.
.
Full attribution goes to the forum and the authors mentioned in the forum
이미 완료했지만 문제가 해결되지 않았습니다. –
Simulator에 설치된 Facebook 앱이 없으므로이 오류는 iOS가 찾을 수 없음을 알려줍니다. 이 경우 웹 기반 로그인 창이 표시됩니다. –
웹 기반 로그인보기를 실행하는 데 도움을 줄 수 있습니까? 결과는 다음과 같습니다. 앱을 실행하고 facebook 버튼을 누릅니다. 웹 기반보기가 열리고 이미이 앱의 페이스 북에 로그인했음을 알립니다. 그런 다음 확인을 클릭하고 닫기를 클릭하고 Facebook 응답 오류 308이 표시됩니다. 도움이 필요하십니까? –