1

I'm looking for a Yaml parser for iOS, to get my Yaml data into dictionary.

I Found already this question asked here : Yaml parser

But, it seems that all these Frameworks are old, and contain ARC compatibility errors.

Have you any idea about which framework to use with xcode 6 and how can I make it functional.

Regards.

Community
  • 1
  • 1
Ali
  • 647
  • 2
  • 10
  • 28

1 Answers1

2

I found through the Pod library, a good Yaml parser. it's called Yaml-framework, To install it :

pod 'YAML-Framework'

Example of usage :

NSMutableDictionary* yaml = [YAMLSerialization objectWithYAMLStream: stream
                                                      options: kYAMLReadOptionStringScalars
                                                        error: &e];

Hope that helps other who are looking for the same thing.

Regards

Ali
  • 647
  • 2
  • 10
  • 28