菜鸟教程小白 发表于 2022-12-11 17:51:08

ios - 如何从 Shopify SDK 中获取收藏?


                                            <p><p>我正在使用 <code>Shopify SDK</code>。我成功集成了它,但问题是当我尝试从 shopify 获取收藏时,我的应用程序崩溃了?</p>

<p>我已关注 <a href="https://github.com/Shopify/mobile-buy-sdk-ios" rel="noreferrer noopener nofollow">this</a> shopify提供的教程。</p>

<p><strong>代码</strong></p>

<pre><code>// Shopify Initializtion


BUYClient *client;

client = [ initWithShopDomain:SHOP_DOMAIN
                                                   apiKey:API_KEY
                                                    appId:APP_ID];

[client getCollectionsPage:1 completion:^(NSArray&lt;BUYCollection *&gt; *collections, NSUInteger page, BOOL reachedEnd, NSError *error)
{

    // here get a collection

}];
</code></pre>

<p><strong>崩溃</strong> </p>

<p> <a href="/image/j0VLC.png" rel="noreferrer noopener nofollow"><img src="/image/j0VLC.png" alt="enter image description here"/></a> </p>

<p>请帮我把这个短路。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>对你来说好消息是我本周早些时候解决了这个问题!您可能正在使用他们目前存在一些问题的静态框架(我认为他们会更新他们的文档以反射(reflect)这一点)。</p>

<p>这是我在他们的 GitHub 问题板上写的答案:</p>

<blockquote>
<p>This stack-overflow answer ended up being the solution:
<a href="https://stackoverflow.com/a/29453132" rel="noreferrer noopener nofollow">https://stackoverflow.com/a/29453132</a> I had to take the &#34;Mobile Buy
SDK.xcdatamodel&#34; 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.</p>
</blockquote></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 如何从 Shopify SDK 中获取收藏?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/40067170/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/40067170/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 如何从 Shopify SDK 中获取收藏?