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

Skip building static frameworks by checking Mach-O type #894

Merged
merged 4 commits into from Nov 6, 2015

Conversation

ikesyo
Copy link
Member

@ikesyo ikesyo commented Nov 5, 2015

Addresses #734 and #889.

@ikesyo ikesyo changed the title Skip building static frameworks by checking Mach-O type [WIP] Skip building static frameworks by checking Mach-O type Nov 5, 2015
@ikesyo ikesyo changed the title [WIP] Skip building static frameworks by checking Mach-O type Skip building static frameworks by checking Mach-O type Nov 5, 2015
.flatMap(.Concat) { settings -> SignalProducer<ProductType, CarthageError> in
let productType = SignalProducer(result: settings.productType)
.flatMap(.Concat) { settings -> SignalProducer<(ProductType, MachOType), CarthageError> in
let typePair = SignalProducer(result: settings.productType &&& settings.machOType)
Copy link
Contributor

Choose a reason for hiding this comment

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

Ooooh nice, I forgot this operator.

@NachoSoto
Copy link
Contributor

Great idea!

@@ -468,6 +468,30 @@ public enum ProductType: String {
}
}

/// Describes the type of Mach-O files.
/// See https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW73.
Copy link
Member

Choose a reason for hiding this comment

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

$5 says this link won't work in a year. 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll remove it. 😅

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, you should leave it in. I was just joking because it's frustrating how Apple breaks these links all the time. ☺️

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, forgive my misunderstanding. 😝

@mdiep
Copy link
Member

mdiep commented Nov 5, 2015

I really like this idea! Thanks for working on it. 💖

@mdiep
Copy link
Member

mdiep commented Nov 6, 2015

@ikesyo I think I'll create a new release after this is merged so we can get a working build with homebrew. Does that sound good to you?

@ikesyo
Copy link
Member Author

ikesyo commented Nov 6, 2015

@mdiep Sounds good! 👍

@ikesyo
Copy link
Member Author

ikesyo commented Nov 6, 2015

How do you feel the changes in d8b22ec?

}

/// Describes the type of frameworks.
private enum FrameworkType {
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not convinced this should be private or public.

@mdiep
Copy link
Member

mdiep commented Nov 6, 2015

This looks good. 👍

mdiep added a commit that referenced this pull request Nov 6, 2015
Skip building static frameworks by checking Mach-O type
@mdiep mdiep merged commit 16c2847 into master Nov 6, 2015
@mdiep mdiep deleted the skip-static-frameworks branch November 6, 2015 04:23
@ikesyo
Copy link
Member Author

ikesyo commented Nov 6, 2015

Thank you for the feedbacks. 💖

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

Successfully merging this pull request may close these issues.

None yet

3 participants