fastlane-old / gym

Building your iOS apps has never been easier
https://fastlane.tools
645 stars 54 forks source link

Error resolving conflict between options: 'workspace' and 'project' #212

Closed dpettit closed 8 years ago

dpettit commented 8 years ago

On "Step: gym" I receive the following error:

///////////////////////////////////////////
[08:09:32]: -------------------------------------------------
[08:09:32]: --- Step: Verifying required fastlane version ---
[08:09:32]: -------------------------------------------------
[08:09:32]: fastlane version valid
[08:09:32]: ------------------------------
[08:09:32]: --- Step: default_platform ---
[08:09:32]: ------------------------------
[08:09:32]: Driving the lane 'ios appstore' 🚀
[08:09:32]: -----------------
[08:09:32]: --- Step: gym ---
[08:09:32]: -----------------
[08:09:32]: Using legacy build system - waiting for radar to be fixed: https://openradar.appspot.com/radar?id=4952000420642816
[08:09:32]: Error resolving conflict between options: 'workspace' and 'project'
[08:09:32]: Variable Dump:
[08:09:32]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios appstore"}
[08:09:32]: You can only pass either a 'workspace' or a 'project', not both

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
| 3    | gym                                 | 0           |
+------+-------------------------------------+-------------+

[08:09:32]: fastlane finished with errors

[!] You can only pass either a 'workspace' or a 'project', not both
///////////////////////////////////

In my fastlane config files, the only place I can see that I'm passing either of these is in the SNAPFILE, where I'm passing the project, not the workspace. Any ideas on what is going on or how to fix? It just started showing up a couple of days ago after my latest fastlane update.

KrauseFx commented 8 years ago

Can you share your Fastfile and a screenshot of your project directory

dpettit commented 8 years ago

Here's my Fastfile:

screen shot 2016-02-15 at 8 35 01 am

And here's my project directory:

screen shot 2016-02-15 at 8 36 12 am

olegoid commented 8 years ago

Thanks for provided information @dpettit, could you also share the contents of your Gymfile?

KrauseFx commented 8 years ago

Ohhh, I missed that there is a Gymfile outside the fastlane folder

armadsen commented 8 years ago

I'm seeing this same thing after updating to the latest version of fastlane today. I'm not specifying a workspace or project either, nor does my project folder contain a .xcworkspace file (other than the one internal to my .xcodeproj folder, of course).

As this has broken builds using fastlane, it'd be nice to know how to workaround it even before the underlying problem is fixed in a fastlane update.

My Gymfile:

scheme "MyApp"

clean true

output_directory "./build"

EDIT:

Adding the following line to my Gymfile fixes it (for anyone else coming across this):

project "./MyApp.xcodeproj"
dpettit commented 8 years ago

My Gymfile: ######################## scheme "tsbook"

use_legacy_build_api true sdk "iphoneos9.2"

clean true

output_directory "/Users/tsdev/Documents/TaleSpring/RandD/TS-Auto-Publish/Output-TS-ipa"

output_name "TheAdventuresofLittleMunch-FirstDay-1.20" ########################

KrauseFx commented 8 years ago

This was fixed with https://github.com/fastlane/fastlane_core/pull/103, we're just about to push a new release. Please update using sudo gem update fastlane_core and let us know if that fixes this issue (Thanks @olegoid)

fastlane-bot-helper commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/1822. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket: