jodybrewster / react-native-linkedin-login

React Native Linkedin login
71 stars 42 forks source link

IOSLinkedInAPI main thread issue. #17

Closed tauqeer-ahmad closed 7 years ago

tauqeer-ahmad commented 7 years ago

I was getting an error on IOS "Accessing _chachedSystemFence needs main thread". this only happens when user login and perform some tasks e.g (post some thing to server) and then logout. After logout if he tries to login again this above error popped.

To fix this I have update my pods for IOSLinkedInAPI https://github.com/tauqeer-ahmad/IOSLinkedInAPI/blob/master/IOSLinkedInAPI/LIALinkedInHttpClient.m

+dispatch_sync(dispatch_get_main_queue(), ^{ [self.presentingViewController presentViewController:nc animated:YES completion:nil]; +}); to get the main thread.

I'm looking for a way to specify my forked repo path for IOSLinkedInAPI in react-native-linkedin-login podspecs. Any ideas?

jodybrewster commented 7 years ago

I've removed cocoapods entirely in the latest so hopefully this helps.