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

Could not locate compile commant #523

Open
bradwrage opened this issue Oct 29, 2024 · 5 comments
Open

Could not locate compile commant #523

bradwrage opened this issue Oct 29, 2024 · 5 comments

Comments

@bradwrage
Copy link

Hello, I'm getting this issue on trying to build. Any help would be appreciated.

💉 ⚠️ Could not locate compile command for "/Users/bwrage/Downloads/_iosprojects/resonate/Resonate/ContentView.swift" in /Users/bwrage/Library/Developer/Xcode/DerivedData/Resonate-dyzvolnsdrlrhycfbklwrclpcpbb/Logs/Build/.
This could be due to one of the following:

  1. Injection does not work with Whole Module Optimization.
  2. There are restrictions on characters allowed in paths.
  3. File paths in the simulator are case sensitive.
  4. The modified source file is not in the current project.
  5. The source file is an XCTest that has not been run yet.
  6. Xcode has removed the build logs. Edit a file and re-run
    or try a build clean then rebuild to make logs available or
@johnno1962
Copy link
Owner

johnno1962 commented Oct 29, 2024

Hi, can you try moving the project out of the "Downloads" folder? That sometimes causes problems. Also you seem to be running a older version of injection otherwise I would also suggest trying https://github.com/johnno1962/InjectionNext

@Virusboo
Copy link

I have updated the latest version(5.0.5), pre release for Xcode 16, but the following issues have occurred:

💉 ⚠️ Re-compilation failed (see: /Users/zhaobo/Library/Developer/CoreSimulator/Devices/A8B04523-7D04-4C25-91AD-A8E98F02253F/data/Containers/Data/Application/E5B25F01-0B65-41E6-A775-0417D489A334/tmp/command.sh)
error: PCH was compiled with module cache path '', but the path is currently '/Users/zhaobo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9LYMVTQ65MHE'
1 error generated.

Hi, can you try moving the project out of the "Downloads" folder? That sometimes causes problems. Also you seem to be running a older version of injection otherwise it would also suggest trying https://github.com/johnno1962/InjectionNext

@johnno1962
Copy link
Owner

Hi, When this starts happening it can be difficult to resolve. Have you tried a clean build? Have you tried the new https://github.com/johnno1962/InjectionNext

@Matthew1874
Copy link

I have updated the latest version(5.0.5), pre release for Xcode 16, but the following issues have occurred:

💉 ⚠️ Re-compilation failed (see: /Users/zhaobo/Library/Developer/CoreSimulator/Devices/A8B04523-7D04-4C25-91AD-A8E98F02253F/data/Containers/Data/Application/E5B25F01-0B65-41E6-A775-0417D489A334/tmp/command.sh) error: PCH was compiled with module cache path '', but the path is currently '/Users/zhaobo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9LYMVTQ65MHE' 1 error generated.

Hi, can you try moving the project out of the "Downloads" folder? That sometimes causes problems. Also you seem to be running a older version of injection otherwise it would also suggest trying https://github.com/johnno1962/InjectionNext

I also have the same issue (PCH was compiled with module cache path '', but the path is currently ) in XCode 16 with InjectionIII, and it resolve use InjectionNext in XCode 16.
So you can try to use InjectionNext fix this issue.

@johnno1962
Copy link
Owner

For this "error: PCH was compiled with module cache path... "problem I've uploaded a new 5.0.6 release candidate.
https://github.com/johnno1962/InjectionIII/releases/tag/5.0.6RC1
If someone finds this does or doesn't resolve the problem could they let me know please!

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

4 participants