snej / myutilities Goto Github PK
View Code? Open in Web Editor NEWObjective-C Cocoa utility functions/methods I can't live without
License: Other
Objective-C Cocoa utility functions/methods I can't live without
License: Other
I tried to use myCrypto library and followed the setup process. I just added the Xcode.proj file (my crypto) to an small cocoa app. Then change build phases adding into "Build Phases" to Target Dependencies (Static Lib Mycrypto), then to Link binary with Libraries - libMyCrypto.a.
And then just pressed Build and it fails with the following message:
clang: error: argument unused during compilation: '-fnested-functions'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
for library
ProcessPCH /Users/ilia/Library/Developer/Xcode/DerivedData/RandomGenerator-dwnttcbneqcvxiavyzkeswjjyavp/Build/Intermediates/PrecompiledHeaders/MYUtilities_Prefix-bpigycgguxphvwclrxcajutfidce/MYUtilities_Prefix.pch.pch ../MYUtilities/MYUtilities_Prefix.pch normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
I am using OS X 10.9.5, Xcode 6.
Would please have a look and help?
Hey
Thanks for this repo - it's the only place I've been able to find code that can generate a self-signed certificate without using loads of deprecated CDSA/OpenSSL APIs!
One thing I am trying to figure out though, is how to replace kCertTemplate with my own certificate template. Mainly I would like to do this so that my certs can appear in the Keychain with a name relating to my own app (Hammerspoon), rather than "Anonymous".
I generated myself a CA and then created/signed a certificate from that, did the hexdump and replaced the contents of kCertTemplate with the first 499 bytes of my certificate, but SecItemAdd() returns an error that the certificate format is invalid.
My suspicion is that this is because the various kFooOffset values in MYAnonymousIdentity.m are hard-coded for the particular certificate you generated.
So, I was wondering if it would be possible to get some more information about how you generated the template certificate and figured out those offsets.
(I did also attempt to use the MyCrypto code to generate a certificate completely from scratch, but it seemed like a pretty large amount of code to drop into a tiny plugin that happens to need a self-signed certificate!)
Hello Jens,
I noticed you released some of your utilities classes under the BSD license (i.e. ExceptionUtils) but I was wondering if you would be willing to release the rest as well under an opensource license as well. In particular, we would be interested in using (parts of) your MYDynamicObject class but at the moment we are unable to do so as there is no license provided.
Hi Jens!
I think if you have a property e.g. "UUID", the code seems to try to make the setter "setuUID:", which of course doesn't work. I have a patch that fixes the issue but it's probably crap performance-wise and my head is killing me, so I won't be able to submit a pull request until tomorrow. And it's really a very minor thing.
@Property (weak) JSModel *someModelProp;
Class MYClassFromType(const char* propertyType) {
size_t len = strlen(propertyType);
if (propertyType[0] != _C_ID || propertyType[1] != '"' || propertyType[len-1] != '"')
return NULL;
char className[len - 2];
strlcpy(className, propertyType + 2, len - 2);
return objc_getClass(className);//className == "@\"JSModel<JSProtocol>\""
}
NULL is returned
NSValue* _box(const void *value, const char *encoding)
Is supposed to return NSValue * but may return NSString * (line 97)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.