title: Removed Realm, but still getting this error: module importing failed: invalid token (rlm_lldb.py, line 37) File "temp.py", line 1,
body: <p>I tried using Realm with Cocoapods in a project two years ago. Realm didn't work out, so I removed it. Cocoapods didn't work out, so I eventually removed that as well and switched to Carthage.</p>
  
  <p>With the advent of Xcode 11, I started seeing this error:</p>
  
  <pre><code>error: module importing failed: invalid token (rlm_lldb.py, line 37) File "temp.py", line 1, in &lt;module&gt;
  </code></pre>
  
  <p>It didn't seem to cause any crashes, so I stupidly ignored it. Last night I ran an app on an iPod Touch Generation 6 running the latest iOS 12 (12.4.3). The app crashed with this error.</p>
  
  <p>I realized then that I was getting this error for every app on every device, including the simulator.</p>
  
  <p>I tried going back and re-ran all of the code to remove CocoaPods, and it seems like it is really removed.</p>
  
  <p>There are still some Realm files on my computer, most notably:</p>
  
  <pre><code>~Library/Application Support/Realm/rlm_lldb.py
  
  ~Library/Application Support/Developer/Shared/Xcode/Plug-ins/RealmPlugin.xcplugin
  </code></pre>
  
  <p>When I delete those files (by renaming and moving them), I still get an error every time I run any app on any device: </p>
  
  <pre><code>error: module importing failed: invalid pathname
  </code></pre>
  
  <p>Something is still looking for those files, but it doesn't even know their name. So I put the files back, and I am back to the original error.</p>
  
  <p>EDIT:
  It was suggested that this is the same issue as:
  <a href="https://stackoverflow.com/questions/57385022/remove-realm-model-object-from-xcode">Remove Realm Model Object from Xcode</a></p>
  
  <p>I do not have the Realm Object Model in my Xcode, even though I am getting the same error. The solution to that question did not address my situation at all. There is another comment that may be helpful to this issue, and that is to edit <code>~/.lldbinit</code>. But there is no explanation of how to edit <code>~/.lldbinit</code> or suggestion that it worked at all.</p>
  
  <p>I actually think that editing <code>~/.lldbinit</code> might help, but I have no idea how that might be done.</p>