我正在尝试添加一个由cocoapods添加的pod,我正在使用swift 3,而pod(SQlite.swift).
我试图使用没有最新swift版本的高手,但是有一个分支为swift 3.
那么我应该如何设置我的podfile来下载特定的分支?可能吗?
这是我的podfile:
platform :ios, '10.0'
target 'RedShirt' do
use_frameworks!
# Pods for RedShirt
pod 'SQLite.swift', :git => 'https://github.com/stephencelis/SQLite.swift.git'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
Run Code Online (Sandbox Code Playgroud) 所以这是我的podfile:
workspace 'WSPhoto.xcworkspace'
platform :ios, :deployment_target => "6.1"
xcodeproj 'WSPhoto'
pod 'Parse-iOS-SDK', '~> 1.2.17'
pod 'REActivityViewController', :git => 'https://github.com/ramsel/REActivityViewController.git', :commit => 'f027011e8159393cf678d7c67c408891b609a6ef'
pod 'SWTableViewCell', :git => 'https://github.com/ramsel/SWTableViewCell.git', :commit => '6f4e55e554c1b26ff3c850eb331273b536e4f900'
pod 'ELCImagePickerController', '~> 0.2.0'
pod 'ChimpKit'
Run Code Online (Sandbox Code Playgroud)
我正在根据前一个问题中的建议分配一些repos并将Cocoapods指向我的forks的特定提交:
但是,我收到以下错误pod install --verbose:
Fetching external sources
-> Pre-downloading: `REActivityViewController` from `https://github.com/ramsel/REActivityViewController.git`, commit `f027011e8159393cf678d7c67c408891b609a6ef`
> GitHub download
$ /usr/bin/git config core.bare
true
$ /usr/bin/git config core.bare
true
$ /usr/bin/git rev-list --max-count=1
f027011e8159393cf678d7c67c408891b609a6ef
fatal: bad object f027011e8159393cf678d7c67c408891b609a6ef
[!] Failed: /usr/bin/git rev-list --max-count=1 …Run Code Online (Sandbox Code Playgroud) 我正在努力寻找一种方法将我们创建的 Xcode 框架打包为一个只能在内部使用的 Pod(不是公开的,也不是在 github 上)。
如何修改.podspec以从我的开发机器上的本地 Xcode 项目构建 SDK?