-
Notifications
You must be signed in to change notification settings - Fork 492
Fixes problems loading information about workspaces #27
Conversation
@jamiely I’ve run into this problem as well, but this solution might be problematic. Assume you have both a FooBar.xcodeproj and a FooBar.xcworkspace file in the directory you’re running this from (very common use case, especially with CocoaPods). When you run The ultimate issue is The best solution is to not check that the configuration isn’t in the list of available configurations. This check isn’t needed because |
Sorry to be late to the party. What's the consensus on this, @jamiely & @codecaffeine? Should this patch be merged, or is there another fix to use? |
@codecaffeine has a good point. I think that should resolve the issue. |
Unfortunately, The other option I’ve played around with is parsing the workspace file ( |
Running into this problem too; ultimately, I think if a workspace and scheme are specified, then configurations are completely irrelevant as they are specified by the scheme. I think shenzhen is trying to be too clever for its own good and is essentially trying to duplicate the logic of what combinations of project/workspace/scheme/configuration are valid - it should just past options into xcodebuild and let xcodebuild fail if the wrong options are supplied IMO. |
Its worth pointing out that this was already fixed once in #13 |
I agree with @lukeredpath because |
The downside with the above change is we lose the configuration reference in Build Output Info:
becomes
|
Hrmm. Just running shenzhen with ba9ec07, I really dislike not knowing what the configuration is. Any other thoughts? |
Maybe saying something like "using default configuration [for scheme]" would be reassuring? On 21 May 2013, at 16:02, Matt Thomas notifications@github.com wrote:
|
Does 'xcodebuild [opts] -showBuildSettings' provide anything more useful? Sent from my iPhone On 21 May 2013, at 16:02, Matt Thomas notifications@github.com wrote:
|
It There is a quirk, though. If you have a unit testing target tied to the scheme, it’ll show the build setting for both the app target and the unit testing target. |
In 260d804, I’m gathering the build settings before we set the configuration variable. That way we can set it to the build setting
|
FYI, 260d804 has a bug with PackageApplication if you override the default configuration. I’m still investigating |
@codecaffeine Alright. Keep me posted, and let me know when the pull request is ready to be merged in. |
@mattt I’ve been running with this change for the past week without issue. I do wonder if there’s a good way to add some sort of testing to Shenzhen. |
Really sorry for how long this took to merge in, @codecaffeine. 6208ad8 is finally in master. Cutting a new release as soon as I clear out the rest of the open issues. Thanks! |
Hah, no worries! You have a lot going on. asciiwwdc.com alone is worth the wait |
Use configuration if passed, otherwise find the default configuration from build setting Conflicts: lib/shenzhen/commands/build.rb
Use configuration if passed, otherwise find the default configuration from build setting Conflicts: lib/shenzhen/commands/build.rb
There are problems that occur because xcodebuild -list -workspace FILE only returns scheme information