如何检查当前的RestKit版本

时间:2022-06-30 20:32:23

I inherited an iOS project at work and am getting the feeling that it's using an older version of RestKit. Where can I check?

我在工作中继承了一个iOS项目,并且感觉它正在使用旧版本的RestKit。我在哪里可以检查?

3 个解决方案

#1


8  

After getting more familiar with how RestKit is actually linked to the project, where the files live at, etc, I stumbled across the answer:

在更熟悉RestKit如何实际链接到项目,文件所在的位置等之后,我偶然发现了答案:

  • Browse to the location of your xCode project containing RestKit
  • 浏览到包含RestKit的xCode项目的位置
  • Open or cd into the RestKit folder
  • 打开或cd进入RestKit文件夹
  • Open VERSION in vim or other text editor and the version number will be listed there
  • 在vim或其他文本编辑器中打开VERSION,版本号将在那里列出

I guess I was being pretty naive as to the location of the RestKit files. Should've checked there for version info first.

我想我对RestKit文件的位置非常天真。应该先检查版本信息。

#2


1  

In my version of RestKit (latest as of Feb 20, 2013), the file under the xcode workspace folder with the version info in it is named "RestKit.podspec" (I installed RestKit with CocoaPods). Here is what to look for at the top of the file:

在我的RestKit版本中(最新截至2013年2月20日),xcode工作区文件夹下的文件及其中的版本信息被命名为“RestKit.podspec”(我用CocoaPods安装了RestKit)。以下是在文件顶部查找的内容:

Pod::Spec.new do |s|
    s.name         =  'RestKit'
    s.version      =  '0.20.0rc1'
    ... etc

#3


0  

If you are using CocoaPods, just run pod install and you will get a printout with the following information.

如果您正在使用CocoaPods,只需运行pod install,您将获得包含以下信息的打印输出。

Analyzing dependencies
Downloading dependencies
Using AFNetworking (1.3.3)
Using RestKit (0.20.3)
Using SOCKit (1.1)
Using TransitionKit (1.1.1)
Generating Pods project
Integrating client project

#1


8  

After getting more familiar with how RestKit is actually linked to the project, where the files live at, etc, I stumbled across the answer:

在更熟悉RestKit如何实际链接到项目,文件所在的位置等之后,我偶然发现了答案:

  • Browse to the location of your xCode project containing RestKit
  • 浏览到包含RestKit的xCode项目的位置
  • Open or cd into the RestKit folder
  • 打开或cd进入RestKit文件夹
  • Open VERSION in vim or other text editor and the version number will be listed there
  • 在vim或其他文本编辑器中打开VERSION,版本号将在那里列出

I guess I was being pretty naive as to the location of the RestKit files. Should've checked there for version info first.

我想我对RestKit文件的位置非常天真。应该先检查版本信息。

#2


1  

In my version of RestKit (latest as of Feb 20, 2013), the file under the xcode workspace folder with the version info in it is named "RestKit.podspec" (I installed RestKit with CocoaPods). Here is what to look for at the top of the file:

在我的RestKit版本中(最新截至2013年2月20日),xcode工作区文件夹下的文件及其中的版本信息被命名为“RestKit.podspec”(我用CocoaPods安装了RestKit)。以下是在文件顶部查找的内容:

Pod::Spec.new do |s|
    s.name         =  'RestKit'
    s.version      =  '0.20.0rc1'
    ... etc

#3


0  

If you are using CocoaPods, just run pod install and you will get a printout with the following information.

如果您正在使用CocoaPods,只需运行pod install,您将获得包含以下信息的打印输出。

Analyzing dependencies
Downloading dependencies
Using AFNetworking (1.3.3)
Using RestKit (0.20.3)
Using SOCKit (1.1)
Using TransitionKit (1.1.1)
Generating Pods project
Integrating client project