-
Notifications
You must be signed in to change notification settings - Fork 461
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
Using CoreParse to parse NSS file #198
Conversation
Using CoreParse to parse NSS file
Excellent, thanks! This is crucial to NUI's continued improvement; very much appreciated. |
Yes, this is an unfortunate situation; I'm torn between the options. What are your thoughts on what the best approach would be? |
Subspec will work, but if two library both dependent on CoreParse then we will get nasty duplicate symbol error. |
Include a static library and public headers of CoreParse may work. Still can have duplicate symbol error. Seriously I think the only sane way to do it is maintain the CoreParse podspec and keep it updated. |
@tombenner, @siuying is desperately trying to convince the author of CoreParse to change his mind and provide a podspec. Let's wait a day or two for the response. Thanks @siuying! If the author of CoreParse decides against providing a podspec, I suggest that you fork CoreParse, rename it (e.g. NUIParse), and add my podspec to the fork. As @siuying says, that is the only "sane" approach. We will need to keep our fork in sync with CoreParse, but this is pretty easy to do with an |
Yeah I have a project also dependent on CoreParse and now still thinking how to properly release next version. The problem is not author not providing a podspec, but reject the idea of someone else provide a podspec. Forking the project and rename it make me feel bad by not attributing this great project and author. Also others might now start to dependent on your fork and you waste time on maintain it (rather than maintain the podspec). |
I might just add a podspec for CoreParse anyway, this is not making the author happy, but I guess is still better than keeping the same thing privately or fork the entire project. |
A few thoughts:
|
I uploaded a spec to CocoaPods. |
@siuying, excellent, it works perfectly. Thanks! @tombenner, when you get a chance, you can change the CoreParse entry in NUiDemo's Podfile so it does not point to my CoreParse fork. |
Somehow I can't get the :head of CoreParse when I also add the NUI pod to my Podfile. Has anybody got a clue why this is and how it can be solved? The 1.1 version of CoreParse has bugs and is quite old. |
I tested and it's OK. I include CoreParse first then NUI later in my Podfile like this: pod 'CoreParse', :head
pod 'NUI' |
Thanks for testing. I had pod 'CoreParse', :head
pod 'NUI', '~> 0.5.1' and tried without 0.5.1 now. It worked. Went back to 0.5.1 and it still works. I blame Cocoapods 😉 |
Yes, I believe it is related to this CocoaPods/CocoaPods#540 where it mentioned CocoaPods dependency resolution is not very advanced like that of bundler and it can have problem resolving such case. |
I see, well I'm glad it's working ... for now. |
Fixes #33.
This pull request integrates CoreParse to parse the NSS file. CoreParse uses BNF syntax and thus makes extending the NSS format fairly easy. The next step is to provide @media queries per #3, which is my real goal here.
I just submitted a pull request to CoreParse that adds a podspec file. Once that gets approved I will place the podspec file in the CocoaPods Specs repo and I will update the Podfile in the NUI Demo accordingly.