login about faq

Hello, I'm developing an IOS app, and i'm running it on an IOS simulator, and its working fine. But the moment i try using some of your Objective-C functions (ARC4 PRNG), i get a large amount of errors, i don't know why!!! Is it the static library i'm trying to link to Xcode, or is it the include file i'm importing into my code? By the way, I've followed your steps in "How To Link with Static Library in Xcode"

My question is: 1- I'm using a MacBook Pro laptop(intel Core i5), so which static library i should use (x86-64 or i386)? 2- what am i suppose to do with the bash shell script (makeUniversalLib.sh)? (your notes doesn't give much explanation). 3- do i need to move the Lib folder and include folder into my project directory, or what? 4- are we suppose to use your codes in Blocks?

These are the Errors i get:

Ld /Users/user/Library/Developer/Xcode/DerivedData/DGCH1-eyilvrcbfrxyoagqpcamtqkqakny/Build/Products/Debug-iphonesimulator/DGCH1.app/DGCH1 normal i386
    cd /Users/user/Desktop/DGCH1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/DGCH1-eyilvrcbfrxyoagqpcamtqkqakny/Build/Products/Debug-iphonesimulator -L/Users/user/Documents/chilkat-9.5.0-ios/lib/i386 -L/Users/user/Documents/chilkat-9.5.0-ios/lib/x86_64 -F/Users/user/Library/Developer/Xcode/DerivedData/DGCH1-eyilvrcbfrxyoagqpcamtqkqakny/Build/Products/Debug-iphonesimulator -filelist /Users/user/Library/Developer/Xcode/DerivedData/DGCH1-eyilvrcbfrxyoagqpcamtqkqakny/Build/Intermediates/DGCH1.build/Debug-iphonesimulator/DGCH1.build/Objects-normal/i386/DGCH1.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -lchilkatIos -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/DGCH1-eyilvrcbfrxyoagqpcamtqkqakny/Build/Intermediates/DGCH1.build/Debug-iphonesimulator/DGCH1.build/Objects-normal/i386/DGCH1_dependency_info.dat -o /Users/user/Library/Developer/Xcode/DerivedData/DGCH1-eyilvrcbfrxyoagqpcamtqkqakny/Build/Products/Debug-iphonesimulator/DGCH1.app/DGCH1

Undefined symbols for architecture i386: "std::terminate()", referenced from: "vtable for cxxabiv1::class_type_info", referenced from: "vtable for cxxabiv1::si_class_type_info", referenced from: "vtable for cxxabiv1::vmi_class_type_info", referenced from: "operator delete", referenced from: "operator delete(void*)", referenced from: "operator new", referenced from: "operator new(unsigned long)", referenced from: "cxa_begin_catch", referenced from: "cxa_end_catch", referenced from: "___gxx_personality_v0", referenced from:

ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I don't even understand what are these error about!!!!

Sorry for asking too many questions, but i'm new to using Objective-C, and also new to Xcode. So, pleeeeeeeeeeease help me.

Best Regards.

asked Jun 05 '14 at 14:44

rania's gravatar image


edited Jun 05 '14 at 15:02

jpbro's gravatar image

jpbro ♦

Chilkat is written in C++ and therefore requires the C++ standard libs.

See this: http://www.chilkatsoft.com/chilkatIos.asp

In a nutshell: create an empty file, name it "empty.cpp", and add it to your project.


answered Jun 06 '14 at 09:24

chilkat's gravatar image

chilkat ♦♦

Thank you so much, it worked

(Jun 07 '14 at 11:19) rania
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jun 05 '14 at 14:44

Seen: 4,771 times

Last updated: Jun 07 '14 at 11:19

powered by OSQA