WSMethodInvocationSetCallBack symbol not found after importing files generated from WSMakeStubs
Posted
by racingcow
on Stack Overflow
See other posts from Stack Overflow
or by racingcow
Published on 2010-05-12T23:04:46Z
Indexed on
2010/05/12
23:14 UTC
Read the original article
Hit count: 352
objective-c
|iphone
Hello,
I am pretty new to Objective-C, and I am trying to write an iPhone app to call a simple web service.
I used WSMakeStubs to point to my WSDL file, and it generated 4 files for me...
- WSGeneratedObj.h
- WSGeneratedObj.m
- CtServices2.h
- CtServices2.m
I added only the WSGeneratedObj.h and WSGeneratedObj.m files into a new iPhone app, added in the mobile core services framework from...
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk/System/Library/Frameworks/MobileCoreServices.framework
...and then compiled.
I get the following errors...
Building target “iMagioSearch2” of project “iMagioSearch2” with configuration “Debug”
Checking Dependencies
Ld /Users/Teresa/Desktop/iMagioSearch2/iMagioSearch2/build/Debug-iphonesimulator/iMagioSearch2.app/iMagioSearch2 normal i386
cd /Users/Teresa/Desktop/iMagioSearch2/iMagioSearch2
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk -L/Users/Teresa/Desktop/iMagioSearch2/iMagioSearch2/build/Debug-iphonesimulator -F/Users/Teresa/Desktop/iMagioSearch2/iMagioSearch2/build/Debug-iphonesimulator -filelist /Users/Teresa/Desktop/iMagioSearch2/iMagioSearch2/build/iMagioSearch2.build/Debug-iphonesimulator/iMagioSearch2.build/Objects-normal/i386/iMagioSearch2.LinkFileList -mmacosx-version-min=10.5 -framework Foundation -framework UIKit -framework CoreGraphics -framework MobileCoreServices -o /Users/Teresa/Desktop/iMagioSearch2/iMagioSearch2/build/Debug-iphonesimulator/iMagioSearch2.app/iMagioSearch2
Undefined symbols:
"_kWSSOAPBodyEncodingStyle", referenced from:
_kWSSOAPBodyEncodingStyle$non_lazy_ptr in WSGeneratedObj.o
"_WSMethodInvocationCreate", referenced from:
-[WSGeneratedObj createInvocationRef:methodName:protocol:style:soapAction:methodNamespace:] in WSGeneratedObj.o
"_kWSSOAPMethodNamespaceURI", referenced from:
_kWSSOAPMethodNamespaceURI$non_lazy_ptr in WSGeneratedObj.o
"_WSMethodInvocationUnscheduleFromRunLoop", referenced from:
-[WSGeneratedObj getResultDictionary] in WSGeneratedObj.o
-[WSGeneratedObj unscheduleFromRunLoop:mode:] in WSGeneratedObj.o
"_WSMethodResultIsFault", referenced from:
-[WSGeneratedObj isFault] in WSGeneratedObj.o
"_kWSMethodInvocationResult", referenced from:
_kWSMethodInvocationResult$non_lazy_ptr in WSGeneratedObj.o
"_WSMethodInvocationSetProperty", referenced from:
-[WSGeneratedObj createInvocationRef:methodName:protocol:style:soapAction:methodNamespace:] in WSGeneratedObj.o
-[WSGeneratedObj createInvocationRef:methodName:protocol:style:soapAction:methodNamespace:] in WSGeneratedObj.o
-[WSGeneratedObj createInvocationRef:methodName:protocol:style:soapAction:methodNamespace:] in WSGeneratedObj.o
"_WSMethodInvocationScheduleWithRunLoop", referenced from:
-[WSGeneratedObj getResultDictionary] in WSGeneratedObj.o
-[WSGeneratedObj scheduleOnRunLoop:mode:] in WSGeneratedObj.o
"_kWSHTTPExtraHeaders", referenced from:
_kWSHTTPExtraHeaders$non_lazy_ptr in WSGeneratedObj.o
"_WSMethodInvocationSetParameters", referenced from:
-[WSGeneratedObj setParameters:values:names:] in WSGeneratedObj.o
"_WSMethodInvocationSetCallBack", referenced from:
-[WSGeneratedObj createInvocationRef:methodName:protocol:style:soapAction:methodNamespace:] in WSGeneratedObj.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Does anyone know of anything I can check or why I might be getting this error?
Thanks,
David
© Stack Overflow or respective owner