使用wsdl2objc的未定义符号

时间:2010-06-21 12:51:40

标签: iphone objective-c soap wsdl

我正在尝试将wsdl2objc与this soap web服务一起使用。但是当我在我的iPhone项目中使用它时,我收到了这个错误:

Undefined symbols:
  ".objc_class_name_ndfdXML", referenced from:
      literal-pointer@__OBJC@__cls_refs@ndfdXML in HomeViewController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

这里我使用了ndfdXML类。

ndfdXMLBinding *binding = [ndfdXML ndfdXMLBinding];
binding.logXMLInOut = NO;

有谁能告诉我如何解决这个问题?提前致谢。

这是我现在的错误

Undefined symbols:
  "_typens_sectorTypeStringFromEnum", referenced from:
      -[ndfdXMLBinding_CornerPoints main] in ndfdXML.o
  "_typens_featureTypeTypeStringFromEnum", referenced from:
      -[ndfdXMLBinding_GmlLatLonList main] in ndfdXML.o
      -[ndfdXMLBinding_GmlTimeSeries main] in ndfdXML.o
  "_typens_compTypeTypeStringFromEnum", referenced from:
      -[ndfdXMLBinding_GmlTimeSeries main] in ndfdXML.o
  "_typens_productTypeStringFromEnum", referenced from:
      -[ndfdXMLBinding_NDFDgen main] in ndfdXML.o
      -[ndfdXMLBinding_NDFDgenLatLonList main] in ndfdXML.o
  "_typens_formatTypeStringFromEnum", referenced from:
      -[ndfdXMLBinding_NDFDgenByDay main] in ndfdXML.o
      -[ndfdXMLBinding_NDFDgenByDayLatLonList main] in ndfdXML.o
  "_typens_displayLevelTypeStringFromEnum", referenced from:
      -[ndfdXMLBinding_LatLonListCityNames main] in ndfdXML.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

1 个答案:

答案 0 :(得分:3)

没有得到答案..这个wsdl2objc不适用于所有wsdl ...我切换到http://sudzc.com/。它也转换为wsdl 2 ObjC