Code Monkey home page Code Monkey logo

Comments (3)

jverkoey avatar jverkoey commented on July 2, 2024

No. You'll need to inform any devs using your framework of the required dependencies.

from ios-framework.

dominik0711 avatar dominik0711 commented on July 2, 2024

Hi jverkoey.

First of all thank you very much for your detailed description how to develop a framework!

Now I have a problem and I don't know what's the best way to avoid errors described below:

I have created 2 different frameworks and both depend on the AFNetworking framework. I have imported all classes to both frameworks.

Now when I add these two frameworks to my third party application which depends as well on the AFNetworking framework I did receive duplicate symbol errors at link time. The error log tells me, that both frameworks has duplicated symbol. See:

duplicate symbol _OBJC_IVAR_$_AFURLConnectionOperation._outputStream in:
    /Users/dominik/Projects/Abacus/ios/AbaTrack/AbaWeatherForecast.framework/AbaWeatherForecast(AFURLConnectionOperation.o)
    /Users/dominik/Projects/Abacus/ios/AbaTrack/AbaOSM.framework/AbaOSM(AFURLConnectionOperation.o)

Could you please tell me what's the "right" way to deal with external dependencies during framework development?
Do I have to rename all the AFNetworking classes with prefixes in both frameworks? Or is there a better way to avoid those errors?

Thanks in advance!
dominik

from ios-framework.

ccwasden avatar ccwasden commented on July 2, 2024

@dominik0711 how did you solve this?

from ios-framework.

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.