jpsim / Yams

A Sweet and Swifty YAML parser.
https://jpsim.com/Yams
MIT License
1.11k stars 144 forks source link

Build failed when using CocoaPods #241

Open yulingtianxia opened 4 years ago

yulingtianxia commented 4 years ago

Build failed in yaml_private.h line 1:

#include "yaml.h" // Error:'yaml.h' file not found

This can fix it:

#include <yaml.h>
jpsim commented 4 years ago

Please share what steps you took to get this error for someone to be able to help you identify what may be causing the issue.

yulingtianxia commented 4 years ago

Please share what steps you took to get this error for someone to be able to help you identify what may be causing the issue.

Hi, these are my steps:

  1. Create an iOS project with Objective-C template.
  2. Create Podfile and add Yams.
  3. Run pod install and then open generated Xcode workspace file.
  4. Build app target, it will fail on Yams.