Skip to content

Instantly share code, notes, and snippets.

View dcondrau's full-sized avatar

David Condrau dcondrau

  • Sherpany
  • Zurich
View GitHub Profile
#!/usr/bin/python
################################################################################
'''Command line tool to build PassKit .pkpass files'''
import hashlib
import json
import os
import shutil
@implementation NSString(Additions)
+ (NSString *)stringWithRandomUUID {
CFUUIDRef uuidObj = CFUUIDCreate(kCFAllocatorDefault);//create a new UUID
//get the string representation of the UUID
NSString *uuidString = (NSString*)CFUUIDCreateString(kCFAllocatorDefault, uuidObj);
CFRelease(uuidObj);
return [uuidString autorelease];
}
*.xcodeproj/*.mode1v3
*.xcodeproj/*.pbxuser
*.xcodeproj/*.perspectivev3
.DS_Store
xcuserdata
build
fail