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

Fix Carthage warning when building by including in workspace #26

Merged
merged 2 commits into from
Jul 6, 2017
Merged

Fix Carthage warning when building by including in workspace #26

merged 2 commits into from
Jul 6, 2017

Conversation

brentleyjones
Copy link
Contributor

Fixes #25.

This updates the workspace to build with a submodule for RxSwift instead of assuming that the framework will be built to a specific location.

I also updated the Podfile.lock in the Example directory.

I tested this both building by the command line with carthage and by including the project directly into a workspace.

When this project is built by including it in another workspace, instead of building by command line with `carthage`, using the FRAMWORK_SEARCH_PATH of `$(PROJECT_DIR)/Carthage/Build/iOS` can produce an error, since `$(PROJECT_DIR)/Carthage/Build/iOS` might not exist.

To fix this we should use a submodule for our dependencies and include them in the RxKeyboard.xcworkspace. This will allow us to still compile the RxKeyboard library.
Wouldn't compile since we updated our RxSwift required version.
- RxCocoa (>= 3.0)
- RxSwift (>= 3.0)
- RxSwift (3.1.0)
- RxCocoa (3.5.0):
Copy link
Member

Choose a reason for hiding this comment

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

Any reason to increase all the minimum versions in the Podfile.lock ?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I think Podfile.lock is an unrelated change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because without it the example won't compile. If you just run pod install it says it can't meet the requirements of the 3.4.0 that the library requires, while being locked to 3.1.0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have it as two commits. I can remove that commit if necessary. It does need updating though 😄.

Copy link
Member

Choose a reason for hiding this comment

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

Uhm very weird it would require 3.4 , but even if so let's try keep it to the minimum required? 3.5 isn't a requirement here. So besides that I have no problems with this PR

Copy link
Member

Choose a reason for hiding this comment

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

I just remembered that there was #20. I think it makes sense.

@devxoul devxoul merged commit 5451dd4 into RxSwiftCommunity:master Jul 6, 2017
@devxoul
Copy link
Member

devxoul commented Jul 6, 2017

Thanks for your contribution!

 🎉  Congrats

 🚀  RxKeyboard (0.5.1) successfully published
 📅  July 6th, 16:05
 🌎  https://cocoapods.org/pods/RxKeyboard
 👍  Tell your friends!

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.

3 participants