Can't build kudan iOS unity3d project - ios

Get the following linking error trying to build against unity3d version 5.3.5f1
Ld /Users/georgecook/Library/Developer/Xcode/DerivedData/Unity-iPhone-bfwjzdbspnhgyjblhswtougxoafx/Build/Products/Debug-iphoneos/ar.app/ar normal arm64
cd "/Users/georgecook/Documents/tantaWowa/projects/dontRobMyPlanet/git/New Unity Project/build/app"
export IPHONEOS_DEPLOYMENT_TARGET=6.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/georgecook/Library/Developer/Xcode/DerivedData/Unity-iPhone-bfwjzdbspnhgyjblhswtougxoafx/Build/Products/Debug-iphoneos -L/Users/georgecook/Documents/tantaWowa/projects/dontRobMyPlanet/git/New\ Unity\ Project/build/app -L/Users/georgecook/Documents/tantaWowa/projects/dontRobMyPlanet/git/New\ Unity\ Project/build/app/Libraries -L/Users/georgecook/Documents/tantaWowa/projects/dontRobMyPlanet/git/New\ Unity\ Project/build/app/Libraries/KudanAR/Plugins/iOS -F/Users/georgecook/Library/Developer/Xcode/DerivedData/Unity-iPhone-bfwjzdbspnhgyjblhswtougxoafx/Build/Products/Debug-iphoneos -filelist /Users/georgecook/Library/Developer/Xcode/DerivedData/Unity-iPhone-bfwjzdbspnhgyjblhswtougxoafx/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/arm64/ar.LinkFileList -Xlinker -map -Xlinker /Users/georgecook/Library/Developer/Xcode/DerivedData/Unity-iPhone-bfwjzdbspnhgyjblhswtougxoafx/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/ar-LinkMap-normal-arm64.txt -miphoneos-version-min=6.0 -dead_strip -Xlinker -no_deduplicate -fembed-bitcode-marker -weak_framework CoreMotion -weak-lSystem -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -liPhone-lib -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -weak_framework iAd -framework MediaPlayer -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -lKudanPlugin -Xlinker -dependency_info -Xlinker /Users/georgecook/Library/Developer/Xcode/DerivedData/Unity-iPhone-bfwjzdbspnhgyjblhswtougxoafx/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/arm64/ar_dependency_info.dat -o /Users/georgecook/Library/Developer/Xcode/DerivedData/Unity-iPhone-bfwjzdbspnhgyjblhswtougxoafx/Build/Products/Debug-iphoneos/ar.app/ar
ld: warning: object file (/Users/georgecook/Documents/tantaWowa/projects/dontRobMyPlanet/git/New Unity Project/build/app/Libraries/KudanAR/Plugins/iOS/libKudanPlugin.a(KARPlugin.o)) was built for newer iOS version (8.0) than being linked (7.0)
ld: '/Users/georgecook/Documents/tantaWowa/projects/dontRobMyPlanet/git/New Unity Project/build/app/Libraries/KudanAR/Plugins/iOS/libKudanPlugin.a(KARPlugin.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

