简体   繁体   English

如何在Xcode 9中添加自定义库

[英]How to add custom library in Xcode 9

I have updated to Xcode 9 and now trying to add SwiftyJson to my project. 我已经更新到Xcode 9,现在尝试将SwiftyJson添加到我的项目中。 However, since there is a new interface for Xcode 9, I have no idea where to add this library. 但是,由于Xcode 9有一个新接口,所以我不知道在哪里添加该库。

在此处输入图片说明

Based on your screenshot, you are using Cocoapods. 根据您的屏幕截图,您正在使用Cocoapods。 Assuming you are executing pod install appropriately when SwiftyJSON to your Podfile, you don't need to do anything else in Xcode. 假设您在SwiftyJSON到Podfile时正确执行了pod install ,则无需在Xcode中执行任何其他操作。 Simply import SwiftyJSON in the file you're attempting to use it in and you should be all set. 只需import SwiftyJSON您要在其中使用的文件中,就应该import SwiftyJSON

Additionally, all of the methods listed in SwiftyJSON's read me are still applicable to Xcode 9. 此外,SwiftyJSON的自述文件中列出的所有方法仍然适用于Xcode 9。

Finally, Xcode 9's interface for managing a project/target is not that different at all. 最后,Xcode 9的用于管理项目/目标的界面根本没有什么不同。 I think you're problem is that you have the project selected, but you want to be looking inside your target instead. 我认为您的问题是您已选择了项目,但您想查看目标内部。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM