Google Sign In not working on iOS 10 Beta 7 with Xcode 8 beta 6

前端 未结 7 2436
后悔当初
后悔当初 2020-12-15 09:30

I have an app in the app store which worked perfectly fine till first few betas of iOS 10 (i am not exactly sure which one). It also works perfectly fine on iOS 9.3.

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-15 09:53

    I am not sure if this is what other people are facing but I solved it by adding a [self.view layoutIfNeeded]. I know this is weird but this is what worked for me, I am myself not sure why.

    I was using a custom view container inside which I was showing the Google's sign in view controller as a child. So before adding the custom view controller to the container, i had to do [self.view layoutIfNeeded] as else the view layout hadn't been set yet, so google's sdk probably uses the width/height somewhere inside.

    I am not sure if this is the right solution but it seems to have fixed my issue.

提交回复
热议问题