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.
With the advent of Xcode 11, I started seeing this error:
error: module importing failed: invalid token (rlm_lldb.py, line 37) File "temp.py", line 1, in <module>
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.
I realized then that I was getting this error for every app on every device, including the simulator.
I tried going back and re-ran all of the code to remove CocoaPods, and it seems like it is really removed.
There are still some Realm files on my computer, most notably:
~Library/Application Support/Realm/rlm_lldb.py~Library/Application Support/Developer/Shared/Xcode/Plug-ins/RealmPlugin.xcplugin
When I delete those files (by renaming and moving them), I still get an error every time I run any app on any device:
error: module importing failed: invalid pathname
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.
EDIT:It was suggested that this is the same issue as:Remove Realm Model Object from Xcode
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 ~/.lldbinit
. But there is no explanation of how to edit ~/.lldbinit
or suggestion that it worked at all.
I actually think that editing ~/.lldbinit
might help, but I have no idea how that might be done.