Running RDPDFKitDemo_1.2 - xcode

I have purchased reddle kit for ipad pdf viewer. when i try to run the demo program i am getting following error
Ld /Users/svp/Library/Developer/Xcode/DerivedData/RDPDFKitSample-gjablgzmrirtqteckhbcytapkwcc/Build/Products/Debug-iphonesimulator/RDPDFKitSample.app/RDPDFKitSample normal i386
cd /Users/svp/Desktop/RDPDFKitDemo_1_2
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/svp/Library/Developer/Xcode/DerivedData/RDPDFKitSample-gjablgzmrirtqteckhbcytapkwcc/Build/Products/Debug-iphonesimulator -L/Users/svp/Desktop/RDPDFKitDemo_1_2/RDPDFKit.embeddedframework/RDPDFKit.framework/Versions/A -F/Users/svp/Library/Developer/Xcode/DerivedData/RDPDFKitSample-gjablgzmrirtqteckhbcytapkwcc/Build/Products/Debug-iphonesimulator -F/Users/svp/Desktop/RDPDFKitDemo_1_2/RDPDFKit.embeddedframework -filelist /Users/svp/Library/Developer/Xcode/DerivedData/RDPDFKitSample-gjablgzmrirtqteckhbcytapkwcc/Build/Intermediates/RDPDFKitSample.build/Debug-iphonesimulator/RDPDFKitSample.build/Objects-normal/i386/RDPDFKitSample.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework SystemConfiguration -framework RDPDFKit -framework Security -framework OpenGLES -framework QuartzCore -lz -framework CoreText -framework MessageUI -weak_framework UIKit -weak_framework Foundation -framework CoreGraphics -o /Users/svp/Library/Developer/Xcode/DerivedData/RDPDFKitSample-gjablgzmrirtqteckhbcytapkwcc/Build/Products/Debug-iphonesimulator/RDPDFKitSample.app/RDPDFKitSample
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_NSFileCoordinator", referenced from:
objc-class-ref in RDPDFKit(libRDPDFKit.a-i386-master.o)
"_OBJC_CLASS_$_UIReferenceLibraryViewController", referenced from:
objc-class-ref in RDPDFKit(libRDPDFKit.a-i386-master.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
how can i solve this issue.

We don't support building with iOS 4 SDK.
Make sure you are building with iOS 5 SDK. YOur application will still be able to run on device with iOS 4.0.
Danil Somsikov
Readdle Inc.

Related

Trouble using CocoaPods in project

I'm new to IOS Development and I'm trying to Restkit via cocoapods using this tutorial with no success. I'm getting the following error:
Ld /Users/noor/Library/Developer/Xcode/DerivedData/EZ-POINT-cltwbuksnzhbqpabqekhgkzqspjw/Build/Products/Debug-iphonesimulator/EZ-POINT.app/EZ-POINT normal i386
cd /Users/noor/Documents/Apps/EZ-POINT.BK
setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/noor/Library/Developer/Xcode/DerivedData/EZ-POINT-cltwbuksnzhbqpabqekhgkzqspjw/Build/Products/Debug-iphonesimulator -F/Users/noor/Library/Developer/Xcode/DerivedData/EZ-POINT-cltwbuksnzhbqpabqekhgkzqspjw/Build/Products/Debug-iphonesimulator -filelist /Users/noor/Library/Developer/Xcode/DerivedData/EZ-POINT-cltwbuksnzhbqpabqekhgkzqspjw/Build/Intermediates/EZ-POINT.build/Debug-iphonesimulator/EZ-POINT.build/Objects-normal/i386/EZ-POINT.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -framework CFNetwork -framework CoreData -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework CoreLocation -framework MapKit -framework UIKit -framework Foundation -framework CoreGraphics -lPods -o /Users/noor/Library/Developer/Xcode/DerivedData/EZ-POINT-cltwbuksnzhbqpabqekhgkzqspjw/Build/Products/Debug-iphonesimulator/EZ-POINT.app/EZ-POINT
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any suggestion?
You should open your project by .xcworkspace not by .xproject :-)
Besides, I find this one might help you solve your problem
You should read this, you need a workspace, not a project http://docs.cocoapods.org/guides/integrating_a_project.html

