-
Notifications
You must be signed in to change notification settings - Fork 238
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
Slather doesn't look for schemes in workspace #191
Comments
If I don't set Scheme, I got the following:
|
The xcodeproj gem doesn't support reading schemes from workspaces, as far as I know. At this time you need to use a scheme in the project for it to be read. |
Ok, I see. Do you know, why do we have |
Xcode computes its derived data path based a combination of the scheme and workspace. Many people use CocoaPods with a workspace but define schemes in the project, so passing both is necessary for slather to work automatically. |
And maybe you know, if there is a way to point to coverage file and binary file without playing around project/workspace/scheme? |
Take a look at |
I've tried, it's looking to project anyway and got this As for this issue (looking for scheme in project, not in workspace) I have 2 thoughts:
schemes_path = Xcodeproj::XCScheme.shared_data_dir(self.path)
xcscheme_path = "#{schemes_path + self.scheme}.xcscheme" But in workspace folder I also see these files:
These just my thoughts, I'll come back as soon as I got some time. |
Im getting the same thing about my scheme existing. Running this command in the root of my project. This was working before updating.
|
What about such fix? if self.workspace
projectOrWorkspace = self.workspace
else
projectOrWorkspace = self.path
end
schemes_path = Xcodeproj::XCScheme.shared_data_dir(projectOrWorkspace) Works fine for me, should I make a PR? |
If that gets things working then a PR is definitely welcome. |
@yakimant Any progress on this? |
@joshrlesch, I'm new to slather code. This was a preliminary solution, which worked for me. |
Should be fixed in #193. |
Thank you, @ksuther! |
I run slather like this:
And got this:
It looks like it doesn't look for schemes inside workspace, only in project (find_binary_file method).
Here is my configuration:
The text was updated successfully, but these errors were encountered: