相关疑难解决方法(0)

如何在没有Storyboard的Xcode中创建一个空应用程序

Xcode6Empty Application在创建新项目时删除了模板.我们如何Xcode6在早期版本中创建一个空的应用程序(没有Storyboard)?

xcode storyboard ios xcode6

140
推荐指数
10
解决办法
7万
查看次数

无法自动选择Xcode项目

当我在正确的目录中键入"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的项目目录中.

ios cocoapods xcode7

31
推荐指数
8
解决办法
3万
查看次数

使用CocoaPods的多个应用程序的项目/工作区结构

我即将迁移我的应用程序以使用CocoaPods.我当前的目录结构如下图所示.我有一个包含3个项目(一个工作空间ipad,ipod,common).有建立在目标ipadipod项目上的依赖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中设置它呢?

xcode ios cocoapods

25
推荐指数
1
解决办法
8909
查看次数

Podfile 不包含任何依赖项

可可豆 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)

任何帮助请...

xcode ios cocoapods firebase swift3

6
推荐指数
0
解决办法
4418
查看次数

安装CocoaPods时出现问题 - 已在其他地方尝试过解决方案

我在安装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)

cocoapods

0
推荐指数
1
解决办法
2202
查看次数

标签 统计

cocoapods ×4

ios ×4

xcode ×3

firebase ×1

storyboard ×1

swift3 ×1

xcode6 ×1

xcode7 ×1