Skip to content
This repository has been archived by the owner on Apr 7, 2019. It is now read-only.
/ libpbxparser Public archive

C++ library to parse old-style plist files (used in Xcode project files)

License

Notifications You must be signed in to change notification settings

abidon/libpbxparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libpbxparser

C++ library to parse old-style plist files (used in Xcode project files)

  • How to build: make
  • How to use: cp *.{a,hpp} ~/my-super-project
  • Example snippet (prints the root object uid of an xcode project file):
#include <fstream>
#include <iostream>
#include <string>

#include "plist_decoder.hpp"

int main(int argc, const char * argv[]) {
	std::ifstream file("MySuperProject.xcodeproj/project.pbxproj");
	
	std::string content;
	content.assign(std::istreambuf_iterator<char>(file), std::istreambuf_iterator<char>());
	
	pbx::Dictionary document = pbx::PlistDecoder::parse(content);
	
	std::cout << "Root Object UID: " << document["rootObject"].string_value() << '\n';
	
    return 0;
}

About

C++ library to parse old-style plist files (used in Xcode project files)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published