CocoaPods & GitHub - 获取当前文件
CocoaPods & GitHub - Getting Current Files
我正在使用 Light Blue Bean(蓝牙 Arduino 微控制器)进行 iOS 项目。 SDK保持在GitHub (https://github.com/PunchThrough/Bean-iOS-OSX-SDK) and I'm using CocoaPods. When I updated to xCode 7 I could no longer build the app; I was getting 2 issues of properties not found (it seems they were depreciated in iOS 9). I see someone had already raised the issue on GitHub and it seems that updates were made for iOS 9 compatibility (https://github.com/PunchThrough/Bean-iOS-OSX-SDK/pull/14/files)。我尝试使用 Cocoapods(终端中的 'pod install')重新安装依赖项,认为这会从 GitHub 中提取新文件,但那没有做任何事情。我想知道我是否错误地使用了 CocoaPods。我如何让 Cocoapods 从 GitHub 抓取最新的文件?有人知道我做错了什么吗?
如果您之前安装了旧版本的 pod,请尝试 pod update
而不是 pod install
。
您可以指定提交以在 Podfile 中获取最新版本,例如
pod 'TTTAttributedLabel', :git => 'https://github.com/getaaron/TTTAttributedLabel.git', :commit => 'd358791c7f593d6ea7d6f8c2cac2cf8fae582bc1'
要获取上次提交的 SHA,您可以使用
git rev-parse origin/master | pbcopy
或
查看 github 提交页面。
但我不认为这是 CocoaPods 的问题。我建议您从 Apple Developer 下载中心安装旧版本 Xcode。
并保留 Xcode 的两个版本,直到更新您从 CocoaPods 使用的存储库。要安装 Xcode 的两个版本,只需将 Xcode 6.4 放到您的桌面或类似的地方。
我正在使用 Light Blue Bean(蓝牙 Arduino 微控制器)进行 iOS 项目。 SDK保持在GitHub (https://github.com/PunchThrough/Bean-iOS-OSX-SDK) and I'm using CocoaPods. When I updated to xCode 7 I could no longer build the app; I was getting 2 issues of properties not found (it seems they were depreciated in iOS 9). I see someone had already raised the issue on GitHub and it seems that updates were made for iOS 9 compatibility (https://github.com/PunchThrough/Bean-iOS-OSX-SDK/pull/14/files)。我尝试使用 Cocoapods(终端中的 'pod install')重新安装依赖项,认为这会从 GitHub 中提取新文件,但那没有做任何事情。我想知道我是否错误地使用了 CocoaPods。我如何让 Cocoapods 从 GitHub 抓取最新的文件?有人知道我做错了什么吗?
如果您之前安装了旧版本的 pod,请尝试 pod update
而不是 pod install
。
您可以指定提交以在 Podfile 中获取最新版本,例如
pod 'TTTAttributedLabel', :git => 'https://github.com/getaaron/TTTAttributedLabel.git', :commit => 'd358791c7f593d6ea7d6f8c2cac2cf8fae582bc1'
要获取上次提交的 SHA,您可以使用
git rev-parse origin/master | pbcopy
或 查看 github 提交页面。
但我不认为这是 CocoaPods 的问题。我建议您从 Apple Developer 下载中心安装旧版本 Xcode。
并保留 Xcode 的两个版本,直到更新您从 CocoaPods 使用的存储库。要安装 Xcode 的两个版本,只需将 Xcode 6.4 放到您的桌面或类似的地方。