库Alamofire安装中可能的错误 [英] Possible error in the installation of the library Alamofire

查看:167
本文介绍了库Alamofire安装中可能的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的,很抱歉这个问题。
我已经使用上一篇文章找不到Alamofire框架来找到解决方案,但是我想知道这是我的安装错误还是依赖于其他事物。
创建项目时,使用git init初始化项目,
我通过终端Alamofìre添加存储库(我使用github上的指南),当Alamofire.xcodeproj将文件拖到您的应用程序项目导航器中时20分之一的结果中,该库始终是alamofire.framework红色,好像不存在一样。
我为我的英语破裂表示歉意。
我现在已经在上一篇文章中解决了,执行导入Alamofire不会给我任何错误,但是import.framework看起来像红色而不是黑色一样是正常的吗?
感谢所有人

I'm new, so sorry for the question. I have already used the previous post "Alamofire framework not found" to find the solution but I wanted to know if it was my mistake in the installation or depended on something else. When I create the project, initialize the project with git init, I add the repository via the terminal Alamofìre (I use the guide on github), when Alamofire.xcodeproj drag the file into your app project navigator of the result 1 time out of 20 is that the library is always alamofire.framework red as if does not exist. I apologize for my broken English. I have now solved with the previous post, doing import Alamofire does not give me any error, but it is normal that import.framework appears red and not black as in yours? Thanks to all

推荐答案

如果您询问将要构建的链接库/框架的颜色(添加了子项目/作为依赖项),是的,对我来说,那些库总是红色的。这是正确的-不是错误,因为lib / framework将被构建并且目前不存在。

If you asks about color of linked libs/frameworks that will be builded (added subproject/as dependency) so YES, for me those libs always red. And this is right - not error because lib/framework will be builded and doesn't exist at this time.

但是如果您与已构建的lib / framework链接,它们应该是

But if you links with builded lib/framework they should be listed in black color.

这是两个示例,一个低于其他两个安装了alamofire的应用程序。
如您在更多Alamofire中的第一个中看到的那样,框架为红色,而下面的为黑色。
并执行相同的步骤,所改变的是,我们在带有TabBar的通用应用程序中谈论的是另一个,而另一个是仅适用于iphone的应用程序。
我的问题是Alamofire是否可同时在两个app..ti中使用。谢谢您的好意

These are two examples one below the other two application with alamofire installed. As you can see in the first in more Alamofire.framework is red while the one below is black. And execute the same steps, the thing that changes is that we talk about in a universal application with a TabBar and the other is an app only for iphone. My question was whether Alamofire works in both the app..ti thank you for your kindness

这篇关于库Alamofire安装中可能的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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