如何修复错误 - “@interface interfaceName : someEnumeration”给出错误“找不到接口“someEnumeration”..”
如何解决“找不到接口声明'someEnumeration', “interfaceName”的超类”错误?
哪些步骤会重现该问题?
编译 Wsdl2ObjC
定位 groupwise.wsdl 文件
修复输出 csource 代码的无效文件名,例如“.h”+“.m”和 源文件内的对象
在代码中进一步使用 @interface 之一之前将其向上移动!
预期产出是多少? 一些有效的东西
你看到了什么?
33 个错误。类仅从 typedef 枚举对象的 3 个类似继承中“继承”。所有错误都是典型的:
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 { ...
这里我遇到错误“找不到接口声明” 对于“types_StatusTrackingOptions”,“types_StatusTracking”的超类。
您使用的产品版本是什么?在什么操作系统上? Wsdl2ObjC - 修订版 168、操作系统 - Mac OS X 10.6.2、iPhone SDK - 3.2、模拟器 - v. 3.1.2 - 3.1.3、wsdl - 适用于 GroupWise v.8、 NDK发布2008-12-23,附wsdl和xsd文件。
PS GroupWise.wsdl + .xsd 文件可以从 http:// 下载code.google.com/p/wsdl2objc/issues/detail?id=99
How can I solve "cannot find interface declaration 'someEnumeration',
superclass of 'interfaceName'" error?
What steps will reproduce the problem?
Compiling Wsdl2ObjC
Targeting groupwise.wsdl file
Fixing non-valid file names of output csource code like ".h" + ".m" and
objects inside source filesMoving 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. "Inherited" from only 3 similar Inheritances of a typedef enum object by a class. All errors are typical:
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 { ...
and here 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?
Wsdl2ObjC - rev 168, OS - Mac OS X 10.6.2, iPhone SDK - 3.2, Simulator - v. 3.1.2 - 3.1.3, wsdl - for GroupWise v.8,
NDK released 2008-12-23, wsdl and xsd files are attached.
P.S. GroupWise.wsdl + .xsd files could be downloaded from http://code.google.com/p/wsdl2objc/issues/detail?id=99
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你(他们?)想做什么?您不能从
枚举
继承。只有 Objective-C 类可以被继承。也许您想要组合而不是继承?
What are you (they?) trying to do? You cannot inherit from an
enum
. Only Objective-C classes can be inherited.Perhaps you want composition instead of inheritance?