MEWconnect-iOS
MEWconnect-iOS copied to clipboard
Error after running mogenerator.sh
Attempting to use the forward class 'TokenPlainObject' as superclass of '_MasterTokenPlainObject'
It does not generate the classes as expected, thus leaving it incomplete for compiling.
Fixes changing the inheritance class to this:
@import Foundation;
@class NetworkPlainObject;
#import "TokenPlainObject.h"
@interface _MasterTokenPlainObject : TokenPlainObject <NSCoding, NSCopying>
@property (nonatomic, copy, readwrite) NetworkPlainObject *fromNetworkMaster;
@end
Maybe the ponsomizer templates require fixing?
machine.h.motemplate
//
// _<$name$>.h
//
//
// DO NOT EDIT. This file is machine-generated and constantly overwritten.
//
@import Foundation;
<$foreach Relationship noninheritedRelationships do$>@class <$Relationship.destinationEntity.name$>PlainObject;
<$endforeach do$>
<$if hasSuperentity$>
#import "<$superentity.name$>PlainObject.h"
<$endif$>
<$if hasSuperentity$>
@interface _<$name$>PlainObject : <$superentity.name$>PlainObject <NSCoding, NSCopying>
<$else$>
@interface _<$name$>PlainObject : <$customSuperentity$> <NSCoding, NSCopying>
<$endif$>
<$foreach Attribute noninheritedAttributes do$><$if Attribute.hasDefinedAttributeType$>@property (nonatomic, copy, readwrite) <$Attribute.objectAttributeClassName$> *<$Attribute.name$>;
<$endif$><$endforeach do$>
<$foreach Relationship noninheritedRelationships do$>
<$if Relationship.userInfo.documentation$>
/**
* <$Relationship.userInfo.documentation$>
*
* <$Relationship.userInfo.discussion$>
*/
<$endif$>
<$if Relationship.isToMany$>
@property (nonatomic, copy, readwrite) NSSet<<$Relationship.destinationEntity.name$>PlainObject *> *<$Relationship.name$>;
<$else$>
@property (nonatomic, copy, readwrite) <$Relationship.destinationEntity.name$>PlainObject *<$Relationship.name$>;
<$endif$>
<$endforeach do$>
@end
This fixes the error and Mogenerator can be safely added as a target dependency of MyEtherWallet-iOS.