Skip to content
This repository has been archived by the owner on Oct 2, 2018. It is now read-only.

Fix building tvOS apps #195

Merged
merged 1 commit into from
Jan 28, 2016
Merged

Fix building tvOS apps #195

merged 1 commit into from
Jan 28, 2016

Conversation

tmm1
Copy link
Contributor

@tmm1 tmm1 commented Jan 26, 2016

This lets gym build tvos apps

@@ -62,7 +62,7 @@ def self.detect_scheme
# Is it an iOS device or a Mac?
def self.detect_platform
return if Gym.config[:destination]
platform = Gym.project.mac? ? "OS X" : "iOS" # either `iOS` or `OS X`
platform = Gym.project.mac? ? "OS X" : Gym.project.tvos? ? "tvOS" : "iOS"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ternary operators must not be nested. Prefer if/else constructs instead.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too many ? in one line, please change that to multi-line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multiline ternary, or if/else?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, if else, or case 👍

@KrauseFx
Copy link
Contributor

Hey @tmm1, thanks for the PR. Did you test gym with these changes to build tvOS apps? Have you tried submitting an app to the store to see if it passes validation?

@tmm1
Copy link
Contributor Author

tmm1 commented Jan 27, 2016

Yes, submitted through TestFlight without a problem.

The only issue I've noticed is that it looks like all files are rebuilt every time I run gym, even though clean false is set. Not sure if that's expected behavior or some sort of regression with tvos.

@KrauseFx
Copy link
Contributor

@tmm1 Yeah, that's a separate issue with xcodebuild 👍

@@ -62,7 +62,13 @@ def self.detect_scheme
# Is it an iOS device or a Mac?
def self.detect_platform
return if Gym.config[:destination]
platform = Gym.project.mac? ? "OS X" : "iOS" # either `iOS` or `OS X`
platform = if Gym.project.mac?
"OS X"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use 2 (not -9) spaces for indentation.

@tmm1
Copy link
Contributor Author

tmm1 commented Jan 27, 2016

@tmm1 Yeah, that's a separate issue with xcodebuild

Bummer. Got any links handy?

@KrauseFx
Copy link
Contributor

Could you squash the commits, before I can merge it 👍

@tmm1
Copy link
Contributor Author

tmm1 commented Jan 27, 2016

Done.

@tmm1
Copy link
Contributor Author

tmm1 commented Jan 28, 2016

Ping.

KrauseFx added a commit that referenced this pull request Jan 28, 2016
@KrauseFx KrauseFx merged commit 331f5bc into fastlane-old:master Jan 28, 2016
@KrauseFx
Copy link
Contributor

Sorry for the delay, and thanks for updating the PR @tmm1 👍

@mgazdich
Copy link

mgazdich commented Feb 4, 2016

I saw this was merged into master however I am still seeing the "gym doesn't suppoort tvOS projects yet, we're working on adding this feature!". Is there still some development going on for this feature, or is something else wrong, and i should be able to make build for tvOS?

@tmm1 tmm1 deleted the fix-tvos branch February 4, 2016 22:46
@KrauseFx
Copy link
Contributor

KrauseFx commented Feb 4, 2016

@mgazdich Yeah, I just noticed I haven't pushed a new release in a while, will do that right now 👍

@KrauseFx
Copy link
Contributor

KrauseFx commented Feb 4, 2016

It's live 🚀 https://github.com/fastlane/gym/releases/tag/1.5.0, thanks again for letting me know @mgazdich 👍

@mgazdich
Copy link

mgazdich commented Feb 4, 2016

Absolutely! I just ran an update. One little thing I am notice however, is when i have the default platform specified in my fastfile as tvos is gives me the same "doesnt support" error.

Any incite? And if there is a better avenue to communicating with you, by all means. Is there a need to update fastlane at all? Or is just running the gem install for gym enough?

@KrauseFx
Copy link
Contributor

KrauseFx commented Feb 5, 2016

@mgazdich Please submit a separate GitHub issue and share your Fastfile and the complete output when running it 👍

@fastlane-old fastlane-old locked and limited conversation to collaborators Mar 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants