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

Invalid xcodebuild command execution on Xcode Bots CI #14

Open
Antondomashnev opened this issue Jan 4, 2017 · 4 comments
Open

Invalid xcodebuild command execution on Xcode Bots CI #14

Antondomashnev opened this issue Jan 4, 2017 · 4 comments

Comments

@Antondomashnev
Copy link

Hi, thanks for the plugin, I've just tried to integrate it with my project and using the Xcode Bots CI + @buildasaur, and the danger trigger failed with the following log:

Skipping file blacklisting as no ignore file was found at path
xcodebuild -list -workspace ios-merchant.xcworkspace�
xcodebuild clean -showBuildSettings -workspace ios-merchant.xcworkspace -scheme AFNetworking�

As I can see here it's trying to build the AFNetworking scheme although in the dangerfile I specified to build another one:

xcov.report(
   scheme: 'ios-merchant-staging',
   workspace: 'ios-merchant.xcworkspace',
   minimum_coverage_percentage: 50
)

@nakiostudio any idea? 😄

@nakiostudio
Copy link
Collaborator

Hi @Antondomashnev 👋

I'm really sorry for the delay in my response, for some reason I wasn't subscribed to the notifications for this repository. It's probably not helpful for you now but I would say that the problem is that the scheme ios-merchant-staging is not marked as shared.

The xcodebuild command you see is not building the scheme but fetching the build settings.

Thanks for reporting 👍

@Antondomashnev
Copy link
Author

@nakiostudio hey, thanks for the reply 👍
Apparently, it was shared, so do you think there could be any other reason?

@nakiostudio
Copy link
Collaborator

I think xcodebuild couldn't find the scheme ios-merchant-staging and therefore the selection was defaulted to the first option available, in this case AFNetworking. Why the scheme couldn't be found it's hard to guess without the project settings :(

@Antondomashnev
Copy link
Author

@nakiostudio ok, I've started using slather and it worked, but I will try to try xcov once again and if the problem persists I will share the build settings 😉
Thanks for you help, anyway.

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