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

Buy.h not found

Open kpatel1989 opened this issue 6 years ago • 4 comments

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 avatar Apr 16 '18 16:04 kpatel1989

@kpatel1989 I have the same bug, Did you found a solution? thank you

jesualdo13 avatar Jul 16 '18 16:07 jesualdo13

@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

  1. Add the following line to your podfile: pod "Mobile-Buy-SDK"
  2. Run pod install.

Hope that helps!

brunnerjosh avatar Aug 31 '18 14:08 brunnerjosh

Add the following line to your podfile: pod "Mobile-Buy-SDK", '~> 2.0'

DinciPhoneDeveloper avatar May 01 '19 13:05 DinciPhoneDeveloper

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

jayhack avatar May 14 '19 03:05 jayhack