In your error log, it's saying that Bitcode is not enabled for the framework.
You will need to disable Bitcode on your Xcode project in order for it to build.
Make sure to disable Bitcode on your project and your Targets. (https://wiki.kudan.eu/Building_the_app_-_iOS)

Related

Apache Cordova - iOS: ld: framework not found GooglePlus

I am using Apache Cordova to develop an app, and am trying to make it work on iOS, but a plugin I am using for Google Login is giving me trouble.
The plugin in question is: https://github.com/EddyVerbruggen/cordova-plugin-googleplus
And when I try to build, I get: ld: framework not found GooglePlus
Ld /Users/nicholas/Library/Developer/Xcode/DerivedData/Pass_Manager-gaxgomamsmvhnodgaqpeoiuajsrc/Build/Products/Debug-iphonesimulator/Pass\ Manager.app/Pass\ Manager normal x86_64
cd "/Users/nicholas/Documents/PhoneGap/Pass Manager/platforms/ios"
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -L/Users/nicholas/Library/Developer/Xcode/DerivedData/Pass_Manager-gaxgomamsmvhnodgaqpeoiuajsrc/Build/Products/Debug-iphonesimulator -F/Users/nicholas/Library/Developer/Xcode/DerivedData/Pass_Manager-gaxgomamsmvhnodgaqpeoiuajsrc/Build/Products/Debug-iphonesimulator -FPass\ Manager/Plugins/cordova-plugin-googleplus -filelist /Users/nicholas/Library/Developer/Xcode/DerivedData/Pass_Manager-gaxgomamsmvhnodgaqpeoiuajsrc/Build/Intermediates/Pass\ Manager.build/Debug-iphonesimulator/Pass\ Manager.build/Objects-normal/x86_64/Pass\ Manager.LinkFileList -mios-simulator-version-min=7.0 -Xlinker -objc_abi_version -Xlinker 2 -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -ObjC -fobjc-arc -fobjc-link-runtime -framework AssetsLibrary -framework GooglePlus /Users/nicholas/Library/Developer/Xcode/DerivedData/Pass_Manager-gaxgomamsmvhnodgaqpeoiuajsrc/Build/Products/Debug-iphonesimulator/libCordova.a -framework GoogleOpenSource -framework CoreGraphics -framework GoogleSignIn -framework MobileCoreServices -framework GoogleOpenSource -framework GoogleSignIn -weak_framework AddressBook -weak_framework CoreText -framework GooglePlus -weak_framework StoreKit -weak_framework SystemConfiguration -weak-lz -weak-lz -Xlinker -dependency_info -Xlinker /Users/nicholas/Library/Developer/Xcode/DerivedData/Pass_Manager-gaxgomamsmvhnodgaqpeoiuajsrc/Build/Intermediates/Pass\ Manager.build/Debug-iphonesimulator/Pass\ Manager.build/Objects-normal/x86_64/Pass\ Manager_dependency_info.dat -o /Users/nicholas/Library/Developer/Xcode/DerivedData/Pass_Manager-gaxgomamsmvhnodgaqpeoiuajsrc/Build/Products/Debug-iphonesimulator/Pass\ Manager.app/Pass\ Manager
ld: framework not found GooglePlus
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Even after I have added the GooglePlus.framework to my project, I still get a failed build:
My current project looks like this: http://i.imgur.com/VuOFxKp.png
What am I doing wrong?

"Linker command failed with exit code 1" (Xcode 7, targeting iOS 9)

When I build my project targeting the simulator, it builds fine. However when I target my device running iOS 9, I receive the following error:
Linker command failed with exit code 1
Along with a Directory not found for option warning.
How can I solve this?
Edit : Full Error log
Ld /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator/xxxxx\ xxxx.app/xxxxx\ xxxx normal x86_64
cd "/Users/gbs-mac/Desktop/Swapnil/xxxxx xxxxx"
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -L/Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator -F/Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator -F/Users/sumitghosh/Documents/facebookSDK -F/Users/gbs-mac/Desktop/Swapnil/xxxxxx\ xxxxx/FacebookSDK -F/Users/gbs-mac/Desktop/Swapnil/xxxxxx\ xxxxx/xxxxxx -xxxxx -F/Users/gbs-mac/Desktop/Swapnil/xxxxxx\ xxxxxx -filelist /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Intermediates/Celebrity\ Face.build/Debug-iphonesimulator/xxxxxx\ xxxx.build/Objects-normal/x86_64/xxxxx\ xxxxx.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=7.0 -bundle_loader /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator/MyExistingApp.app/MyExistingApp -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -framework StoreKit -framework EventKit -framework EventKitUI -framework CFNetwork -framework CoreTelephony -framework CoreMedia -framework CoreGraphics -framework SystemConfiguration -framework AVFoundation -framework AdSupport -framework AudioToolbox -framework iAd -framework Security -framework AssetsLibrary -framework MobileCoreServices -framework CoreLocation -framework MediaPlayer -framework MessageUI -framework QuartzCore -framework FBSDKShareKit -framework UIKit -framework GoogleMobileAds -framework FBSDKCoreKit -framework FBSDKLoginKit -Xlinker -dependency_info -Xlinker /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Intermediates/xxxxxx\ xxxx.build/Debug-iphonesimulator/xxxxxxx\ xxxx.build/Objects-normal/x86_64/xxxxx\ Face_dependency_info.dat -o /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator/Celebrity\ Face.app/xxxxxx\ xxxxxx
ld: warning: directory not found for option '-F/Users/sumitghosh/Documents/facebookSDK'
ld: warning: directory not found for option '-F/Users/gbs-mac/Desktop/Swapnil/xxxxxxx xxxxxx/xxxxxx'
ld: warning: directory not found for option '-FFace'
ld: file not found: /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator/MyExistingApp.app/MyExistingApp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
In your project's build setting remove everything from Framework Search paths and Library Search paths. Clean and build.
In your menu bar, go to Product > Clean and click it. Then try rebuilding the project.

Getting MobileVLCKit to work through Cocoapods

I've been struggling to get VLC working in my iOS app for a while now. Using Cocoapods, the MobileVLCKit is imported into my project. When I run the app now, it compiles with no problem. However, when I include anything from the MobileVLCKit (MobileVLCKit.h, VLCMediaPlayer.h), the app crashes, telling me that symbols aren't found.
This is the crash:
Ld /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos/Cameras.app/Cameras normal arm64
cd /Users/JohnDoe/ios-cam-app/iOSCamApp
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -L/Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos -LLibraries -LLibraries/FFmpeg -LLibraries/kxmovie -LLibraries/MBProgressHUD -LLibraries/Nabto -LLibraries/FFmpeg/include -LLibraries/kxmovie/kxmovie.bundle -LLibraries/Nabto/include -LLibraries/Nabto/lib -LLibraries/FFmpeg/include/libavcodec -LLibraries/FFmpeg/include/libavdevice -LLibraries/FFmpeg/include/libavfilter -LLibraries/FFmpeg/include/libavformat -LLibraries/FFmpeg/include/libavutil -LLibraries/FFmpeg/include/libswresample -LLibraries/FFmpeg/include/libswscale -L/Users/JohnDoe/ios-cam-app/iOSCamApp/Libraries/FFmpeg -L/Users/JohnDoe/ios-cam-app/iOSCamApp/Libraries/Nabto/lib -F/Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos -FFrameworks -F/Users/JohnDoe/ios-cam-app/iOSCamApp -filelist /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Intermediates/iOSCamApp.build/Debug-iphoneos/iOSCamApp.build/Objects-normal/arm64/Cameras.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -dead_strip -lPods-AFNetworking -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -lstdc++.6.0.9 -lc++ -liconv.2.4.0 -lbz2 -lz -framework MediaPlayer -framework CoreAudio -framework Crashlytics -framework AudioToolbox -framework Accelerate -framework OpenGLES -lnabto_static_external -framework CoreVideo -framework CoreMedia -framework CFNetwork -framework AVFoundation -lavutil -lavfilter -lPods -lavdevice -lswscale -lnabto_client_api_static -framework Fabric -lavformat -lswresample -lavcodec -framework QuartzCore -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Intermediates/iOSCamApp.build/Debug-iphoneos/iOSCamApp.build/Objects-normal/arm64/Cameras_dependency_info.dat -o /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos/Cameras.app/Cameras
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_VLCMediaPlayer", referenced from:
objc-class-ref in FirstViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
When I installed VLC through cocoa pods, I got this warning:
The `iOSCamApp [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `../Pods/Target Support Files/Pods-iOSCamApp/Pods-iOSCamApp.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
When I add the $(inherited) flag and try to build, I get the following crash:
Ld /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos/Cameras.app/Cameras normal arm64
cd /Users/JohnDoe/ios-cam-app/iOSCamApp
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -L/Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos -LLibraries -LLibraries/FFmpeg -LLibraries/kxmovie -LLibraries/MBProgressHUD -LLibraries/Nabto -LLibraries/FFmpeg/include -LLibraries/kxmovie/kxmovie.bundle -LLibraries/Nabto/include -LLibraries/Nabto/lib -LLibraries/FFmpeg/include/libavcodec -LLibraries/FFmpeg/include/libavdevice -LLibraries/FFmpeg/include/libavfilter -LLibraries/FFmpeg/include/libavformat -LLibraries/FFmpeg/include/libavutil -LLibraries/FFmpeg/include/libswresample -LLibraries/FFmpeg/include/libswscale -L/Users/JohnDoe/ios-cam-app/iOSCamApp/Libraries/FFmpeg -L/Users/JohnDoe/ios-cam-app/iOSCamApp/Libraries/Nabto/lib -F/Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos -FFrameworks -F/Users/JohnDoe/ios-cam-app/iOSCamApp -filelist /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Intermediates/iOSCamApp.build/Debug-iphoneos/iOSCamApp.build/Objects-normal/arm64/Cameras.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -dead_strip -lPods-AFNetworking -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration -ObjC -lPods-AFNetworking -lbz2 -liconv -lstdc++ -lxml2 -lz -framework AVFoundation -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreText -framework MobileCoreServices -framework MobileVLCKit -framework OpenGLES -framework QuartzCore -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -lstdc++.6.0.9 -lc++ -liconv.2.4.0 -lbz2 -lz -framework MediaPlayer -framework CoreAudio -framework Crashlytics -framework AudioToolbox -framework Accelerate -framework OpenGLES -lnabto_static_external -framework CoreVideo -framework CoreMedia -framework CFNetwork -framework AVFoundation -lavutil -lavfilter -lPods -lavdevice -lswscale -lnabto_client_api_static -framework Fabric -lavformat -lswresample -lavcodec -framework QuartzCore -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Intermediates/iOSCamApp.build/Debug-iphoneos/iOSCamApp.build/Objects-normal/arm64/Cameras_dependency_info.dat -o /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos/Cameras.app/Cameras
ld: framework not found MobileVLCKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does anyone know what to do? I've tried so many things and nothing seems to help. Autocomplete is able to read the VLC stuff and autocompletes it for me in Xcode, so the framework should be fine.
Undefined symbols for architecture arm64:
That seems to be the problem. You're compiling for the simulator and apparently MobileVLCKit isn't compiled for it. ld is the linker that complains about this. Have you tried running it on the device?
Check what architectures your project and MobileVLCKit are active on.

openFrameworks for iOS become Apple mach-O Linker Error

When I build an example project in openFrameworks for iOS, it becomes Apple mach-O Linker Error though I do not do anything to the project.
Whichever sample project I choose, it will be the same result.
How do I fix it?
The followings is whole error message.
Ld /Users/xxxxxx/Library/Developer/Xcode/DerivedData/emptyExample-ghwshtlvcvsjalcvfnqzpyjfmhhc/Build/Products/Debug-iphonesimulator/emptyExample.app/emptyExample normal i386
cd /Applications/of_v0.8.4_ios_release/examples/ios/emptyExample
export IPHONEOS_DEPLOYMENT_TARGET=3.1
export 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/iPhoneSimulator8.0.sdk -L/Users/xxxxxx/Library/Developer/Xcode/DerivedData/emptyExample-ghwshtlvcvsjalcvfnqzpyjfmhhc/Build/Products/Debug-iphonesimulator -F/Users/xxxxxx/Library/Developer/Xcode/DerivedData/emptyExample-ghwshtlvcvsjalcvfnqzpyjfmhhc/Build/Products/Debug-iphonesimulator -filelist /Users/xxxxxx/Library/Developer/Xcode/DerivedData/emptyExample-ghwshtlvcvsjalcvfnqzpyjfmhhc/Build/Intermediates/emptyExample.build/Debug-iphonesimulator/emptyExample.build/Objects-normal/i386/emptyExample.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC ../../../libs/FreeImage/lib/osx/freeimage.a ../../../libs/freetype/lib/ios/freetype.a ../../../libs/FreeImage/lib/ios/freeimage.a ../../../libs/poco/lib/ios/PocoNet.a ../../../libs/poco/lib/ios/PocoNetSSL.a ../../../libs/poco/lib/ios/PocoCrypto.a ../../../libs/poco/lib/ios/PocoXML.a ../../../libs/poco/lib/ios/PocoZip.a ../../../libs/poco/lib/ios/PocoUtil.a ../../../libs/poco/lib/ios/PocoFoundation.a ../../../libs/tess2/lib/ios/tess2.a ../../../libs/glu/lib/ios/glu.a ../../../libs/glu/lib/ios/glu-ios.a ../../../libs/openssl/lib/ios/ssl.a ../../../libs/openssl/lib/ios/crypto.a -stdlib=libstdc++ -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=3.1 -framework CoreVideo /Applications/of_v0.8.4_ios_release/libs/openFrameworksCompiled/lib/ios/libofxiOS_iphonesimulator_Debug.a -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -framework QuartzCore -framework AudioToolbox -framework OpenAL -framework CoreLocation -framework CoreGraphics -framework AVFoundation -framework CoreMedia -framework MapKit -Xlinker -dependency_info -Xlinker /Users/xxxxxx/Library/Developer/Xcode/DerivedData/emptyExample-ghwshtlvcvsjalcvfnqzpyjfmhhc/Build/Intermediates/emptyExample.build/Debug-iphonesimulator/emptyExample.build/Objects-normal/i386/emptyExample_dependency_info.dat -o /Users/teruyakusumoto/Library/Developer/Xcode/DerivedData/emptyExample-ghwshtlvcvsjalcvfnqzpyjfmhhc/Build/Products/Debug-iphonesimulator/emptyExample.app/emptyExample
ld: -pie can only be used when targeting iOS 4.2 or later
clang: error: linker command failed with exit code 1 (use -v to see invocation)
As the 2nd to last line in the error message indicates, it looks like you need to set your "Deployment target" to iOS 4.2 or later. It looks you're trying to build for iOS 3.1, but a library is using API's that require 4.2 or newer.

iOS google drive api archive build error

I am currently working with google drive sdk for iOS. I just tested it on the simulator and everything worked good. I logged it I retrieved files and folders, but when I tried to archive I got this error:
Ld /Users/mac/Library/Developer/Xcode/DerivedData/MyProjectName-dtjsurmhdxhcktaoufqjodibkpdd/Build/Intermediates/ArchiveIntermediates/MyProjectName/IntermediateBuildFilesPath/MyProjectName.build/Release-iphoneos/MyProjectName.build/Objects-normal/armv7/MyProjectName normal armv7
cd /Users/mac/Documents/Projects/MyProjectName
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/mac/Library/Developer/Xcode/DerivedData/MyProjectName-dtjsurmhdxhcktaoufqjodibkpdd/Build/Intermediates/ArchiveIntermediates/MyProjectName/BuildProductsPath/Release-iphoneos -F/Users/mac/Library/Developer/Xcode/DerivedData/MyProjectName-dtjsurmhdxhcktaoufqjodibkpdd/Build/Intermediates/ArchiveIntermediates/MyProjectName/BuildProductsPath/Release-iphoneos -F/Users/mac/Documents/Projects/MyProjectName/MyProjectName -F/Users/mac/Documents/Projects/MyProjectName/MyProjectName/Third\ Libraries -filelist /Users/mac/Library/Developer/Xcode/DerivedData/MyProjectName-dtjsurmhdxhcktaoufqjodibkpdd/Build/Intermediates/ArchiveIntermediates/MyProjectName/IntermediateBuildFilesPath/MyProjectName.build/Release-iphoneos/MyProjectName.build/Objects-normal/armv7/MyProjectName.LinkFileList -dead_strip -ObjC -framework CoreData -framework CoreGraphics -framework Foundation -framework ImageIO -framework MessageUI -framework QuartzCore -framework UIKit -all_load -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -lGTLTouchStaticLib -framework QuartzCore -framework MobileCoreServices -framework SystemConfiguration -framework Security -framework DropboxSDK -framework CoreGraphics -framework UIKit -framework Foundation -lPods -Xlinker -dependency_info -Xlinker /Users/mac/Library/Developer/Xcode/DerivedData/MyProjectName-dtjsurmhdxhcktaoufqjodibkpdd/Build/Intermediates/ArchiveIntermediates/MyProjectName/IntermediateBuildFilesPath/MyProjectName.build/Release-iphoneos/MyProjectName.build/Objects-normal/armv7/MyProjectName_dependency_info.dat -o /Users/mac/Library/Developer/Xcode/DerivedData/MyProjectName-dtjsurmhdxhcktaoufqjodibkpdd/Build/Intermediates/ArchiveIntermediates/MyProjectName/IntermediateBuildFilesPath/MyProjectName.build/Release-iphoneos/MyProjectName.build/Objects-normal/armv7/MyProjectName
ld: library not found for -lGTLTouchStaticLib
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Resources