hit counter

Timeline

My development logbook

Pod Spec Lint

Wanted to make a custom podspec to fix the JSONKit compilation error, as mentioned here

Made a first cut and wanted to do a sanity check. At first it did not look good.

1
2
3
4
$ pod spec lint /Users/antkong/Documents/Cocoa/jsonkit/JSONKit/JSONKit.ak.spec
pod spec lint /Users/antkong/Documents/Cocoa/jsonkit/JSONKit/JSONKit.ak.spec

[!] Unable to find a spec named `/Users/antkong/Documents/Cocoa/jsonkit/JSONKit/JSONKit.ak.spec'.

There are several issues here:

  • the pod lint does not take a file parameter
  • the pod runtime expects the spec file to use file extension podspec.

Fixed the above and committed the code change. Now I got these error messages:

1
2
3
4
5
6
7
8
9
10
11
12
13
$ pod spec lint

 -> JSONKit (1.6)
    - WARN  | Git sources should specify a tag.
    - NOTE  | [xcodebuild]  warning: no rule to process file 'JSONKit/JSONKit.podspec' of type text for architecture x86_64
    - NOTE  | [xcodebuild]  JSONKit/JSONKit.m:2600:77: warning: bitmasking for introspection of Objective-C object pointers is strongly discouraged [-Wdeprecated-objc-pointer-introspection]
    - WARN  | Unable to find a license file
    - NOTE  | [xcodebuild]  warning: no rule to process file 'JSONKit/JSONKit.podspec' of type text for architecture armv7
    - NOTE  | [xcodebuild]  warning: no rule to process file 'JSONKit/JSONKit.podspec' of type text for architecture armv7s

Analyzed 1 podspec.

[!] The spec did not pass validation.

Need to work on the two warnings