带有XCode 6.3和iOS 8.3的Alamafire SDK错误 [英] Errors with Alamafire SDK with XCode 6.3 and iOS 8.3

查看:80
本文介绍了带有XCode 6.3和iOS 8.3的Alamafire SDK错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人请让我知道这是怎么回事?一个星期以来,我一直陷于困境,搜索无济于事。我将查询发布到Alamofire的开发人员,但仍然没有任何回应。请帮忙!我完全困惑Alamofire集成中的问题。我已经按照每个步骤进行操作,并且与正常运行之前一样,XCode 6.3也会出现此问题。





当我在复制框架下添加框架时,它两次添加框架以显示不同路径,但是当我去那里时,它会将我带到相同的位置。这是屏幕截图。





我还为该问题制作了视频。可能可以更好地帮助您。请参阅此处



此外,最新的SDK也包含用于MAC OS的框架,但我没有添加。希望以上所有信息对您有所帮助。谢谢!

解决方案

如果没有以与您相同的方式设置的示例项目,这将很难调试。实际的。如果您已将Alamofire项目导入到项目中,则在将其添加到 Copy Frameworks 构建阶段时,不会看到两个版本的Alamofire。如果您确实想快速解决此问题,则有两个选择。



选择1



增加示例项目到Github并在此处链接。然后,我们可以查看该项目,并快速访问问题所在。造成此问题如此困难的主要原因是,大概有10种不同的原因可能是造成此问题的原因。因此,对于您而言,创建一个示例项目要比我们四处走动(我们已经从@Masterfego开始)要快得多。



选项2



快来尝试一下 CocoaPods 。这是一个很棒的依赖管理系统,它将永远减轻这些烦人的项目管理问题。 CocoaPods本身具有出色的文档。此外,Alamofire 自述文件详细介绍了如何使用CocoaPods将Alamofire添加到您的项目中。 p>




推荐



我强烈建议您选择选项2 。这绝对是前进的最快方法,并且您不会后悔改用更强大的依赖性管理系统。它使管理库更新和新安装非常简单。



如果您最终选择了选项1 ,那么我来看看您的示例项目,修改我的答案。


Anyone please let me know what is this all about? I am stuck since a week on this and no help from searching. I posted my query to the developer of Alamofire but still no response. Please help! I am totally confused what is wrong in the integration of Alamofire. I have followed every step and this issue is coming with XCode 6.3 as before it was running properly.

When I am adding the Framework under "Copy Frameworks", it is adding the Framework twice showing different paths but when I am Going to there location, it is taking me to the same location. Here is the screen shot.

I have also created the video for that issue. May be that can help in a better way. Please see HERE

Moreover, latest SDK contains framework for MAC OS as well but I didn't add that. I hope all the above information will help you in helping me. Thanks!

解决方案

This is going to be incredibly difficult to debug without a sample project that is set up in the same manner as your actual one. If you had imported Alamofire project into your project, you wouldn't see two versions of Alamofire appear when you add it to the Copy Frameworks build phase. If you truly want to resolve this quickly, you have two options.

Option 1

Push up a sample project to Github and link it here. We can then take a look at the project and pretty quickly access what the issue is. The main reason it's so difficult here is that there are roughly 10 different things that could be the cause of the issue. Therefore, it's much faster for you to create a sample project than for us to go round-and-round (which we've already started with @Masterfego).

Option 2

Take the leap and try out CocoaPods. It is a fantastic dependency management system that will forever alleviate these annoying types of project management issues. CocoaPods itself has fantastic documentation. Also, the Alamofire README breaks down in detail how to add Alamofire to your project using CocoaPods.


Recommendation

I would highly encourage you to choose Option 2. That is definitely the fastest way forward and you won't regret moving to a more robust dependency management system. It makes managing library updates and new installations extremely simple.

If you do end up going with Option 1, then I'll take a look at your sample project and revise my answer.

这篇关于带有XCode 6.3和iOS 8.3的Alamafire SDK错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