gpt4 book ai didi

xcode - Pod Init 没有创建 xcworkspace?

转载 作者:行者123 更新时间:2023-12-03 22:16:55 27 4
gpt4 key购买 nike

我启动了一台新 Mac,运行 sudo gem install cocoapods。完成 pod 初始化。 Pod 文件已创建,但没有 .xcworkspace 文件

使用 Xcode 9.3

任何帮助表示赞赏。

尝试:
卸载 cocoapods 并重新安装,但没有运气。

最佳答案

pod install将创建 .xcworkspace .pod init只会创建 Podfile 文件。 ——

开始时:

>$ 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 init :
>$ 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 install :
>$ 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

关于xcode - Pod Init 没有创建 xcworkspace?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49792332/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com