shoutem / react-native-shopify

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

Installation and Linking issues. #41

Open ConSou opened 5 years ago

ConSou commented 5 years ago

Hello,

I am trying to integrate react-native-shopify into my current react native project. I was very happy to see that someone had built a way to integrate the Mobile-Buy-SDK and appreciate you creating this.

I am currently having some trouble with the installation and build process when using react-native-shopify. When following the instructions in the README.md I install using npm install react-native-shopify --save then include the Mobile-BUY-SDK by installing as a Pod. At this point the project will build successfully. Following this I run react-native link react-native-shopify when attempting to build after this I see this error;

Screen Shot 2019-08-27 at 3 16 39 PM

I have attempted linking manually and get the same issue each time. I have done quite a bit of troubleshooting and have not been able to figure out how to resolve this issue.

Any help would be greatly appreciated!

Xcode version: 10.3 React native version: 0.59.9 Pod version: 1.7.5 Shopify buy sdk version: 3.6.0

xGum commented 5 years ago

@ConSou did you manage to solve this problem somehow? I have exactly the same error

ConSou commented 5 years ago

@xGum, I was able to find what I believe caused this issue but unable to resolve the overall problem of using the iOS Buy SDK with this library. I found that when using iOS Buy SDK version 2.2.0 this issue was resolved. The bridge worked as expected but the problem with this is that Shopify deprecated the Mobile App Sales channel which provided the necessary key to create a checkout using version 2.2.0. The available Storefront API and Admin API keys won't allow for a checkout to be created. It doesn’t seem that this library will bridge to newer versions (3.0 and up) of the the iOS Buy SDK which is necessary to create a native checkout. If this is incorrect I'd love to hear how to solve this from someone working on the react-native-shopify library. On Shopify's side they have made it quite difficult and offers little in support or advise. I am currently working on a bridge for the newer versions and can share it once completed.

amie-wilt commented 5 years ago

@ConSou @xGum I'm running into this as well. As @ConSou said, I got it going by dropping down to iOS Buy SDK version 2.0 as suggested in another issue, but then got stuck at checkout due to a deprecated version_date property. Forgetting why I bumped down to v2 in the first place, I upgraded only to circle back to this error.

I'm not too familiar with Swift/Obj-C... @ConSou I'd love if you'd share what you're working on once it's complete, and if I come across any fixes/solutions on my end I'll definitely post back here.

Also, do either of you have any idea of ongoing maintenance on this package? It seems to be sparse as of late..

amie-wilt commented 5 years ago

Any luck on this @ConSou?

ConSou commented 5 years ago

@amie-wilt I have made some progress and don't believe that finishing it should be too complex but with some other projects I have not been able to commit as much time as I would like to completing it. Not sure when I will have it finished but will share as soon as possible. Sorry for any troubles this may cause