xcode 安装 pod 后找不到“.xcworkspace”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39113331/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cannot find '.xcworkspace' after pod install
提问by
I'm very new to iOS developing, so any help is appreciated!
我对 iOS 开发很陌生,所以非常感谢任何帮助!
So I basically installed Cocoapods, installed pod Stripe and basically had issues going forward. I ended up deleting the files for my project, .xcworkspace, Pods folder, my original project, etc. I wanted to start completely over to make it easier and not complicate things more.
所以我基本上安装了 Cocoapods,安装了 pod Stripe 并且基本上遇到了问题。我最终删除了我的项目、.xcworkspace、Pods 文件夹、我的原始项目等的文件。我想完全重新开始以使其更容易,而不是让事情变得更加复杂。
I basically created a new .xcodeproj from a Parse Starter Project. I got set up on Heroku and then I went to install the pod Stripe. I did 'pod install' and it said everything was good and to use the '.xcworkspace' going forward. So I figured everything was fine. I went to look for the '.xcworkspace' file and it's nowhere to be found on my computer.
我基本上从 Parse Starter Project 创建了一个新的 .xcodeproj。我在 Heroku 上进行了设置,然后我去安装了 pod Stripe。我做了“pod install”,它说一切都很好,可以继续使用“.xcworkspace”。所以我认为一切都很好。我去寻找“.xcworkspace”文件,但在我的电脑上找不到它。
Then I went back to Terminal and did 'pod install' again, I'm getting a new message that doesn't include 'use the .xcworkspace file going forward'.
然后我回到终端并再次执行“pod install”,我收到一条不包含“使用 .xcworkspace 文件”的新消息。
Any help so I can get Stripe up and running is appreciated!! Thank you!!
感谢任何帮助我可以启动和运行 Stripe !谢谢!!
采纳答案by Vasily Bodnarchuk
回答by Dravidian
If you could start over again , do that.
如果你可以重新开始,那就这样做吧。
After creating a new XcodeProject project in your downloads folder named Thrill
在名为Thrill 的下载文件夹中创建一个新的 XcodeProject 项目后
Open TERMINAL , navigate to your project.
打开 TERMINAL ,导航到您的项目。
Instead of
代替
cd Users/deborah/Downloads/Thrill/Thrill.xcodeproj
use
用
cd ~/Downloads/Thrill
1.) Run pod init
1.) 运行 pod init
Never open your PodFilewith TextEdit, use some other editor for eg. sublimeText2
永远不要用TextEdit打开你的PodFile,使用其他一些编辑器,例如。崇高文本2
If you are already using cocoapods integrate parse using cocoapods only no need to import their frameworks separately .
如果您已经在使用 cocoapods 集成解析,只需使用 cocoapods 就不需要单独导入它们的框架。
Your podfile :-
你的播客文件:-
use_frameworks!
target 'Thrill' do
pod 'Parse'
pod 'Stripe'
pod 'PaymentKit'
end
This should install both parse and bolts for you in your Thrill
project
这应该在您的Thrill
项目中为您安装 parse 和 bolts
2.) Run pod install
...
2.) 运行pod install
...