-
Notifications
You must be signed in to change notification settings - Fork 737
Collect xcodebuild error in buildSettingsForATarget #295
Comments
Interestingly, the same version of XCTool, locally produces a proper error.
Confused. |
Have you checked whether you ignore the scheme in .gitignore. |
@revier This isn't about fixing the issue, it's about xctool not displaying the error. |
Confirming in https://travis-ci.org/clearkeep/CKDesktop Is it inability in finding the scheme? why is the error not populating? edit: the build command for travis includes a script calling: xctool -workspace "./Clear Keep/Clear Keep.xcworkspace" -scheme "Clear Keep" build test When called locally, it works. When called on travis, it hangs. |
Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed. |
So the bug @dblock found is actually in xcodebuild which hangs when non-existing (read not available for a current user) scheme is passed. That is why we weren't populating any error. I've moved forward and changed the way xctool searches for schemes and then validates them. Now it will look only for a currently logged in user schemes ( |
Thanks @ExtremeMan, glad this wasn't closed automagically. |
@ExtremeMan I read the fix and I believe you fixed the issue that caused this to happen but not the fact that when something like this happens there's no error. Xcode will hang if no schemes are found I think, but I haven't confirmed. |
@dblock, right, Xcode will hang, but we will not call to xcodebuild and catch the error here: https://github.com/facebook/xctool/blob/master/xctool/xctool/Options.m#L490-L512. |
Took me a while to figure this one out, trying to add a Travis-CI build to https://github.com/dblock/ios-snapshot-test-case-expecta.
Project build succeeds locally. Also succeeds on a different machine with a clean checkout.
Travis build fails with:
It says "Failed while trying to gather build settings for your scheme; tried with actions: build, test, analyze."
After some digging, added
SHOW_ONLY_BUILD_SETTINGS_FOR_FIRST_BUILDABLE=YES DYLD_INSERT_LIBRARIES=/usr/local/Cellar/xctool/0.1.14/libexec/lib/xcodebuild-fastsettings-shim.dylib /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild test -showBuildSettings -project FBSnapshotTestCaseDemo/FBSnapshotTestCaseDemo.xcodeproj -scheme FBSnapshotTestCaseDemo
to Travis and saw this:This is the real problem, the schemes were not shared in the project, both of my machines have the same username, but Travis obviously has another.
The error above is what should be raised in https://github.com/facebook/xctool/blob/master/xctool/xctool/XcodeSubjectInfo.m#L764, probably means reading stderr.
The text was updated successfully, but these errors were encountered: