jzhone / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
MIT License
0 stars 0 forks source link

Errors - "@interface interfaceName : someEnumeration" got "cannot find interface declaration 'someEnumeration', superclass of 'interfaceName' " #99

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compiling Wsdl2ObjC
2. Targeting groupwise.wsdl file
3. Fixing non-valid file names of output csource code like ".h" + ".m" and 
objects inside source files
4. Moving up one of the @interface BEFORE it was used futher in code! 

What is the expected output?
Something working 

What do you see instead?

33 errors. All errors are typical:
<code>
typedef enum types_StatusTrackingOptions {
    types_StatusTrackingOptions_none = 0,
    types_StatusTrackingOptions_None,
    types_StatusTrackingOptions_Delivered,
    types_StatusTrackingOptions_DeliveredAndOpened,
    types_StatusTrackingOptions_All,
} types_StatusTrackingOptions;

types_StatusTrackingOptions types_StatusTrackingOptions_enumFromString
(NSString 
*string);
NSString * types_StatusTrackingOptions_stringFromEnum
(types_StatusTrackingOptions 
enumValue);
@interface types_StatusTracking : types_StatusTrackingOptions {
</code>

- and I'm having error "cannot find interface declaration 
for 'types_StatusTrackingOptions', superclass of 'types_StatusTracking'".

What version of the product are you using? On what operating system?
rev 168 OS - Mac OS X 10.6.2, iPhone SDK - 3.2, wsdl - for GroupWise v.8, 
NDK released 2008-12-23, wsdl and xsd files are attached.

Please provide any additional information below.

How can I solve "cannot find interface declaration 'someEnumeration', 
superclass of 'interfaceName'" error?

Original issue reported on code.google.com by use...@gmail.com on 7 Jun 2010 at 12:28

Attachments:

GoogleCodeExporter commented 9 years ago
Changed 

@interface types_StatusTracking : types_StatusTrackingOptions {
...
}

to

@interface StatusTracking : NSObject {
    types_StatusTrackingOptions options;
    ...
}
@property (assign) types_StatusTrackingOptions options;

in three places in types.h - and everything compiles, but there is 101 warnings.

Who knows, if it's works, but it compiles for sure.

Original comment by use...@gmail.com on 7 Jun 2010 at 2:51