Taracque / cordova-plugin-braintree

:credit_card: A Cordova plugin for the Braintree mobile payment processing SDK.
MIT License
27 stars 42 forks source link

BraintreePaymentFlow not found #57

Closed adamfellon closed 6 years ago

adamfellon commented 6 years ago

Trying to updating to Xcode 9.3 & w/ iOS 11.3 support I get the following error after updating to the latest commit w/ the BT framework updates:

dyld: Library not loaded: @rpath/BraintreePaymentFlow.framework/BraintreePaymentFlow

The traceback says that it's being referenced by BraintreeDropIn.framework/BraintreeDropIn...but I don't see any import BraintreePaymentFlow outside of unittests on the main braintree_ios page...let alone in the frameworks built & packaged with this repo.

Tried blowing out all the Device builds etc locally (on OS X, High Sierra) , still no luck.

Anyone have an idea what could be causing the issue?

adamfellon commented 6 years ago

Figures I figure this out ~5 mins after posting the issue.

Steps used to solve the problem:

  1. Follow Carthage steps for everything but card.io stuff in lib/README.md
  2. Carthage will fetch all frameworks including BraintreePaymentFlow.framework
  3. Copy all *.framework files into plugins/cordova-plugin-braintree/lib/ios (i made an ios_old just in case here too)
  4. cordova prepare ios && cordova build ios
  5. open'd project and was able to simulate