Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after running mogenerator.sh #5

Open
Cybertwip opened this issue Dec 12, 2019 · 2 comments
Open

Error after running mogenerator.sh #5

Cybertwip opened this issue Dec 12, 2019 · 2 comments

Comments

@Cybertwip
Copy link

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
Copy link
Author

Cybertwip commented Dec 12, 2019

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
Copy link
Author

Cybertwip commented Dec 12, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant