Pull to Refresh UIWebView - objective-c

I work with the this tutorial: http://sonnyparlin.com/2011/12/pulltorefresh-ios-5-and-arc-tutorial/
I dont get an error in the code just two things:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_PullToRefreshView", 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)
I add the QuartzCore framework but it dont help. what I need to do?
thanks :)

You should add the PullTorefresh.m to your project too, not just the .h.

Related

Objective-c JSONModel

I followed the instruction to instal JSONModel to my project. However, I am having an issue with Apple Mach - O Linker Error.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_NSEntityDescription", referenced from:
objc-class-ref in JSONModel+CoreData.o
"_OBJC_CLASS_$_NSManagedObject", referenced from:
l_OBJC_$_CATEGORY_NSManagedObject_$_JSONModel in JSONModel+CoreData.o
objc-class-ref in JSONModel+CoreData.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 added SystemConfiguration.framework as well.
Please help me. Thank you.
Add CoreData.framework to your target.

symbol(s) not found for architecture armv7s (linker command failed with exit code 1)

When I build in Xcode 5 for IOS7 I get this error:
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_CIFilter", referenced from:
objc-class-ref in UIImage+Filter.o
"_kCIInputImageKey", referenced from:
-[UIImage(Filter) filterWithPreset:] in UIImage+Filter.o
"_OBJC_CLASS_$_CIImage", referenced from:
objc-class-ref in UIImage+Filter.o
"_OBJC_CLASS_$_CIContext", referenced from:
objc-class-ref in UIImage+Filter.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I notice that the error goes away if I remove the UIImage+Filter.h/m file and UIImageView+Filter.h/m
Easy... Make sure you import CoreImage framework

Problems parsing XML in Objective - C

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.

Reachability duplicate symbol

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

MPVolumeView and iOS 5

I am trying to make a slider to control device volume.
Previously I have accomplished this with MPVolumeView, but since iOS 5 I get the following error on build:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_MPVolumeView", referenced from:
objc-class-ref in PlayerViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can someone please tell me what is the problem or is there another way to control devices volume.
Thanks in advance!
You need to make sure that you link against the MediaPlayer.framework