将Pod文件添加到我的Xcode项目中的问题 [英] Issues with adding a pod file to my Xcode project

查看:62
本文介绍了将Pod文件添加到我的Xcode项目中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用终端在目录中为我的项目创建pod文件,但是我遇到了以下所示的问题,有什么建议吗?

I've been trying to create a pod file for my project in my directory using the terminal, but I'm running into the issue shown below, any suggestions?

我尝试重新启动Mac,甚至尝试将其添加到其他项目中,但无济于事。

I tried restarting my Mac and even tried to add one to a different project but to no avail. Also couldn't seem to find any other instances of this occurring.

以下是终端输出:

Matts-Mac-mini:~ sarabytestudios$ cd /Users/sarabytestudios/Desktop/Blurr\Messenger/Blurr\ Messenger.xcodeproj 
Matts-Mac-mini:Blurr Messenger.xcodeproj sarabytestudios$ pod init
[!] No xcode project found, please specify one
Matts-Mac-mini:Blurr Messenger.xcodeproj sarabytestudios$ 


推荐答案

必须将 PodFile Blurr Messenger.xcodeproj

在您的情况下,应位于 / Users / sarabytestudios / Desktop / Blurr\Messenger /

In your case should be in /Users/sarabytestudios/Desktop/Blurr\Messenger/.

在该目录中,创建一个名为 PodFile 必须在其中声明要包含在项目中的可可足类(可以手动完成或调用 pod init )。您必须键入 pod install

In that directory, create a file called PodFile where you must declare the cocoapods you want to include in your project (you can do it by hand or call pod init). The you must type pod install.

之后,必须打开名为<$ c $的新生成的文件。 c>模糊Messenger.xcworkspace

这篇关于将Pod文件添加到我的Xcode项目中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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