Git Product home page Git Product logo

Comments (9)

gonzalezreal avatar gonzalezreal commented on August 22, 2024

Hi @o15a3d4l11s2
Using the angle brackets in the umbrella header its the correct way.
Are you getting this error when using Cocoapods? Maybe it is related with CocoaPods/CocoaPods#4420.

from groot.

soulchild avatar soulchild commented on August 22, 2024

Did you actually find a fix for this? Reading through the vast amount of comments on various Cocoapods projects where users are having this issue I'm confused as to whether this is something that needs fixing in Cocoapods, Groot or if we just have to wait for Xcode 7.2.

from groot.

o15a3d4l11s2 avatar o15a3d4l11s2 commented on August 22, 2024

I think that this issue is related to CocoaPods, since the issue that @gonzalezreal pointed to is still open.

Since I was not able to resolve it easily, I had to do something not so nice - manually changing the #import statements (see my previous comment).
Please be aware that this is not a solution of the problem - modifying the content of the file manually inside the pod means that this change should be made on every machine, where the project lives and that the changes will be lost once you install a newer version of the pod through pod update.

A better approach would be forking the Groot project and changing the imports there, then installing your forked version of the pod.

from groot.

gregkerzhner avatar gregkerzhner commented on August 22, 2024

+1 on creating a forked version, also broken for me.

from groot.

gonzalezreal avatar gonzalezreal commented on August 22, 2024

You can use a post_install in your Podfile that replaces the angle brackets as suggested here:
CocoaPods/CocoaPods#4420 (comment)

from groot.

ManueGE avatar ManueGE commented on August 22, 2024

Yep, I fixed it by adding:

post_install do |installer|
    `find Pods -regex 'Pods/Groot.*\\.h' -print0 | xargs -0 sed -i '' 's/\\(<\\)Groot\\/\\(.*\\)\\(>\\)/\\"\\2\\"/'`
end

at the end of my podfile

from groot.

kikolobo avatar kikolobo commented on August 22, 2024

Hi All..

I see that the issue is now closed on cocoapods repo. issue 4420 and marked as fixed.

The workaround still works, but I am wondering if this is still an issue with cocoaPods or groot since no other library I import from pods complaints. Any idea?

from groot.

gonzalezreal avatar gonzalezreal commented on August 22, 2024

The fix should be available in Cocoapods 1.0.0 beta. If you can still reproduce it with that Cocoapods version, please let me know.

from groot.

kikolobo avatar kikolobo commented on August 22, 2024

Thanks @gonzalezreal .. Great Work!

from groot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.