Coder Social home page Coder Social logo

Comments (21)

Ravi-Nagarro07 avatar Ravi-Nagarro07 commented on July 21, 2024 1

the issue can be solved by adding Braintree to the local Podfile

  pod 'Braintree'
  pod 'Braintree/Core'

Did you try this hack?

This hack is not working for me.

from react-native-braintree.

Ravi-Nagarro07 avatar Ravi-Nagarro07 commented on July 21, 2024 1

Its working for react-native version 0.67.0.

from react-native-braintree.

JonPekkonen avatar JonPekkonen commented on July 21, 2024

I'm having this same issue.
@Bob-MYMC Did you manage to resolve issue?

from react-native-braintree.

vasylnahuliak avatar vasylnahuliak commented on July 21, 2024

Did you install pods?
@Bob-MYMC @JonPekkonen

from react-native-braintree.

JonPekkonen avatar JonPekkonen commented on July 21, 2024

Did you install pods?

Yes.
I'm trying to make build with eas which uses fastlane for compiling. Project used to compile and work perfectly fine but after adding this package build fails to following error.

› Compiling @ekreative/react-native-braintree Pods/react-native-braintree » react-native-braintree-dummy.m
› Compiling @ekreative/react-native-braintree Pods/react-native-braintree » RNBraintreeApplePay.m
› Compiling @ekreative/react-native-braintree Pods/react-native-braintree » RNBraintree.m

❌  (node_modules/@ekreative/react-native-braintree/ios/RNBraintree.m:2:9)

  1 | #import "RNBraintree.h"
> 2 | #import "BraintreeCore.h"
    |         ^ 'BraintreeCore.h' file not found
  3 | #import "BTCardClient.h"
  4 | #import "BraintreePayPal.h"
  5 | #import "BTDataCollector.h"

from react-native-braintree.

vasylnahuliak avatar vasylnahuliak commented on July 21, 2024

This library does not support at Expo. Please, try on the CLI project.

from react-native-braintree.

Bob-MYMC avatar Bob-MYMC commented on July 21, 2024

the issue can be solved by adding Braintree to the local Podfile

  pod 'Braintree'
  pod 'Braintree/Core'

from react-native-braintree.

vasylnahuliak avatar vasylnahuliak commented on July 21, 2024

he issue can be solved by adding Braintree to the local Podfile

You can avoid these changes because library supported autolinking

https://github.com/ekreative/react-native-braintree/blob/master/react-native-braintree.podspec#L27

from react-native-braintree.

Ravi-Nagarro07 avatar Ravi-Nagarro07 commented on July 21, 2024

I am having the same issue.
Anyone able to solve this issue?

from react-native-braintree.

vasylnahuliak avatar vasylnahuliak commented on July 21, 2024

I am having the same issue.
Anyone able to solve this issue?

Please provide some information about your project (npx react-native info)

from react-native-braintree.

Ravi-Nagarro07 avatar Ravi-Nagarro07 commented on July 21, 2024

I am having the same issue.
Anyone able to solve this issue?

Please provide some information about your project (npx react-native info)

@vasylnahuliak

System:
OS: macOS 13.0.1
CPU: (8) arm64 Apple M1
Memory: 103.20 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.14.0 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 8.3.1 - /usr/local/bin/npm
Watchman: 2022.03.14.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8193401
Xcode: 14.1/14B47b - /usr/bin/xcodebuild
Languages:
Java: 11.0.14 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

from react-native-braintree.

vasylnahuliak avatar vasylnahuliak commented on July 21, 2024

@Ravi-Nagarro07 could you try to init project on 0.69 version of React Native

from react-native-braintree.

Ravi-Nagarro07 avatar Ravi-Nagarro07 commented on July 21, 2024

@vasylnahuliak
Same error on version 0.69.0 as well.

from react-native-braintree.

vasylnahuliak avatar vasylnahuliak commented on July 21, 2024

@vasylnahuliak Same error on version 0.69.0 as well.

Did you use Expo?
Did you install pods?
Did you see Braintree in the Podfile.lock file?
Did you try using https://www.npmjs.com/package/react-native-clean-project for a clean cache?
Did you clean the Derived Data? https://stackoverflow.com/a/41039886/10617148

from react-native-braintree.

Ravi-Nagarro07 avatar Ravi-Nagarro07 commented on July 21, 2024

@vasylnahuliak
Using react-native Cli
I do have installed pods
Braintree is available in podfile.lock file
Yes, I have tried cleaning the cache and derived data as well.

from react-native-braintree.

vasylnahuliak avatar vasylnahuliak commented on July 21, 2024

the issue can be solved by adding Braintree to the local Podfile

  pod 'Braintree'
  pod 'Braintree/Core'

Did you try this hack?

from react-native-braintree.

Ravi-Nagarro07 avatar Ravi-Nagarro07 commented on July 21, 2024

the issue can be solved by adding Braintree to the local Podfile

  pod 'Braintree'
  pod 'Braintree/Core'

Did you try this hack?

This hack is not working for me.

@vasylnahuliak
check podfile and package.json

Screenshot 2023-01-09 at 6 04 13 PM

Screenshot 2023-01-09 at 6 03 39 PM

from react-native-braintree.

vasylnahuliak avatar vasylnahuliak commented on July 21, 2024

check podfile and package.json

looks good

from react-native-braintree.

Ravi-Nagarro07 avatar Ravi-Nagarro07 commented on July 21, 2024

check podfile and package.json

looks good

but issue is still there.

from react-native-braintree.

vasylnahuliak avatar vasylnahuliak commented on July 21, 2024

Its working for react-native version 0.67.0.

In my case working for react-native version 0.69.7

from react-native-braintree.

vasylnahuliak avatar vasylnahuliak commented on July 21, 2024

Fixed in #25

from react-native-braintree.

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.