You cannot set values for the instance variables on the class. After creating and registering the class you can create an instance of the class:
id myInstance = [[objectClass alloc] init];
and then set values for the instance variables on this object:
for (NSString *key in dictionaryObjectKeys)
{
const char *iVarName = [key cStringUsingEncoding:NSASCIIStringEncoding];
id value = dictionaryObject[key];
Ivar ivar = class_getInstanceVariable(objectClass, iVarName);
object_setIvar(myInstance, ivar, [value copy]);
}