Giter Site home page Giter Site logo

Comments (10)

jamehta avatar jamehta commented on May 26, 2024

@keith

from card.io-ios-sdk.

keith avatar keith commented on May 26, 2024

Can you add a sample project that reproduces the issue?

from card.io-ios-sdk.

jamehta avatar jamehta commented on May 26, 2024

@keith please find the test project here - https://github.com/jamehta/Modules - Here TestProjTestApp uses framework TestProjFramework which uses CardIO framework.

When you build the TestProjTestApp, you will see below linker error. My end goal is both TestProjFramework and TestProjTestApp build should succeed.

screen shot 2018-01-24 at 3 17 45 pm

from card.io-ios-sdk.

keith avatar keith commented on May 26, 2024

The problem here is that since you want CardIO to be a dependency of both your app, and a dynamic framework, CocoaPods will refuse to do this since that would result in 2 copies of CardIO being bundled with your app.

The solution to this is to either remove the dependency on CardIO from one of the places, or to change your dynamic framework into a static framework or static library. As of CocoaPods 1.4.0 they now support a spec attribute for forcing your pod to use a static framework instead of a dynamic library, this should help. http://blog.cocoapods.org/CocoaPods-1.4.0/

from card.io-ios-sdk.

jamehta avatar jamehta commented on May 26, 2024

Thanks @keith for getting back. But if you see my TestApp, i dont have any dependency CardIO
. infact i can remove the files accessing cardio libraries (UseCardio.swift) which comes thru pods. still i get this linking error.

from card.io-ios-sdk.

keith avatar keith commented on May 26, 2024

You have the dependency on it in 2 places though, TestProj (in the podspec) and TestProjFramework (in the Podfile)

from card.io-ios-sdk.

jamehta avatar jamehta commented on May 26, 2024

Podfile:

target 'TestProjTestApp' do
pod 'TestProj', :path => '.' //this is indirect dependency on TestProjFramework and not CardIO
end

Podspec:

s.dependency 'CardIO', '5.5.5' //this is TestProjFramework depeneding on cardio

from card.io-ios-sdk.

jamehta avatar jamehta commented on May 26, 2024

i dont have something like:

target 'TestProjTestApp' do
pod 'TestProj', :path => '.' //this is indirect dependency on TestProjFramework and not CardIO
pod 'CardIO', '5.5.5' - //this is the case you are suggesting which i dont have this line
end

from card.io-ios-sdk.

jamehta avatar jamehta commented on May 26, 2024

I got temporary solution to this issue. In my framework, i used the Xcode9's “Linking” setting namely Mach-O Type and set it to “Static Library”. This resolves the linker error which we are getting for CardIO when we use it as framework

from card.io-ios-sdk.

JeffBoggis avatar JeffBoggis commented on May 26, 2024

@jamehta Hi there. Did you find any solution apart from setting Mach-O type to "Static Library" ?
Thanks!

from card.io-ios-sdk.

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.