Xcode Pod Init未创建xcworkspace?
我已经开始了一个新的Mac,ran sudo gem安装cocoapods。完成pod初始化。Pod文件已创建,但没有.xcworkspace文件 使用Xcode 9.3 谢谢你的帮助 尝试:Xcode Pod Init未创建xcworkspace?,xcode,cocoapods,Xcode,Cocoapods,我已经开始了一个新的Mac,ran sudo gem安装cocoapods。完成pod初始化。Pod文件已创建,但没有.xcworkspace文件 使用Xcode 9.3 谢谢你的帮助 尝试: 卸载cocoapods并重新安装时运气不佳。pod安装将创建.xcworkspace。 pod init只会创建Podfile文件 开始时: >$ ls -la drwxr-xr-x 5 ... ... 170 12 avr 11:04 . drwxr-xr-x 34 ... ...
卸载cocoapods并重新安装时运气不佳。pod安装将创建
.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后:
>$ 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,添加的文件夹:Podspod init无法创建仅创建pod文件的.xcworkspace文件。pod安装生成.xcworkspace文件。pod安装将创建.xcworkspace。pod init
只会创建一个pod文件
文件。@Larme我建议你回答这个问题。新手错了!是的,是的。哎呀。