Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete filelist? #539

Open
disbelief opened this issue Feb 20, 2025 · 5 comments
Open

Incomplete filelist? #539

disbelief opened this issue Feb 20, 2025 · 5 comments

Comments

@disbelief
Copy link

disbelief commented Feb 20, 2025

I'm using the latest stable version (5.0.5) of InjectionIII installed from github: https://github.com/johnno1962/InjectionIII/releases/tag/5.0.5

Trying to add InjectionIII with HotSwiftUI to an existing app. It has worked previously on a brand new app, but this existing one has many more files in the target.

The app builds fine and InjectIII seems happy in the console:

💉 InjectionIII connected /Users/disbelief/mirror-ios/mirror/mirror.xcodeproj
💉 Watching files under the directory /Users/disbelief/mirror-ios

But when I make a change that should trigger the hot reload I get an error:

💉 Compiling /Users/disbelief/mirror-ios/mirror/mirror/Views/GoalOnboarding/Steps/GoalOnboardingMoodView.swift
💉 ⚠️ Re-compilation failed (see: /Users/disbelief/Library/Developer/CoreSimulator/Devices/EA07B651-A96A-40D3-85A6-31B4B9B1CBD7/data/Containers/Data/Application/7BCC81BC-C0E3-47AC-8EEF-0B42211FC420/tmp/command.sh)
<unknown>:0: error: primary file '/Users/disbelief/mirror-ios/mirror/mirror/Views/GoalOnboarding/Steps/GoalOnboardingMoodView.swift' was not found in file list '/tmp/filelists/GoalOnboardingMoodView.swift'

When I cat the /tmp/filelists/GoalOnboardingMoodView.swift file I see a list of only 44 files and nothing from my codebase at all. In fact it's mostly just some files from a dependent swift package (AlamoFire).

I've tried deleting the filelists dir, a clean build of the app in Xcode, same problem.

@johnno1962
Copy link
Owner

Have you been adding/removing files to your project? The best advice I can give you when you encounter this type of problem is to move to the new version of Injection: https://github.com/johnno1962/InjectionNext. It's largely the same but should be more robust in this situation.

@disbelief
Copy link
Author

Have you been adding/removing files to your project?

No. It's my first time installing InjectIII and HotSwiftUI in this project and I haven't removed any files while doing it. Nothing else in the project has changed.

@johnno1962
Copy link
Owner

The advice would be the same. What version of Xcode is this?

@disbelief
Copy link
Author

XCode version is Xcode 16.2 (16C5032a)

I'm going to try InjectionNext now

@johnno1962
Copy link
Owner

ctd... johnno1962/InjectionNext#40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants