Xcode6Empty Application在创建新项目时删除了模板.我们如何Xcode6在早期版本中创建一个空的应用程序(没有Storyboard)?
当我在正确的目录中键入"pod install"时,我总是得到这个
分析依赖关系
[!] Could not automatically select an Xcode project. Specify one in your Podfile like so:
project 'path/to/Project.xcodeproj'
Run Code Online (Sandbox Code Playgroud)
podfile
platform :ios, '8.0'
use_frameworks!
target 'Posting' do
pod 'ALCameraViewController'
end
Run Code Online (Sandbox Code Playgroud)
我在可以找到Podfile的项目目录中.
我即将迁移我的应用程序以使用CocoaPods.我当前的目录结构如下图所示.我有一个包含3个项目(一个工作空间ipad,ipod,common).有建立在目标ipad和ipod项目上的依赖common项目.
MyGreatApp
|
+-- MyGreatApp.xcworkspace
|
+-- ipad
| |
| +-- ipad.xcodeproj
| +-- (source code)
|
+-- ipod
| |
| +-- ipod.xcodeproj
| +-- (source code)
|
+-- common
|
+-- common.xcodeproj
+-- (source code)
Run Code Online (Sandbox Code Playgroud)
我的问题是,我应该如何将其迁移到CocoaPods?看起来CocoaPods为Podfile您创建的每个创建一个新工作区.我想保留我的3项目工作区结构,因为它似乎可以很好地保持所有内容.我应该Podfile为每个项目创建一个目标和一个Specfile共同项目吗?我如何在XCode中设置它呢?
可可豆 1.1.1
Xcode 8.1 测试版
想要添加 Firebase/Core pod
播客文件
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'AddPodAdMob' do
source 'https://github.com/CocoaPods/Specs.git' do
use_frameworks!
pod 'Firebase/Core'
end
end
Run Code Online (Sandbox Code Playgroud)
如果不添加源,它就不会创建.xcworkspace文件。
现在在 pod install 命令之后显示这个。
Pod installation complete! There are 0 dependencies from the Podfile and 0 total pods installed.
[!] The Podfile does not contain any dependencies.
Run Code Online (Sandbox Code Playgroud)
任何帮助请...
我在安装CocoaPods时遇到问题.我已经用谷歌搜索了一个解决方案,并按照我如何选择我的Podfile中的项目的答案?我收到错误:无法找到目标'Pods'的Xcode项目.谁能说我做错了什么?
Michaels-MacBook-Air:~ michael$ cd ~/Documents/Chinese\ Restaurants/
Michaels-MacBook-Air:Chinese Restaurants michael$ pod install
[in /Users/michael]
Analyzing dependencies
[!] Could not automatically select an Xcode project. Specify one in your Podfile like so:
xcodeproj 'path/to/Project.xcodeproj'
Michaels-MacBook-Air:Chinese Restaurants michael$ cd ~/Documents/Chinese\ Restaurants/Chinese\ Restaurants.xcodeproj/
Michaels-MacBook-Air:Chinese Restaurants.xcodeproj michael$ pod setup
Setting up CocoaPods master repo
Already up-to-date.
Setup completed (read-only access)
Michaels-MacBook-Air:Chinese Restaurants.xcodeproj michael$ touch Podfile
Michaels-MacBook-Air:Chinese Restaurants.xcodeproj michael$ open -e Podfile
Michaels-MacBook-Air:Chinese Restaurants.xcodeproj michael$ pod install
Analyzing dependencies
[!] Could …Run Code Online (Sandbox Code Playgroud)