Comments (10)
from card.io-ios-sdk.
Can you add a sample project that reproduces the issue?
from card.io-ios-sdk.
@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.
from card.io-ios-sdk.
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.
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.
You have the dependency on it in 2 places though, TestProj (in the podspec) and TestProjFramework (in the Podfile)
from card.io-ios-sdk.
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.
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.
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.
@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)
- Can't scan bank card picture?
- getting Card Number without spaces HOT 1
- Does Card.io iOS or Android SDK used in an app gets the app into PCI scope? Can Card.io be out of PCI scope for the app? HOT 2
- How to get UIImage from CardIOCreditCardType
- Not allow 18 digits credit cards HOT 1
- Crash with Accessibility mode enabled
- Can't change the navBar topItems title.
- Card.io Does not scan non - Embossed Digits Credit Cards HOT 3
- No such module 'CardIO'
- Is there a way to get the card type by number without scanning? HOT 1
- CardHolder name HOT 2
- Warning caused by old CardIO HOT 3
- Doesn't scan expiration date
- how can i get scanned credit card image without compression?
- Failed to build in XCode 10 & Swift 4.2 HOT 2
- Can scan, no results obtained HOT 1
- How can I change the navigation bars bar items? HOT 1
- Not able to add Maestro card HOT 4
- Can't scan any card
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from card.io-ios-sdk.