I'm creating a Wrapper library project which uses another Native-C library. I'm able to use the Wrapper library functions in other applications, through which am able to accessing the functions, which are present in Native-C library.
Now, in Wrapper Library project, when I added 'Unit Testing' (using OCUnit, ), it is giving the errors for all the functions which are present in Native C library. The error is coming while executing the Unit Testing only.
The error it shows is,
**Undefined symbols for architecture i386: "_SQMT_FUNC_close", referenced from: _funcClose in libWrapperLibraryAlter.a(wrapperAPI.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)**
The function, 'funcClose' is present in current Wrapper Library project (.m file). The function, 'SQMT_FUNC_close' is present in Native-C library project (.c file).
Unit test execution shows error for all the Native-C functions.
Kindly help in resolving this issue.
The Lirary path:
**/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/work/Final_code/test/iOS/Debug-iphonesimulator -L/work/Final_code/test/iOS/iOSWrapper/../../Product/Library/iOS/Release-iphoneos -F/work/Final_code/test/iOS/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist /work/Final_code/test/iOS/Build/Intermediates/iOSWrapper.build/Debug-iphonesimulator/wrapperTests.build/Objects-normal/i386/wrapperTests.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.0 -liOSWrapper -lHomeLittle -framework SenTestingKit -framework Foundation -framework UIKit -o /work/Final_code/iOS/Debug-iphonesimulator/wrapperTests.octest/wrapperTests**
iOSWrapper - is the current wrapper library that i'm testing. HomeLittle - is the Native C library