Create static library Xcode 4.6 - static-libraries

I'm building static library in Xcode 4.6. http://www.icodeblog.com/2011/04/07/creating-static-libraries-for-ios/. I building follow post but wrong error.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SSHelloer", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Solved
I found reason to error. I'm playing app in simulator, static libs build for device. So wrong error.

Related

Error when building with XCODE

Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_ARImageAnchor", referenced from:
objc-class-ref in libXRPlugin.a(ios-arkit-sensor.o)
"_OBJC_CLASS_$_ARReferenceImage", referenced from:
objc-class-ref in libXRPlugin.a(ios-arkit-sensor.o)
ld: symbol(s) not found for architecture arm64 clang: error: linker
command failed with exit code 1 (use -v to see invocation)
Hello! That's the error I get when trying to compile Demo app from 8thwall
I suppose that's related to a frame work error, any suggestion? Thanks!
What version of XCode are you using? As per the 8th Wall XR documentation, a version of XCode 9.3 or higher is required.
https://docs.8thwall.com/#requirements

Adding BleshSDK Framework

I have a mobile application which works on IOS platform and I am trying to add the Blesh Framework to my project.It seems like I did add the framework to the project correctly but I got a problem with building the project.
Here is the exception message:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Blesh", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks for any help or pointers to the right direction.
in Build Settings -> Other Linker Flags
add this into Debug and Release:
$(OTHER_LDFLAGS) -ObjC

Building tvOS framework for simulator using Xcode 7.2

I am trying to a build a framework for tvOS. I am able to generate the framework but when I link against it, with a sample app there are problems.
I get following errors:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_MyTestClass", referenced from:
objc-class-ref in MyViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The built for the device works just fine.
This is the build configuration for the framework.
Any ideas what could be wrong?

hid api building error in XCode

I'm trying to test this hid api for MAC in XCode by creating a project type "Core Foundation" just by importing the "hidapi/hidapi.h" library and replacing the "mac/main.c" files into the project. After adding the IOKit framework, and trying to build I got an error saying:
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've looked into this error here and on the internet, but it seems that this error it's not related to specific problem, it occurs depending on the situation. Can you give me a help?
Thank you very much.

Linker error when compiling in Xcode

I am getting this error when I am compiling a program in Xcode.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MyDatabase", referenced from:
objc-class-ref in Gallery_CollectionViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You have forgotten to add the source file that implements the class MyDatabase to the Xcode target and consequently it hasn't been compiled and linked with the binary.

Resources