react-native-linkedin-sdk icon indicating copy to clipboard operation
react-native-linkedin-sdk copied to clipboard

XCode 10.0 Build Error - 'LinkedInSwift/LSHeader.h' file not found

Open oriharellance opened this issue 7 years ago • 4 comments

I followed the instructions in the readme file and eventually I'm unable to build. The error says:

/Users/oriharel/code/anooClient/ios/anooClient-Bridging-Header.h:8:9: error: 'LinkedInSwift/LSHeader.h' file not found
#import <LinkedInSwift/LSHeader.h>
        ^
1 error generated.
<unknown>:0: error: failed to emit precompiled header '/Users/oriharel/Library/Developer/Xcode/DerivedData/Lance-anrxxtniczjpjkenoitpxkjwcwiq/Build/Intermediates.noindex/PrecompiledHeaders/anooClient-Bridging-Header-swift_3J2GZA2SZ1TIW-clang_2D7GARW5XE7QO.pch' for bridging header '/Users/oriharel/code/anooClient/ios/anooClient-Bridging-Header.h'

I'm using XCode 10.0

oriharellance avatar Oct 05 '18 21:10 oriharellance

I also had that issue and I can't remember how I fixed it but just so you know - this library has a lot of issues and is not well maintained (was not updated for almost a year now). I ended up using a pure RN solution for Linkedin opening a WebView (web) for it and it works just fine.

nirpeled avatar Oct 06 '18 00:10 nirpeled

Thanks @nirpeled. The webview solution doesn't leverage the LinkedIn app if that is installed, right?

oriharellance avatar Oct 06 '18 07:10 oriharellance

Yes you're right but then again, I'm pretty sure that the package didn't either - but this is actually Linkedin's fault, as far as I remember, they don't allow it anymore.

nirpeled avatar Oct 06 '18 13:10 nirpeled

@nirpeled They do. Here's an app that does so. http://www.shapr.co/

oriharel avatar Oct 09 '18 08:10 oriharel