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

Scheme tvOS is not currently configured for the build action. #754

Closed
avalanched opened this issue Sep 14, 2015 · 18 comments
Closed

Scheme tvOS is not currently configured for the build action. #754

avalanched opened this issue Sep 14, 2015 · 18 comments

Comments

@avalanched
Copy link
Contributor

My cartfile generates the following error on 0.9.1

Scheme Result-tvOS is not currently configured for the build action.

cartfile:

github "Alamofire/Alamofire" >= 2.0
github "neilpa/Rex" "explicit-rac-dep"

resolved:

github "Alamofire/Alamofire" "2.0.0"
github "antitypical/Result" "0.6-beta.1"
github "ReactiveCocoa/ReactiveCocoa" "5e75726bf232b76b17169b3d9c9c64d1fd6bffbe"
github "neilpa/Rex" "bf1a994f330582179167cf325385eaf31177f040"

I'm not using any tvOS scheme in my project.
Seems that 0.8.0 doesn't experience that error: RACCommunity/Rex#31 (comment)

@NachoSoto
Copy link
Contributor

Are you building with Xcode 7.0 or 7.1?
7.0 won't understand the tvOS scheme (which you can filter out by using the --platform setting)

@neilpa
Copy link
Member

neilpa commented Sep 14, 2015

That's the problem, the --platform ios doesn't seem to be working when building with Xcode 7.0

@neilpa
Copy link
Member

neilpa commented Sep 14, 2015

At least not on 0.9.1. I was able to build on 0.8.0 just fine though.

@avalanched
Copy link
Contributor Author

I indeed used the platform filter, was building with 7.0 GM

@NachoSoto
Copy link
Contributor

xcodebuild: error: Scheme Result-tvOS is not currently configured for the build action.

I wonder if Carthage is parsing all schemes before filtering for the specified platform/s, so failing early because Xcode 7.0 can't parse the tvOS scheme.

@ikesyo
Copy link
Member

ikesyo commented Sep 15, 2015

The situation seems to be similar to #704 and #704 (comment).

@mdiep
Copy link
Member

mdiep commented Sep 15, 2015

I'm not seeing that, although I do get a puzzling error about Result-watchOS. 😕

@ikesyo
Copy link
Member

ikesyo commented Sep 15, 2015

although I do get a puzzling error about Result-watchOS.

That would be related to antitypical/Result#78.

@NachoSoto
Copy link
Contributor

Okay I think I see the problem.
Xcode 7.0 is defaulting to "OSX" when it can't understand tvOS in the target settings:
screen shot 2015-09-14 at 19 24 28

So Carthage is picking it up...

@mdiep
Copy link
Member

mdiep commented Sep 15, 2015

I'm not sure what to do about this. Does anyone have a good idea?

@ikesyo
Copy link
Member

ikesyo commented Sep 15, 2015

I'm not sure too...

Regarding to #754 (comment), if we use --platform mac, the following error appears:

xcodebuild: error: Failed to build project Result with scheme Result-tvOS.
    Reason: The run destination My Mac is not valid for Running the scheme 'Result-tvOS'.
A shell task failed with exit code 70:
xcodebuild: error: Failed to build project Result with scheme Result-tvOS.
    Reason: The run destination My Mac is not valid for Running the scheme 'Result-tvOS'.

@NachoSoto
Copy link
Contributor

Right, this only happens when building for Mac (thus why I never saw this) because Xcode defaults the unknown platform to Mac...

We'll have to take the schemes out for now.

@ikesyo
Copy link
Member

ikesyo commented Sep 15, 2015

Regarding to the original error Scheme Result-tvOS is not currently configured for the build action., that would happen when:

  1. There is Result-tvOS scheme in the project.
  2. But Result-tvOS target does not exist in the project.

@avalanched
Copy link
Contributor Author

Shouldn't carthage ignore shemes as well if the don't fall in to the platform filter?

@zhuhaow
Copy link

zhuhaow commented Sep 16, 2015

Maybe carthage can detect the target platform by Base SDK, it seems that the tvOS uses 'appletvos' and Xcode 7.0 is not changing it.

@mdiep
Copy link
Member

mdiep commented Nov 17, 2015

This shouldn't be a problem with Xcode 7.1+.

@mdiep mdiep closed this as completed Nov 17, 2015
@aterribili
Copy link

aterribili commented Nov 23, 2016

It's still happening on xCode 8.0 😢 , but I got the message when trying to carthage update --use-ssh:

xcodebuild: error: Scheme SnapKit tvOS is not currently configured for the clean action

@ikesyo
Copy link
Member

ikesyo commented Nov 23, 2016

@aterribili What you said is clearly the duplicate of #1542.

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

7 participants