react-native-shopify
react-native-shopify copied to clipboard
Buy.h not found
In file included from /Users/kartikpatel/Documents/GoInt/shoutem/bswelcomeapp/node_modules/react-native-shopify/ios/RNShopify.m:1: /Users/kartikpatel/Documents/GoInt/shoutem/bswelcomeapp/node_modules/react-native-shopify/ios/RNShopify.h:10:9: fatal error: 'Buy.h' file not found #import "Buy.h" ^ 1 error generated.
I got this error when I tried to build the project.
@kpatel1989 I have the same bug, Did you found a solution? thank you
@kpatel1989 I encountered this as well. I realized that I had missed the very first instruction which is to install Shopify's Mobile Buy SDK.
Including Mobile-BUY-SDK Include the Shopify Mobile Buy SDK in your project to make it available to the bridge. Follow the instructions on their Github page to get started. For example, the recommended and easiest way for iOS is to install it as a Pod. This project will look for headers in the Pods directory.
I installed the SDK using Pods as described here: https://github.com/Shopify/mobile-buy-sdk-ios/#cocoapods-
CocoaPods
- Add the following line to your podfile:
pod "Mobile-Buy-SDK"
- Run
pod install
.
Hope that helps!
Add the following line to your podfile: pod "Mobile-Buy-SDK", '~> 2.0'
As @PayalDinc mentioned, adding the pod for version 2.0 seems to work.
WORKS:
pod "Mobile-Buy-SDK", '~> 2.0'
NOT WORKS:
pod "Mobile-Buy-SDK" // installs a newer version that messes things up