react-native-payments icon indicating copy to clipboard operation
react-native-payments copied to clipboard

iOS build failed - framework not found Braintree

Open nemanjagajic opened this issue 4 years ago • 4 comments

After following the steps:

  • npm install react-native-payments
  • cd ios -> pod install

I'm getting the error framework not found Braintree when trying to build and run the application on ios simulator

react-native version: 0.61.5 react-native-payments version: 0.8.1

I'm not sure if I should add something manually, as I guess everything should be automatically linked and working out of the box

nemanjagajic avatar Nov 28 '20 13:11 nemanjagajic

Hey @nemanjagajic , can you share your Podfile.lock? Would be interested to see how everything has autolinked.

You might also want to try pod repo update and then pod install again.

Please let me know how you get on, or @kbaxx @dovlaper in the emojis so we can make any fixes and update docs.

Nabs

nabilfreeman avatar Dec 01 '20 14:12 nabilfreeman

@nabilfreeman Faced with a similar problem My error on attempt to build a debug version: ld: library not found for -lBraintree

The Podfile contains all required dependencies (I've tried also pod repo update)

  • Braintree (4.36.1):
    • Braintree/Card (= 4.36.1)
    • Braintree/Core (= 4.36.1)
    • Braintree/PayPal (= 4.36.1)
    • Braintree/UI (= 4.36.1)
    • Braintree/Card (4.36.1):
      • Braintree/Core
    • Braintree/Core (4.36.1)
    • Braintree/PayPal (4.36.1):
      • Braintree/Core
      • Braintree/PayPalOneTouch
    • Braintree/PayPalDataCollector (4.36.1):
      • Braintree/Core
      • Braintree/PayPalUtils
    • Braintree/PayPalOneTouch (4.36.1):
      • Braintree/Core
      • Braintree/PayPalDataCollector
      • Braintree/PayPalUtils
    • Braintree/PayPalUtils (4.36.1)
    • Braintree/UI (4.36.1):
      • Braintree/Card
      • Braintree/Core

Also, what is interesting, that after installing react-native-payments I've received the problem with inability to find the entry point in DerivedData (which was fixed by removing arm64 from excluded architecture, don't know if it somehow related)

St1ma avatar Dec 30 '20 08:12 St1ma

Hi @nemanjagajic, @St1ma Im facing the exact same issue, first I got the DerivedData issue, I removed the arm64 from excluded archs but then I got this error, have you found any solution to this?

estebanr92 avatar Feb 04 '21 22:02 estebanr92

+1

77TecShaeer avatar Jan 24 '24 18:01 77TecShaeer