Pod Init不创建xcworkspace? [英] Pod Init not creating a xcworkspace?
本文介绍了Pod Init不创建xcworkspace?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经启动了新的Mac,运行了sudo gem install cocoapods.完成pod init.已创建Pod文件,但没有.xcworkspace文件
I've started a new Mac, ran sudo gem install cocoapods. Done pod init. The Pod file is created but without the .xcworkspace file
使用Xcode 9.3
Using Xcode 9.3
任何帮助表示赞赏.
已尝试:卸载cocoapods,然后重新安装,就没有运气了.
Tried: Uninstalling cocoapods and reinstalling with no luck.
推荐答案
pod安装
将创建 .xcworkspace
. pod init
将仅创建Podfile文件.–
The pod install
will create the .xcworkspace
.
The pod init
will just create the Podfile file. –
开始时:
>$ ls -la
drwxr-xr-x 5 ... ... 170 12 avr 11:04 .
drwxr-xr-x 34 ... ... 1156 12 avr 10:03 ..
drwxr-xr-x 12 ... ... 408 12 avr 10:33 MyProjectName
drwxr-xr-x 5 ... ... 170 12 avr 10:17 MyProjectName.xcodeproj
pod初始化
后:
>$ pod init
>$ ls -la
total 8
drwxr-xr-x 5 ... ... 170 12 avr 11:04 .
drwxr-xr-x 34 ... ... 1156 12 avr 10:03 ..
drwxr-xr-x 12 ... ... 408 12 avr 10:33 MyProjectName
drwxr-xr-x 5 ... ... 170 12 avr 10:17 MyProjectName.xcodeproj
-rw-r--r-- 1 ... ... 254 12 avr 11:04 Podfile
=>添加的文件: Podfile
pod安装后
:
>$ pod install
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `MyProjectName.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 0 dependencies from the Podfile and 0 total pods installed.
[!] The Podfile does not contain any dependencies.
[!] Automatically assigning platform `ios` with version `11.2` on target `MyProjectName` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
>$ ls -la
total 16
drwxr-xr-x 8 ... ... 272 12 avr 11:05 .
drwxr-xr-x 34 ... ... 1156 12 avr 10:03 ..
drwxr-xr-x 12 ... ... 408 12 avr 10:33 MyProjectName
drwxr-xr-x 5 ... ... 170 12 avr 11:05 MyProjectName.xcodeproj
drwxr-xr-x 3 ... ... 102 12 avr 11:05 MyProjectName.xcworkspace
-rw-r--r-- 1 ... ... 254 12 avr 11:04 Podfile
-rw-r--r-- 1 ... ... 77 12 avr 11:05 Podfile.lock
drwxr-xr-x 7 ... ... 238 12 avr 11:05 Pods
=>添加的文件: MyProjectName.xcworkspace , Podfile.lock ,添加的文件夹: Pods
=> File added: MyProjectName.xcworkspace, Podfile.lock, Folder added: Pods
这篇关于Pod Init不创建xcworkspace?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文