InjectionIII: `No such file or directory` for file that's been removed
I’m running the latest version of InjectionIII (according to update check).
I inject using:
#if DEBUG
if UserDefaults.standard.bool(forKey: "LiveReload") {
Bundle(path: "/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle")?.load()
}
#endif
It’s been working out great. However, now I rebased my branch and I get:
💉 ⚠️ Re-compilation failed (see: /Users/..../Developer/CoreSimulator/Devices/4D65F726-460C-4C93-B56C-084EC06B9E18/data/Containers/Data/Application/920CD13C-4F83-4937-B915-2ABD5BE5BFD1/tmp/command.sh)
<unknown>:0: error: error opening input file '/Users/.../SomeSwitch.swift' (No such file or directory)
When I rebased, I got a change that removed SomeSwitch.swift and I can’t find any references to SomeSwitch.swiftanywhere.
If I open /Users/david/Library/Developer/CoreSimulator/Devices/4D65F726-460C-4C93-B56C-084EC06B9E18/data/Containers/Data/Application/920CD13C-4F83-4937-B915-2ABD5BE5BFD1/tmp/command.sh and then open the filelist.txt that’s part of that I get like 1022 files. But in my project I have 1024 files. So it feels like Injection’s file-list is out of sync with the Xcode-project I’m building?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 27 (12 by maintainers)
Hallelujah! In theory it should choose either relative or the main DerivedData on the basis of which has the most recently modified logs so something is not quite right there but if you’re up and running again that’s great! The icon colours are: Blue - disconnected, Orange collected but idle, Green compiling/injecting, Yellow - an error.