Skip to content
This repository was archived by the owner on May 5, 2020. It is now read-only.

+[CardIOUtilities preloadCardIO]: unrecognized selector sent to class #506

Closed
antonioreyna opened this issue Mar 10, 2017 · 9 comments
Closed
Labels

Comments

@antonioreyna
Copy link

General information

  • SDK/Library version: PayPal iOS SDK 2.16.1

  • Environment: nonetwork and sandbox

  • iOS Version and Device: ios10

  • Integration type and version: cocoapods-1.2.1.beta.1

Issue description

I am getting these errors, it was working fine before.

It does not show the view controller for paypal it crashes before, but if i add the #import 'CardIO.h'to the bridge file it opens the view but still crashes.

+[CardIOUtilities preloadCardIO]: unrecognized selector sent to class 0x1020ce1a0
invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[CardIOUtilities preloadCardIO]: unrecognized selector sent to class 0x1020ce1a0'
*** First throw call stack:
(0x1818bd1b8 0x1802f455c 0x1818c41a8 0x1818c1270 0x1817ba80c 0x1001d4b58 0x100219bec 0x18778a754 0x18778a4cc 0x18782b910 0x18782af28 0x18782aadc 0x18782aa40 0x18776fa80 0x184c1d9d8 0x184c124cc 0x184c1238c 0x184b8f3e0 0x184bb6a68 0x187765150 0x18186a0c0 0x181867cf0 0x181868180 0x1817962b8 0x18324a198 0x1877dd7fc 0x1877d8534 0x10014f074 0x1807795b8)
libc++abi.dylib: terminating with uncaught exception of type NSException

@bluk
Copy link
Contributor

bluk commented Mar 10, 2017

Which version of card.io is in your Podfile.lock? You will need the latest version if you have enabled card.io.

@antonioreyna
Copy link
Author

