Building tvOS framework for simulator using Xcode 7.2 - xcode

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?

Related

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

Apple Mach-O Linker Errors when integrating Stripe and PaymentKit into Swift

I have successfully installed Stripe and Payment Kit into my Swift Xcode 6.4 project. However, whenever I build the project with code pertaining to Stripe I get the following Apple Mach-O Linker Errors.
Errors:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Stripe", referenced from:
__TMaCSo6Stripe 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)
If you are sure all the files are linked correctly, then try cleaning your build with Command-Shift-K.

Apple Mach-O Linker Error iOS 7

i try to build a small iOS app with dreamfactory as backend.
When i build the app with the librarys from dreamfactory i'm getting a mach-o linker error:
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please help me.
Sorry for my bad englisch.
I cant comment yet, so I'll have to post here. This was addressed already in this thread: https://github.com/dreamfactorysoftware/ios-sdk/issues/1

Create static library Xcode 4.6

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.

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.

Resources