title: Why does React Native linking lead to workspace integrity error?
body: <p>I have troubles with the development of a React Native app.</p>
  
  <p>I have developed a native module and a native ui component.</p>
  
  <p>Finally, I would like to publish both as a NPM module.</p>
  
  <p>However, when I tried to integrate the native module and the native ui as NPM package into a (new) React Native app (for example created with <code>react-native init</code> command), I first got the following error <code>Invariant Violation requireNativeComponent ComponentName was not found in UIManager</code>. According to some GitHub issues this might be a problem with missing linking.</p>
  
  <p>So I decided to run <code>react-native link</code>. However, by doing this the situation got even worse, because from that point on I got the following error <code>Workspace Integrity Error - Couldn't load project</code> for all the RCT libraries.</p>
  
  <p><a href="https://i.stack.imgur.com/HkyYN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HkyYN.png" alt="Error messages"></a></p>
  
  <p>I already followed the instructions of other Stackoverflow posts regarding that topic, which describe how to investigate the <code>.pbxproj</code> file. Further, I tried to reinstall the pods of my npm package. Finally, I ensured that I use the <code>.xcworkspace</code> file and not the <code>.xcodeproj</code> file. </p>
  
  <p>However, the errors still persist.</p>