jodybrewster / react-native-linkedin-login

React Native Linkedin login
71 stars 42 forks source link

fix xcode compile issue which cause header file not found #32

Closed allenwei closed 6 years ago

allenwei commented 6 years ago

I have same issue with https://github.com/jodybrewster/react-native-linkedin-login/issues/26

Then I figure out there are two problems in xcode project.

  1. Project file broken, see this screenshot, the red color on the folder rctlinkedinlogin_xcodeproj_and_rctlinkedinlogin_xcodeproj

  2. Missing header file when compile. When xcode compile, need copy header file into "include" folder. but the project didn't have such config It correct result will be rctlinkedinlogin

So I made two changes

  1. Re-add RCTLinkedinLogin folder into xcode project, it will fixed 1)
  2. Copy header file in Build Phases, see this attachment rctlinkedinlogin_xcodeproj