shoutem / react-native-shopify

React Native bridge to Shopify Buy SDK
262 stars 42 forks source link

Buy.h not found #31

Open kpatel1989 opened 6 years ago

kpatel1989 commented 6 years ago

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.

jesualdo13 commented 6 years ago

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

brunnerjosh commented 6 years ago

@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!

DinciPhoneDeveloper commented 5 years ago

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

jayhack commented 5 years ago

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