菜鸟教程小白 发表于 2022-12-13 15:08:50

ios - 在没有 AFNetworking 的情况下安装 RestKit


                                            <p><p>我有一个正在进行的项目,我将 <code>AFNetworking</code> 用于请求/响应层。我想为我的 <code>JSON</code> 响应使用 <code>RestKit</code> 的 <code>ObjectMapping</code> 功能。我试图通过 <code>cocoapods</code> 安装 <code>RestKit</code> 但它会与已安装的 <code>AFNetworking</code> pod 发生冲突。所以想问问有没有办法只安装<code>RestKit</code>的<code>ObjectMapping</code>模块,不安装网络层?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>你可以看这里<a href="https://github.com/RestKit/RestKit/issues/2028" rel="noreferrer noopener nofollow">https://github.com/RestKit/RestKit/issues/2028</a>正在讨论在没有 AFNetworking 依赖的情况下创建 RestKit 分支的可能性。同时你可以把 AFNetworking 放到你的 Podfile 中,让 RestKit 包含它;这种方法的唯一缺点是你被困在 AFNetworking 1.x 上。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 在没有 AFNetworking 的情况下安装 RestKit,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/35894371/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/35894371/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 在没有 AFNetworking 的情况下安装 RestKit