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 containing project or it's logs. Have you customised the DerivedData path? *** #50

Closed
KirtyKumari opened this issue Oct 3, 2018 · 6 comments

Comments

@KirtyKumari
Copy link

KirtyKumari commented Oct 3, 2018

Hi John,
I am trying to use latest injectionIII app that has been updated on Friday 28th Sept version 1.2.
I have created a sample Mac app project and its inside home directory ,
Injection and xCode both are in /Applications.
still I am getting below error whenever I save a file in my project.

*** Could not locate containing project or it's logs.
Have you customised the DerivedData path? ***

I really want to use this app to escape from the build time in latest xCode, Please help.

@KirtyKumari KirtyKumari changed the title ** *** Could not locate containing project or it's logs. Have you customised the DerivedData path? *** *** Could not locate containing project or it's logs. Have you customised the DerivedData path? *** Oct 3, 2018
@KirtyKumari
Copy link
Author

KirtyKumari commented Oct 5, 2018

Hi John (@johnno1962) ,
I tried running the injection app using code also,
In "InjectionServer.mm" file in runInBackground method the value of project file and derived logs were not proper, so I hardcoded the directory path. Now the injection is getting connected successfully.

But again in the findCompileCommand method in SwiftEval.swift
the shell method is returning false as it is unable to locate the compile command.
That is what getting printed in client also "Could not locate compile command" ,

I have checked the previous issues regarding this and found the compilation mode should be set as "Incremental. But its already Incremental in my client project.

Please let me know if I am doing something wrong in setting up both the projects, or are there any other limitations that I am missing.

@johnno1962
Copy link
Owner

johnno1962 commented Oct 5, 2018

Do you have non alphanumeric characters in your project path?

@KirtyKumari
Copy link
Author

KirtyKumari commented Oct 8, 2018

Hi @johnno1962
This is the current project path.
/Users/kirty-xxxxx/GitProjects/TaskViewApp
xxxx are numeric characters

But I tried changing it to
/Users/Shared/TaskViewApp still I was getting the same issue.

Along with this I changed the derived data path also to /Users/Shared and hardcoded both the value in "InjectionServer" file.

@johnno1962
Copy link
Owner

Derived data must use the default so it can be found. Do you want to TeamView this? send your details to injection at johnholdsworth.com if so and I can take a look.

@KirtyKumari
Copy link
Author

I am afraid, it won't be possible. Will try to work this out and let you know.
Thanks @johnno1962

@johnno1962
Copy link
Owner

You’ll have difficulty getting DerivedData working other than at the standard location. The message you’re seeing is coming from the InjectionBundle which makes it’s own attempt to find DerivedData in Swift which you need to patch. https://github.com/johnno1962/InjectionIII/blob/master/InjectionBundle/SwiftEval.swift#L514

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