Archived Forum Post

Index of archived forum posts

Question:

Not able to create ipa to demo Scp functionality

Apr 05 '16 at 09:38

I am evaluating chilkat's SCP library for Objective C. I am able to successfully run the application on iPhone. But when i try creating archive to create ipa file it fails .

I have added the .a file to Link Binary with library and also included include and cpp_include folder.

The error is : Undefined symbols for architecture armv7: "OBJC_CLASS$CkoScp", referenced from: objc-class-ref in ViewController.o "_OBJC_CLASS$CkoSsh", referenced from: objc-class-ref in ViewController.o "_OBJC_CLASS$CkoBaseProgress", referenced from: _OBJC_CLASS$Progress in Progress.o "_OBJC_METACLASS$CkoBaseProgress", referenced from: _OBJC_METACLASS$_Progress in Progress.o ld: symbol(s) not found for architecture armv7

Please let me know what is missing.


Accepted Answer

Chilkat includes the static libs for each possible architecture (see image below)

Make sure to include the armv7 in the universal lib that you are linking against. Note: There are static libs for both armv7 and armv7s.

iOS dir tree