I am getting this error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ShellTask", referenced from:
objc-class-ref in PhoneLocator.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Architectures of my target is $(ARCHS_STANDARD)
I have checked online throughout day :(. But I didn't get any solution. How can I resolve this issue.
_OBJC_CLASS_$_ShellTask this error means ShellTask this the file name. When you getting these sort of error it means that the file is missing under your compile sources. Just add that file the error will be gone
In target -> Build Phases -> Compile Sources I had all .m files including those that were giving issue.
Related
I'm using Xcode 7.
After updating Fabric framework and TwitterCore I can't build my project. I Have problem with _TWTRScribeEventImpressionElement and other files in TwitterKit.
I'm tryied to update TwitterKit but it did not help.
Error is:
Undefined symbols for architecture armv7:
"_TWTRScribeEventImpressionElement", referenced from:
-[TWTRScribeSink didShareTweetWithID:shareType:] in TwitterKit(TWTRScribeSink.o)
+[TWTRScribeSink tweetLoadNamespace] in TwitterKit(TWTRScribeSink.o)
+[TWTRScribeSink tweetViewImpressionNamespaceWithStyle:] in TwitterKit(TWTRScribeSink.o)
+[TWTRScribeSink tweetViewShareNamespace] in TwitterKit(TWTRScribeSink.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Has somebody seen such problem?
i get the following error when i run j2objcc -o blssmibi BLSSMIBI.o
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Curve", referenced from:
objc-class-ref in BLSSMIBI.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
what should i do to fix this?
There's no Curve class anywhere in j2objc's libraries, so my guess it's a dependency from the Java file that you used to generate BLSSMIBI (maybe that's the it looks like a package prefix was used). If you aren't sure what a class's dependencies are, try compiling with javac to a temporary directory and see what name.class files are created (ignore the ones with $ in their names, as they're inner classes). That list of class files is used to figure out all the classes that need transpiling, as well as all the .o files that the app requires.
I am try to check if the phone has a configuration profile is installed on an iPhone using this tutorial
I encountered the following issue , when I wrote this line :
err = secTrustEvaluate (trust,&trustResult);
I get the following warning
implicit declaration of function 'secTrustEvaluate' is invalid in C99
and I get the following erros when I try to build
Undefined symbols for architecture i386:
"_secTrustEvaluate", referenced from:
-[<Class name> <function name>] in <class object.o>
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I also included the Security.framework Framework (which removed several issues similar to this one)
any reason why this is not working ?
Thanks!
I am currently trying to make a simple "Server Status" app for a game I play, All it needs to do is parse XML from a URL and output the result. I am currently stuck on these errors which I think have something to do with the way I linked/incorporated my GDataXML
See Images for Error(s), Sorry I could post picture directly. Not enough reputation:
Error (1)
Undefined symbols for architecture i386: "_OBJC_CLASS_$_GDataXMLDocument", 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)
Error (2)
Undefined symbols for architecture i386: "_OBJC_CLASS_$_GDataXMLDocument", 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)
Linker can't find object for GDataXML.
Looks like you need build GDataXML and add path where library built to the linker.
It might be as you suspect, the class you are trying to use isn't incorporated in your project correctly, or linked to the target correctly. Maybe this SO post will help you more.
Error on link:
ld: duplicate symbol _OBJC_METACLASS_$_Reachability in /Users/jmf/Documents/iOS Development/jmf_Client/jmf/jmf/ww_libs/libmfcbroem_ios.a(Reachability.o) and /Users/tpf/Library/Developer/Xcode/DerivedData/jmf-erlknghfcpoomnfanzovahfacgpv/Build/Intermediates/jmf.build/Debug-iphoneos/jmf.build/Objects-normal/armv7/Reachability.o for architecture armv7
If I simply remove the h/m files (and associated import directives) in hopes of just using the Reachability in libmfcbroem_ios.a...the linker throws this:
Undefined symbols for architecture armv7:
"_kReachabilityChangedNotification", referenced from:
-[MKNetworkEngine initWithHostName:customHeaderFields:] in MKNetworkEngine.o
-[MKNetworkEngine dealloc] in MKNetworkEngine.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can I tell the linker to utilize Reachability from the "a" file?
(disclaimer, I'm just getting started with ObjC/iOS)
Thanks for any help...
Remove the Reachability.m file, include only the header