-
Notifications
You must be signed in to change notification settings - Fork 576
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
Dynamic Library for iOS Carthage Support #168
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Thanks for following up with this.
Let me know how I can help you with this. |
@lucasderraugh, just opened #170 to fix all of these warnings and few more, no need to fix them here. |
@nlutsenko I think I've properly setup the config file for the dynamic library. I simply duplicated the existing iOS config and changed the MACH_O_TYPE to mh_dylib. What would you like me to do with the commit for warnings? |
I've rebased with the changes @nlutsenko made to warnings and removed my commit for that. I've also squashed my commits into a single commit. Let me know if that's all that needs to be done to see this off. |
Any update regarding this? |
Looking now. |
isa = XCBuildConfiguration; | ||
baseConfigurationReference = 1D88DFF31BD18B5600329FCD /* Bolts-iOS-Static.xcconfig */; | ||
buildSettings = { | ||
INFOPLIST_FILE = "$(SRCROOT)/Bolts/Resources/iOS-Info.plist"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please kill :)
The whole point of having a xcconfig file is to avoid these.
Few more things here and there, overall looks great. Almost ready to ship. |
Awesome thanks! |
Hopefully I deleted the right sections for this, let me know if there is anything else. |
@lucasderraugh, looks great. Checked out things locally and here is the list of what we need to address before merging this. Let me know if there is anything I can help you with on any of these.
|
Sorry for the commit amends, wasn't sure if you strive for nice git history or not (from the looks of it you do). Regardless, I believe all these changes have been made (including a rebase). |
Ok, so in the Bolts-iOS-Dynamic config file, I added the CoreGraphics and UIKit framework for linker params. This for whatever reason is breaking the OS X tests. Not sure how to fix this by using the config files exclusively. |
@@ -11,7 +11,6 @@ | |||
#include "Shared/Product/Framework.xcconfig" | |||
|
|||
PRODUCT_NAME = Bolts | |||
IPHONEOS_DEPLOYMENT_TARGET = 6.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this was unintended change, please revert it.
It's ok to keep separate commits until we are fully done, then we can squash everything together.
Not sure why it got broken. Try rebasing it against the current latest master. Takes a while to get through all of these, but I am confident we are going to make it together! |
Ok, I just completely reset off of what you have on master and redid what I originally set out to do. Not sure how the OS X tests were failing previously, but the same config files seem to not interfere with it this time around 👍 . |
Could this get merged in? |
Doing last sanity check right now and merging in... |
@lucasderraugh Found a small nit issue - |
@nlutsenko Should be good from here. |
@lucasderraugh updated the pull request. |
Perfect! One last thing - could you squash both commits into just 1? |
Done (I used fixup instead) |
Thanks for bearing with me through the whole review. So glad it is finally done! |
Dynamic Library for iOS Carthage Support
@lucasderraugh updated the pull request. |
Trying to address issue #152, this build I believe will support Carthage. The issue is that Bolts is currently a static library, whereas Carthage only supports dynamic libraries (hence why the Mac build works). I know there can be backwards compatibility issues so I've added a new target that builds dynamically. I'd really like this to get moved into production so that Facebook could support Carthage out of the box. Let me know if anything needs to be changed.