I'm trying to use DOMXPathResult/DOMXPathExpression in my Swift application but get for some reasons a linker error for both. Other classes from the WebKit framework compile/link nicely. Both XPath classes also link in an Obj-C application. It's only a problem in Swift. WebKit is imported and linked to.
The error message I get is:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_DOMXPathExpression", referenced from:
__TMaCSo18DOMXPathExpression in PluginWorker.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can I solve this linker error?
This has been fixed with XCode 7.1.1.
Related
I'm working on a TLS library for the vapor project and am supporting both Apple's (Transport-)Security and OpenSSL for use in an HTTP/2 client and server.
On this line of code I'm trying to call SSLSetALPNProtocols. Regardless of my approach, I'm met with an ld linker error on that line of code.
Undefined symbols for architecture x86_64:
"_SSLSetALPNProtocols", referenced from:
__T08AppleSSL9SSLOptionV4alpnACSaySSG9protocols_tFZySo10SSLContextCKcfU_ in Options.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
There's no documentation available to highlight a possible obvious mistake since the page is empty.
So, how do I get this code to compile with ALPN support?
Currently that's impossible. Apple forgot to export the SSLSetALPNProtocols and SSLCopyALPNProtocols function.
I already filed rdar://34790589 (duplicate of rdar://33907676)
As of the latest macOS and Xcode beta with Swift 4.1 I've got this up and running.
All,
I have installed the Stripe SDK and I have added :
PassKit.framework
Security.framework
Foundation.framework
QuartzCore.framework
When I build the application (its empty) all it has got is my public key.
I get :
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Stripe", referenced from:
__TMaCSo6Stripe in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Have i got enough frameworks or am I missing any ?
Any help would be brilliant
It sounds like you're not properly #importing Stripe.h. You'll need to create a bridging header for your project that contains #import <Stripe/Stripe.h>. For more, see Apple's guide to Swift/Objective-C interoperability: https://developer.apple.com/library/ios/documentation/swift/conceptual/buildingcocoaapps/MixandMatch.html
Best,
Jack
When I'm trying to run the project i receive the following errors
Here is the log.
Undefined symbols for architecture armv7: __ZN6metaio40getScreenRotationForInterfaceOrientationE22UIInterfaceOrientation", referenced from: -[MetaioSDKViewController viewDidLoad] in MetaioSDKViewController.o -[MetaioSDKViewController willAnimateRotationToInterfaceOrientation:duration:] in MetaioSDKViewController.o -[ARELViewController willAnimateRotationToInterfaceOrientation:duration:] in ARELViewController.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does any one knows what the reason might be.
This project has bind with the Metio . AR framework.
Thanks
Click on your Project and go to Build Settings and change the value of Build Active Architecture only to yes.
Let me know if it solves the error:)
Why i am still getting this error even after linking fat library
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_NgnEngine", 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)
and linking everything in "User-Defined
I am following the instruction which written here Link ios-ngn-stak to your app
any help please, this is tiring me and it is my senior project
please refer this two link for getting solution if your issue:-
Error : "_OBJC_CLASS_$_NgnEngine"
Xcode with iOS - Creating a library in a way that is easy to run in debug mode, distribute, iterate
I am developing a application in iOS which compile on iOS 5.0 perfectly .But Unable to compile on xCode on iOS 5.1 .The fallowing problem is arising.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SenTestCase", referenced from:
_OBJC_CLASS_$_RFAPITests in RFAPITests.o
"_OBJC_METACLASS_$_SenTestCase", referenced from:
_OBJC_METACLASS_$_RFAPITests in RFAPITests.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is a linker problem. The code or library that defines SenTestCase needs to be added to the appropriate compile or link phase for your target depending on whether it's in source or binary form.