MEWconnect-iOS icon indicating copy to clipboard operation
MEWconnect-iOS copied to clipboard

Error after running mogenerator.sh

Open Cybertwip opened this issue 5 years ago • 2 comments

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.

Cybertwip avatar Dec 12 '19 01:12 Cybertwip

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?

Cybertwip avatar Dec 12 '19 02:12 Cybertwip

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.

Cybertwip avatar Dec 12 '19 02:12 Cybertwip