At this moment i changed the pod to /Core, and im getting the same error :( is there a way to see if on my project another of my libraries use the CardIO ? in my case i cant use the credit card so i dont need cardio im in Mexico and i think credit card payments are not allowed here yet

@bluk
Copy link
Contributor

bluk commented Mar 10, 2017

Did you turn off accepting credit cards in your PayPalConfiguration?

The Podfile.lock should show other dependencies in case you have it.

@antonioreyna
Copy link
Author

yes:

var payPalConfig = PayPalConfiguration() // default

override func viewDidLoad() {
        super.viewDidLoad()
        payPalConfig.acceptCreditCards = false

@antonioreyna
Copy link
Author

this is my pod lock

PODS:
  - Alamofire (4.3.0)
  - AlamofireNetworkActivityIndicator (2.1.0):
    - Alamofire (~> 4.1)
  - AlamofireObjectMapper (4.0.1):
    - Alamofire (~> 4.1)
    - ObjectMapper (~> 2.0)
  - Bolts (1.8.4):
    - Bolts/AppLinks (= 1.8.4)
    - Bolts/Tasks (= 1.8.4)
  - Bolts/AppLinks (1.8.4):
    - Bolts/Tasks
  - Bolts/Tasks (1.8.4)
  - BWWalkthrough (1.1.0)
  - EZYGradientView (1.5.1)
  - FacebookCore (0.2.0):
    - Bolts (~> 1.8)
    - FBSDKCoreKit (~> 4.15)
  - FacebookLogin (0.2.0):
    - Bolts (~> 1.8)
    - FacebookCore (~> 0.2)
    - FBSDKCoreKit (~> 4.15)
    - FBSDKLoginKit (~> 4.15)
  - FacebookShare (0.2.0):
    - Bolts (~> 1.8)
    - FacebookCore (~> 0.2)
    - FBSDKCoreKit (~> 4.15)
    - FBSDKShareKit (~> 4.15)
  - FBSDKCoreKit (4.19.0):
    - Bolts (~> 1.7)
  - FBSDKLoginKit (4.19.0):
    - FBSDKCoreKit
  - FBSDKShareKit (4.19.0):
    - FBSDKCoreKit
  - FirebaseAnalytics (3.6.0):
    - FirebaseCore (~> 3.4)
    - FirebaseInstanceID (~> 1.0)
    - GoogleInterchangeUtilities (~> 1.2)
    - GoogleSymbolUtilities (~> 1.1)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
  - FirebaseCore (3.4.7):
    - GoogleInterchangeUtilities (~> 1.2)
    - GoogleSymbolUtilities (~> 1.1)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
  - FirebaseInstanceID (1.0.8)
  - FluentConstraints (2.0)
  - Google/Analytics (3.0.3):
    - Google/Core
    - GoogleAnalytics (~> 3.12)
  - Google/Core (3.0.3):
    - FirebaseAnalytics (~> 3.2)
  - GoogleAnalytics (3.17.0)
  - GoogleIDFASupport (3.14.0)
  - GoogleInterchangeUtilities (1.2.2):
    - GoogleSymbolUtilities (~> 1.1)
  - GoogleSymbolUtilities (1.1.2)
  - GoogleToolboxForMac/Defines (2.1.1)
  - GoogleToolboxForMac/NSData+zlib (2.1.1):
    - GoogleToolboxForMac/Defines (= 2.1.1)
  - JWTDecode (2.0.0)
  - KeychainSwift (6.0.2)
  - ObjectMapper (2.2.2)
  - PayPal-iOS-SDK/Core (2.16.1)
  - PMAlertController (2.1.0)
  - PopupController (0.2.0)
  - QRCode (2.0)
  - RoundedViews (1.0.2)
  - RSBarcodes_Swift (0.1.9)
  - SideMenuController (0.2.4)
  - SwiftDate (4.0.12)
  - SwiftDevice (0.3.0)
  - SwiftLocation (1.1.1)
  - SwiftString (0.5)
  - SwiftValidator (4.0.1)
  - SwiftyHex (1.2.0)
  - SwiftyTimer (2.0.0)
  - SwiftyUserDefaults (3.0.0)
  - TextFieldEffects (1.3.0)
  - WWCalendarTimeSelector (1.3.13)

DEPENDENCIES:
  - Alamofire (~> 4.0)
  - AlamofireNetworkActivityIndicator (~> 2.0)
  - AlamofireObjectMapper (from `https://github.com/tristanhimmelman/AlamofireObjectMapper.git`, branch `master`)
  - BWWalkthrough (from `https://github.com/willeeklund/BWWalkthrough.git`, branch `master`)
  - EZYGradientView (~> 1.5)
  - FacebookCore
  - FacebookLogin
  - FacebookShare
  - FluentConstraints
  - Google/Analytics
  - GoogleIDFASupport
  - JWTDecode (~> 2.0)
  - KeychainSwift (~> 6.0)
  - PayPal-iOS-SDK/Core
  - PMAlertController
  - PopupController (~> 0.1)
  - QRCode (from `https://github.com/aschuch/QRCode.git`, branch `master`)
  - RoundedViews (from `https://github.com/KogiMobileSAS/RoundedViews.git`, branch `swift3`)
  - RSBarcodes_Swift (from `https://github.com/yeahdongcn/RSBarcodes_Swift.git`, branch `Swift-3.0`)
  - SideMenuController (from `https://github.com/teodorpatras/SideMenuController.git`, branch `master`)
  - SwiftDate (~> 4.0)
  - SwiftDevice (= 0.3.0)
  - SwiftLocation (from `https://github.com/malcommac/SwiftLocation.git`, branch `master`)
  - SwiftString (~> 0.5)
  - SwiftValidator (from `https://github.com/jpotts18/SwiftValidator.git`, branch `swift3-dave`)
  - SwiftyHex (~> 1.1)
  - SwiftyTimer (from `https://github.com/radex/SwiftyTimer.git`, branch `swift3`)
  - SwiftyUserDefaults
  - TextFieldEffects (from `https://github.com/raulriera/TextFieldEffects.git`, tag `1.3.0`)
  - WWCalendarTimeSelector

EXTERNAL SOURCES:
  AlamofireObjectMapper:
    :branch: master
    :git: https://github.com/tristanhimmelman/AlamofireObjectMapper.git
  BWWalkthrough:
    :branch: master
    :git: https://github.com/willeeklund/BWWalkthrough.git
  QRCode:
    :branch: master
    :git: https://github.com/aschuch/QRCode.git
  RoundedViews:
    :branch: swift3
    :git: https://github.com/KogiMobileSAS/RoundedViews.git
  RSBarcodes_Swift:
    :branch: Swift-3.0
    :git: https://github.com/yeahdongcn/RSBarcodes_Swift.git
  SideMenuController:
    :branch: master
    :git: https://github.com/teodorpatras/SideMenuController.git
  SwiftLocation:
    :branch: master
    :git: https://github.com/malcommac/SwiftLocation.git
  SwiftValidator:
    :branch: swift3-dave
    :git: https://github.com/jpotts18/SwiftValidator.git
  SwiftyTimer:
    :branch: swift3
    :git: https://github.com/radex/SwiftyTimer.git
  TextFieldEffects:
    :git: https://github.com/raulriera/TextFieldEffects.git
    :tag: 1.3.0

CHECKOUT OPTIONS:
  AlamofireObjectMapper:
    :commit: 10cefce003fb2cd0e9e2f6bfefc7380fae21bc29
    :git: https://github.com/tristanhimmelman/AlamofireObjectMapper.git
  BWWalkthrough:
    :commit: f4ecfc4f588e2bd3fccc6f447913b1758710a19f
    :git: https://github.com/willeeklund/BWWalkthrough.git
  QRCode:
    :commit: 601af09fa394da662753a1d0bdfeb7d11e54e7e7
    :git: https://github.com/aschuch/QRCode.git
  RoundedViews:
    :commit: d1aa07a6a6d62b725c4db0c5cf14aee01a49041b
    :git: https://github.com/KogiMobileSAS/RoundedViews.git
  RSBarcodes_Swift:
    :commit: aa0be8b53946ba2a1044cd9c5f590f82708e9578
    :git: https://github.com/yeahdongcn/RSBarcodes_Swift.git
  SideMenuController:
    :commit: 3906b9f37947dce5ef71065c1cd4ef622c420a28
    :git: https://github.com/teodorpatras/SideMenuController.git
  SwiftLocation:
    :commit: f1779000f6647ee51700ee5ea3ea7d7b0b9a4dad
    :git: https://github.com/malcommac/SwiftLocation.git
  SwiftValidator:
    :commit: 761df17e0439330d6b7a22b344865d131a82d8c9
    :git: https://github.com/jpotts18/SwiftValidator.git
  SwiftyTimer:
    :commit: a51e1b0a10787a42e45b14553f3803f68c790291
    :git: https://github.com/radex/SwiftyTimer.git
  TextFieldEffects:
    :git: https://github.com/raulriera/TextFieldEffects.git
    :tag: 1.3.0

SPEC CHECKSUMS:
  Alamofire: 856a113053a7bc9cbe5d6367a555d773fc5cfef7
  AlamofireNetworkActivityIndicator: 4716f6554bdfb9c7cf13b1e0e3af21163129690a
  AlamofireObjectMapper: 842d2eed43a4d0593ff0110d54ac86a170c4519c
  Bolts: 8a7995239dbe724f9cba2248b766d48b7ebdd322
  BWWalkthrough: 0c27ad2773a25c8f4fb9004bc7d6685deb35fecc
  EZYGradientView: f13e7a9e774b906c66d617fb04a13c8853ba25b4
  FacebookCore: 2cb3f0fbff218e9d3119cec84bae983b232412de
  FacebookLogin: c9d606504735780a9e3002465a615512e0a691a5
  FacebookShare: 8e9ee8ea06505e6a1d3d719b0cc63e840fb8aaeb
  FBSDKCoreKit: 894b2b6eda6a4c8c4204e92e59cc355709ef045c
  FBSDKLoginKit: 83ca4d8f12a2022570af9fd6aacf27f6b425b99f
  FBSDKShareKit: 5953758366278430dc322d5cdc906db361ed7f81
  FirebaseAnalytics: 9c67af0ebeb8d2146c9b4ea2616439affa947b58
  FirebaseCore: 46afaf2c2e0419ea7d3acfb08cf26a461a75fe85
  FirebaseInstanceID: ba1e640935235e5fac39dfa816fe7660e72e1a8a
  FluentConstraints: 833adc25570c5f51cc1a472e38e0a325ce8decf0
  Google: 813c467362eabc11385f5a5cc9ad0cb651a58f4e
  GoogleAnalytics: f42cc53a87a51fe94334821868d9c8481ff47a7b
  GoogleIDFASupport: aaf8c10bd429abb1c15349d5252244f5eda8ead1
  GoogleInterchangeUtilities: d5bc4d88d5b661ab72f9d70c58d02ca8c27ad1f7
  GoogleSymbolUtilities: 631ee17048aa5e9ab133470d768ea997a5ef9b96
  GoogleToolboxForMac: 8e329f1b599f2512c6b10676d45736bcc2cbbeb0
  JWTDecode: 178e47e5d28d3abcff778bacced8342858cd6cb5
  KeychainSwift: a261364334000afa8fab0894390d5d00dd226d4c
  ObjectMapper: 9e385c2295bcc4e16eabbcfc85db801442bba545
  PayPal-iOS-SDK: 774ac7de2d7c3b0ee7e8a35f8b347fd07787321b
  PMAlertController: 2d2c19af12edb50753d636395f9456c8cde1e858
  PopupController: 0b69fdf11cbeaa807789a8c3992599083640988f
  QRCode: 282441d0cfe8c4c1766b7578361fe93f72757685
  RoundedViews: c15945e567972d09b8af6edbb36bd877e0ed4e07
  RSBarcodes_Swift: 3c37a05faa0c8742739e1b47eec2f0d3d786330f
  SideMenuController: 4c47fe044a8a0f13edf2ecb73fc90b2d82dcf392
  SwiftDate: 9a50045abc7b3515ede0fbed94705907279177b5
  SwiftDevice: ee6e7682db9a6d79aa9e922886b1a5a1ebeb7b3c
  SwiftLocation: 5b19d435d3a9b454fd100d69f9865fdacc46f270
  SwiftString: ec9c31c55b2aa147a1154f5f5f8483dc71e3165f
  SwiftValidator: 3222cfb27524e8e9529d10386e3f7fcf6e0d7bd7
  SwiftyHex: 4038320ca6d66e75a95e69c303731623fc6620e5
  SwiftyTimer: 2efd74b060d69ad4f1496baf5bbedbe132125fcf
  SwiftyUserDefaults: 0f1d45fc3aafb9064dac661e367f8f83fe21a4b4
  TextFieldEffects: ef594746f17997c813e07633f8ae5acaf9b04f27
  WWCalendarTimeSelector: 334f8b4ff16367d75fb9f21073203641fbd3d749

PODFILE CHECKSUM: 8b9c37901209bbb8b514845897f9d0ffdc48475c

COCOAPODS: 1.2.1.beta.1

@antonioreyna
Copy link
Author

now i installed cardio separate with pod installand i have this on my lock - CardIO (5.4.1) and still the same error:

+[CardIOUtilities preloadCardIO]: unrecognized selector sent to class 0x10216e1a0

@bluk
Copy link
Contributor

bluk commented Mar 10, 2017

What I believe is happening is that the code finds a class CardIOUtilities, but it is an older version. I took a quick look at the dependencies in your Podfile.lock but couldn't find anything that stood out to me.

Will try to make a fix for this in the PayPal iOS SDK.

@bluk bluk added the sdk-bug label Mar 10, 2017
@antonioreyna
Copy link
Author

Thanks! i do have a third part framework not installed via pods which i think uses the cardio maybe that is the problem, if you can add that catch to avoid the older version would be great, i dont think these other guys can do that.

@bluk
Copy link
Contributor

bluk commented Mar 13, 2017

Release 2.16.2 should hopefully resolve this issue. If it does not, please leave a comment and we can reopen. Thanks.

@bluk bluk closed this as completed Mar 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants