cancel
Showing results for 
Search instead for 
Did you mean: 

Build issues in XCode 4 with SUP 2.1

Former Member
0 Kudos

Hello all.

I am trying to build my application in XCode 4 using SUP 2.1. But while building the project after imported the required SUP libraries and the generated code, i see a lot of error popping up. Has anyone encountered issues like this with XCode 4 ?

Would be very thankful if anyone could could suggest me what might be going wrong or pointers as to how to fix these issues.

Thanks in advance !

Cheers,

Naveen.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Naveen,

you might have check whether you have imported proper libraries or not, in the library folder, you can see libraries for simulator and for device separately

once you are done with that you have to check whether you have given the correct path in header serarch path and library search.

and dont forget to include, -Obj-All in other linker flags.

Former Member
0 Kudos

Hi Srinivas.

Thank you !

I have switched to SUP 2.0 ( just to see if i can get rid of the errors ) and tried out what you have suggested i.e checking for the libraries, header/library paths and setting the -Obj-All linker flag. But still i see the same set of build errors. The errors seem to be happening due to missing libraries (all related to SUP) but am unable to figure out why and how to fix it...Currently the libraries on my project path are: libclientrt.a, libMO.a and libSUPObj.a.

Here's the partial error log:

ld: warning: ignoring file SUPTest/libs/Debug-iphoneos/libclientrt.a, missing required architecture i386 in file

ld: warning: ignoring file SUPTest/libs/Debug-iphoneos/libMo.a, missing required architecture i386 in file

ld: warning: ignoring file SUPTest/libs/Debug-iphoneos/libSUPObj.a, missing required architecture i386 in file

ld: warning: ignoring file SUPTest/libs/Debug-iphoneos/libMO.a, missing required architecture i386 in file

Undefined symbols for architecture i386:

"_OBJC_CLASS_$_SUPPersistenceException", referenced from:

objc-class-ref in MBODebugLogger.o

objc-class-ref in Convertor_ConvertorDB.o

"_OBJC_METACLASS_$_SUPAbstractLogger", referenced from:

OBJCMETACLASS_$_Convertor_LoggerImpl in Convertor_LoggerImpl.o

"_OBJC_CLASS_$_SUPAbstractLogger", referenced from:

OBJCCLASS_$_Convertor_LoggerImpl in Convertor_LoggerImpl.o

"_OBJC_CLASS_$_SUPAbstractEntity", referenced from:

OBJCCLASS_$_Convertor_Converter in Convertor_Converter.o

OBJCCLASS_$_Convertor_KeyGenerator in Convertor_KeyGenerator.o

OBJCCLASS_$_Convertor_LocalKeyGenerator in Convertor_LocalKeyGenerator.o

OBJCCLASS_$_Convertor_LogRecordImpl in Convertor_LogRecordImpl.o

OBJCCLASS_$_Convertor_OfflineAuthentication in Convertor_OfflineAuthentication.o

OBJCCLASS_$_Convertor_SubscriptionStatus in Convertor_SubscriptionStatus.o

"_OBJC_CLASS_$_SUPJsonObject", referenced from:

objc-class-ref in Convertor_Converter.o

objc-class-ref in Convertor_ConvertorDB.o

objc-class-ref in Convertor_KeyGenerator.o

objc-class-ref in Convertor_KeyGeneratorPK.o

objc-class-ref in Convertor_KeyPackageName.o

objc-class-ref in Convertor_LocalKeyGenerator.o

objc-class-ref in Convertor_LocalKeyGeneratorPK.o

...

"_OBJC_CLASS_$_SUPObjectList", referenced from:

objc-class-ref in Convertor_Converter.o

objc-class-ref in Convertor_ConvertorDB.o

objc-class-ref in Convertor_KeyGenerator.o

objc-class-ref in Convertor_KeyGeneratorPK.o

objc-class-ref in Convertor_KeyPackageName.o

objc-class-ref in Convertor_LocalKeyGenerator.o

objc-class-ref in Convertor_LocalKeyGeneratorPK.o

...

"_OBJC_CLASS_$_SUPJsonArray", referenced from:

objc-class-ref in Convertor_Converter.o

objc-class-ref in Convertor_KeyGenerator.o

objc-class-ref in Convertor_KeyGeneratorPK.o

objc-class-ref in Convertor_KeyPackageName.o

objc-class-ref in Convertor_LocalKeyGenerator.o

objc-class-ref in Convertor_LocalKeyGeneratorPK.o

objc-class-ref in Convertor_LogRecordImpl.o

Kindly suggest...

Cheers,

Naveen.

Former Member
0 Kudos

Hi all.

I have finally found the solution to fix this problem ! The solution actually lies in fixing the issue related to this warning

"ld: warning: ignoring file SUPTest/libs/Debug-iphoneos/libclientrt.a, missing required architecture i386 in file".

And to fix this all you need to do is manually remove entries related to FRAMEWORK_SEARCH_PATHS or LIBRARY_SEARCH_PATHS in your "project.pbxproj" file.

Cheers,

Naveen.

Former Member
0 Kudos

Naveen,

Thanks for this solution.

Although, it didn't quite work doing only what you described.

I had to do the following:

  1. Removed the Library Search Paths that were referencing my Debug/Release libs files and entered them back in.
  2. Removed these files from my project (removed references in Project Navigator) and added them back to the project
  3. Cleaned the project
  4. Rebuilt the project

Hope this helps anyone out there experiencing the same problem.

-Tyler

Former Member
0 Kudos

hello,

I am facing the same issue and tried the solutions given above but none of them worked for me.

What to do now?? Please provide me a solution.


Answers (0)