Xcode Linker Error?

I get this error:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GameCenterManager", referenced from:
objc-class-ref in BT_viewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My Info:
Ld /Users/Raoul/Library/Developer/Xcode/DerivedData/latintogopro-fbrntyvxhakjwlfaxcckdbvsvcli/Build/Products/Debug-iphonesimulator/LatinToGo.app/LatinToGo normal i386
cd /Users/Raoul/Downloads/latintogopro_v15_iOS
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/Raoul/Library/Developer/Xcode/DerivedData/latintogopro-fbrntyvxhakjwlfaxcckdbvsvcli/Build/Products/Debug-iphonesimulator -L/Users/Raoul/Downloads/latintogopro_v15_iOS/BT_Objects/TwitterOAuth/SAOAuthTwitterEngine -F/Users/Raoul/Library/Developer/Xcode/DerivedData/latintogopro-fbrntyvxhakjwlfaxcckdbvsvcli/Build/Products/Debug-iphonesimulator -F/Users/Raoul/Downloads/latintogopro_v15_iOS/BT_Objects -filelist /Users/Raoul/Library/Developer/Xcode/DerivedData/latintogopro-fbrntyvxhakjwlfaxcckdbvsvcli/Build/Intermediates/latintogopro.build/Debug-iphonesimulator/latintogopro.build/Objects-normal/i386/LatinToGo.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework Security -framework GameKit -lxml2.2 -framework CoreAudio -framework CoreLocation -framework Foundation -framework SystemConfiguration -weak_framework UIKit -framework MobileCoreServices -framework AVFoundation -weak_framework MessageUI -lOAuth -framework MapKit -weak_framework MediaPlayer -framework CoreGraphics -framework QuartzCore -weak_framework iAd -o /Users/Raoul/Library/Developer/Xcode/DerivedData/latintogopro-fbrntyvxhakjwlfaxcckdbvsvcli/Build/Products/Debug-iphonesimulator/LatinToGo.app/LatinToGo
Go to your project, click on Build phases, Compile sources, Add GameCenterManager.m to the list.
Hope this will help :)
Presumably your code refers to the class called GameCenterManager but your project doesn't link to the framework that defines it.
If this is a built-in framework, then link to that framework: edit the target, in the Summary scroll down to the linked frameworks, press the Plus button to add the framework.
If this is a third-party framework, they should provide instructions for linking to their framework.

Why do I get an Apple Mach-O Linker (ID) Error?

I know that this question had been asked many times, but every answer seems different. I have built my project and tried to run it, but I get this error:
Ld "/Users/******/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Products/Debug-iphonesimulator/Cypher Bot.app/Cypher Bot" normal i386
cd "/Users/******/Xcode/iOS/Cypher Bot/Universal/Cypher Bot/Cypher Bot"
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/********/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Products/Debug-iphonesimulator -F/Users/**********/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Products/Debug-iphonesimulator -filelist "/Users/*******/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Intermediates/Cypher Bot.build/Debug-iphonesimulator/Cypher Bot.build/Objects-normal/i386/Cypher Bot.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework Security -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreData -o "/Users/********/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Products/Debug-iphonesimulator/Cypher Bot.app/Cypher Bot"
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MFMailComposeViewController", referenced from:
objc-class-ref in CryptoMainViewController.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 get this right below the message above:
What does this mean? What do I do to fix it?
The error means that the linker can't find the class definition for MFMailComposeViewController. That class is defined in the MessageUI framework. Did you add the MessageUI framework to your target? If you don't know how to do that, read this: How to "add existing frameworks" in Xcode 4?

Xcode Cross Compiling cocos2d Errors

