我正在使用 Shopify SDK 。我成功集成了它,但问题是当我尝试从 shopify 获取收藏时,我的应用程序崩溃了?
我已关注 this shopify提供的教程。
代码
// Shopify Initializtion
BUYClient *client;
client = [[BUYClient alloc] initWithShopDomain:SHOP_DOMAIN
apiKey:API_KEY
appId:APP_ID];
[client getCollectionsPage:1 completion:^(NSArray<BUYCollection *> * collections, NSUInteger page, BOOL reachedEnd, NSError *error)
{
// here get a collection
}];
崩溃
请帮我把这个短路。
Best Answer-推荐答案 strong>
对你来说好消息是我本周早些时候解决了这个问题!您可能正在使用他们目前存在一些问题的静态框架(我认为他们会更新他们的文档以反射(reflect)这一点)。
这是我在他们的 GitHub 问题板上写的答案:
This stack-overflow answer ended up being the solution:
https://stackoverflow.com/a/29453132 I had to take the "Mobile Buy
SDK.xcdatamodel" from the Mobile Buy SDK project, and put it into my
project (plus make sure it is in compile sources!). After this, my
project works with the static framework.
关于ios - 如何从 Shopify SDK 中获取收藏?,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/40067170/
|