When i try to compile my project for the simulator or real devices, i get these errors:
Ld /Users/maumau/Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Products/Debug-iphoneos/HarvestMoon.app/HarvestMoon normal armv7
cd /Users/maumau/Dropbox/Daten/Projekte/HMiOS
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/maumau/Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Products/Debug-iphoneos -L/Users/maumau/Dropbox/Daten/Projekte/HMiOS/../../../../Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Products/Debug-iphoneos -F/Users/maumau/Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Products/Debug-iphoneos -filelist /Users/maumau/Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Intermediates/HarvestMoon.build/Debug-iphoneos/HarvestMoon.build/Objects-normal/armv7/HarvestMoon.LinkFileList -dead_strip -ObjC -framework Foundation -framework UIKit -miphoneos-version-min=4.3 /Users/maumau/Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Products/Debug-iphoneos/libbox2d.a -framework QuartzCore -framework OpenGLES -framework OpenAL -framework AudioToolbox -framework AVFoundation -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/maumau/Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Products/Debug-iphoneos/HarvestMoon.app/HarvestMoon
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_CCRepeatForever", referenced from:
objc-class-ref in KBPlayer.o
"_OBJC_METACLASS_$_CCTMXTiledMap", referenced from:
_OBJC_METACLASS_$_KBTMXTiledMap in KBTMXTiledMap.o
"_OBJC_CLASS_$_CCDirector", referenced from:
.... more errors ....
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i use Xcode 4.2 and cocos2d-1.0. does anyone have an idea, how i can fix this?
You'd better to make sure that your project includes cocos2d source code or cocos2d static library. If you are using cocos2d static library, it must be compiled for armv7.
Your project is based on cocos2d application template?

Sparrow-Framework duplicate symbol error

I am need of some assistance with sparrow framework(http://www.sparrow-framework.org/)/xcode 4/ and my project. I am Getting the following error:
Ld /Users/alex/Library/Developer/Xcode/DerivedData/iDoubtIt-civshevejenwbzfqnllzztidnmzi/Build/Products/Debug-iphonesimulator/iDoubtIt.app/iDoubtIt normal i386
cd /Users/alex/Dropbox/iDoubtIt/iDoubtIt-Sparrow
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/alex/Library/Developer/Xcode/DerivedData/iDoubtIt-civshevejenwbzfqnllzztidnmzi/Build/Products/Debug-iphonesimulator -F/Users/alex/Library/Developer/Xcode/DerivedData/iDoubtIt-civshevejenwbzfqnllzztidnmzi/Build/Products/Debug-iphonesimulator -filelist /Users/alex/Library/Developer/Xcode/DerivedData/iDoubtIt-civshevejenwbzfqnllzztidnmzi/Build/Intermediates/iDoubtIt.build/Debug-iphonesimulator/iDoubtIt.build/Objects-normal/i386/iDoubtIt.LinkFileList -mmacosx-version-min=10.6 -ObjC -all_load -Xlinker -objc_abi_version -Xlinker 2 /Users/alex/Library/Developer/Xcode/DerivedData/iDoubtIt-civshevejenwbzfqnllzztidnmzi/Build/Products/Debug-iphonesimulator/libSparrow.a -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -framework QuartzCore -framework AVFoundation -framework AudioToolbox -framework OpenAL -o /Users/alex/Library/Developer/Xcode/DerivedData/iDoubtIt-civshevejenwbzfqnllzztidnmzi/Build/Products/Debug-iphonesimulator/iDoubtIt.app/iDoubtIt
ld: duplicate symbol _OBJC_IVAR_$_AIPlayer.hand in /Users/alex/Library/Developer/Xcode/DerivedData/iDoubtIt-civshevejenwbzfqnllzztidnmzi/Build/Intermediates/iDoubtIt.build/Debug-iphonesimulator/iDoubtIt.build/Objects-normal/i386/Game.o and /Users/alex/Library/Developer/Xcode/DerivedData/iDoubtIt-civshevejenwbzfqnllzztidnmzi/Build/Intermediates/iDoubtIt.build/Debug-iphonesimulator/iDoubtIt.build/Objects-normal/i386/ApplicationDelegate.o for architecture i386
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
Thanks in advance.
Probably you have imported an implementation file (*.m file) in your "Game.m" or "ApplicationDelegate.m" file. You should not import implementation files. That causes your implementation file to get compiled two times. That causes duplicate symbol error.
To fix that problem you should fix your import line from foo.m to foo.h.

Resources