I took an old game that I had and wanted to add the PebbleFramework and now I am getting these warnings and errors. I followed their documentation correctly.
Any help would greatly be appreciated
Ld /Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Products/Debug-iphonesimulator/TicTacToe.app/TicTacToe normal i386
cd /Users/developer/Developer/iOS/TicTac
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
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/iPhoneSimulator7.0.sdk -L/Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Products/Debug-iphonesimulator -F/Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Products/Debug-iphonesimulator -F/Users/developer/Developer/iOS/TicTac -F/Users/developer/Downloads/TicTac -filelist /Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Intermediates/TicTacToe.build/Debug-iphonesimulator/TicTacToe.build/Objects-normal/i386/TicTacToe.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.0 -framework CoreLocation -lz -framework ExternalAccessory -framework CoreBluetooth -framework CoreMotion -framework MessageUI -framework GameKit -framework iAd -framework AudioToolbox -framework AVFoundation -framework SystemConfiguration -framework AdSupport -framework CoreGraphics -framework QuartzCore -framework UIKit -framework PebbleVendor -framework PebbleKit -framework Foundation -framework RevMobAds -Xlinker -dependency_info -Xlinker /Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Intermediates/TicTacToe.build/Debug-iphonesimulator/TicTacToe.build/Objects-normal/i386/TicTacToe_dependency_info.dat -o /Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Products/Debug-iphonesimulator/TicTacToe.app/TicTacToe
ld: warning: directory not found for option '-F/Users/developer/Downloads/TicTac'
Undefined symbols for architecture i386:
"_kCFErrorDomainCFNetwork", referenced from:
-[QServer netService:didNotPublish:] in PebbleKit(QServer.o)
"_kCFStreamErrorDomainNetServices", referenced from:
-[QServer netService:didNotPublish:] in PebbleKit(QServer.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Below are the instructions that I followed when adding the PebbleKit framework.
## Integrating PebbleKit Manually
- Drag PebbleKit.framework into project
- Drag in PebbleVendor.framework into the project, or, drag the PebbleVendor.xcodeproj into project if you need to control the 3rd party components needed for PebbleKit.
- Link ExternalAccessory.framework, libz.dylib, CoreBluetooth.framework, CoreMotion.framework and MessageUI.framework
- Add "-ObjC" linker flag to your project's build settings
- Add the value "com.getpebble.public" to the "Supported external accessory protocols" (UISupportedExternalAccessoryProtocols) array in your app's Info.plist
- Optionally, add the value "App communicates with an accessory" (external-accessory) to the "Required background modes" (UIBackgroundModes) array in your app's Info.plist
Make sure that CFNetwork is also linked to your app.
The instructions you followed are outdated. Can you let us know where you found them?
Up-to-date instructions are available here: http://developer.getpebble.com/2/mobile-app-guide/ios-guide.html
Related
I am working with an XCode project which was fine yesterday but today without any change in code I am getting following compile error.
Any suggestion? How can i fix it?
Ld DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator/Project\ Sounds.app/Project\ Sounds normal i386
cd "/Users/admin/Desktop/App 2"
export IPHONEOS_DEPLOYMENT_TARGET=6.0
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.2.sdk -L/Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator -L/Users/admin/Desktop/App\ 2/Classes/ListControl/OELib -L/Users/admin/Desktop/App\ 2/../../../iPad/API\'s/Google\ Analytics\ SDK/Library -L/Users/admin/Desktop/App\ 2/Classes/Analytic -LLibrary -F/Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator -filelist /Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Intermediates/OEiPhone.build/Debug-iphonesimulator/Project\ Sounds.build/Objects-normal/i386/Project\ Sounds.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -licucore -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework CoreMedia -framework AVFoundation -framework NewsstandKit -lsqlite3.0 -lz.1.2.5 -framework Foundation -framework UIKit -framework CoreGraphics -framework CFNetwork -framework QuartzCore -framework SystemConfiguration -lGoogleAnalytics_NoThumb -framework MediaPlayer -framework MessageUI -framework OpenGLES -framework CoreText -framework CoreLocation -framework MapKit -framework StoreKit -lxml2 -lGoogleAnalytics -Xlinker -dependency_info -Xlinker /Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Intermediates/OEiPhone.build/Debug-iphonesimulator/Project\ Sounds.build/Objects-normal/i386/Project\ Sounds_dependency_info.dat -o /Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator/Project\ Sounds.app/Project\ Sounds
ld: warning: directory not found for option '-L/Users/admin/Desktop/App 2/Classes/ListControl/OELib'
ld: warning: directory not found for option '-L/Users/admin/Desktop/App 2/../../../iPad/API's/Google Analytics SDK/Library'
ld: warning: directory not found for option '-L/Users/admin/Desktop/App 2/Classes/Analytic'
ld: warning: directory not found for option '-LLibrary'
ld: library not found for -lGoogleAnalytics_NoThumb
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I had the same problem.
Make sure to remove the library in your
Project -> Build Phases -> Link Binary With Libraries
if you removed it or add it if it's missing.
This path
/Users/admin/Desktop/App 2/../../../iPad/API's/Google Analytics SDK/Library
Is pointing at a Library on your desktop. Is that library still there, or did you move/delete it?
I'm using libpd in a universal iOS app, working with iOS 7 and Xcode 5.0.2. libpd works as expected (can load and interact with Pd patches), but I'm having trouble using external objects.
Here's the error message I'm seeing:
Ld DerivedData/Build/Products/Debug-iphoneos/BrightHearts.app/BrightHearts normal armv7s
cd /Users/jman/Developer/Sensorium/brighthearts-beta/BrightHearts
setenv IPHONEOS_DEPLOYMENT_TARGET 7.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 armv7s -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/jman/Developer/Sensorium/brighthearts-beta/BrightHearts/DerivedData/Build/Products/Debug-iphoneos
-F/Users/jman/Developer/Sensorium/brighthearts-beta/BrightHearts/DerivedData/Build/Products/Debug-iphoneos -filelist /Users/jman/Developer/Sensorium/brighthearts-beta/BrightHearts/DerivedData/Build/Intermediates/BrightHearts.build/Debug-iphoneos/BrightHearts.build/Objects-normal/armv7s/BrightHearts.LinkFileList
-dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework GLKit -framework OpenGLES -framework SystemConfiguration -framework Security -framework QuartzCore -framework CoreText /Users/jman/Developer/Sensorium/brighthearts-beta/BrightHearts/DerivedData/Build/Products/Debug-iphoneos/libpd-ios.a
-framework AudioToolbox -framework AVFoundation -framework CoreBluetooth -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker
/Users/jman/Developer/Sensorium/brighthearts-beta/BrightHearts/DerivedData/Build/Intermediates/BrightHearts.build/Debug-iphoneos/BrightHearts.build/Objects-normal/armv7s/BrightHearts_dependency_info.dat -o
/Users/jman/Developer/Sensorium/brighthearts-beta/BrightHearts/DerivedData/Build/Products/Debug-iphoneos/BrightHearts.app/BrightHearts
Undefined symbols for architecture armv7s:
"_allsickles_setup", referenced from:
-[SENViewController setupPD] in SENViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've seen the suggestion to set the 'Build Active Architecture' flag to YES for the libpd subproject - this doesn't make any difference, I still get the same error.
Is there a solution (obvious or otherwise) for this issue?
looks to me like you aren't actually compiling allsickles.c from the Cyclone external. That file has the method void allsickles_setup(void) which I guess you're trying to call to set up libpd.
If allsickles.c is in your project, maybe it's not actually getting compiled, so you might have to add it to "Compile Sources" under Build Phases.
I have updated my xcode to xcode5.1 and I can't run the existing project now. Below is the error I am getting. I have added the static library within this project. Also I am using external framework, IOKit framework. I don't understand why am I getting this error. It was working perfectly with xcode5.0.2. Error is below:
Ld /Users/xxxxx/armv7/xxx normal armv7
cd /Users/xxxx
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/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.1.sdk -L/Users/xxx-cmjabkmgfntwxeedtebsizdngzry/Build/Products/Debug-iphoneos -L/Users/xxx -F/Users/xxx/Library/Developer/Xcode/DerivedData/xxx-cmjabkmgfntwxeedtebsizdngzry/Build/Products/Debug-iphoneos -F/Users/xxxcmjabkmgfntwxeedtebsizdngzry/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Objects-normal/armv7/xxx.LinkFileList -dead_strip -ObjC -fobjc-link-runtime -miphoneos-version-min=6.0 -lIOKit -lLIBRARY_TEST -lsqlite3 -framework SystemConfiguration -framework CoreMedia -lxml2.2 -lxml2 -framework MobileCoreServices -framework AVFoundation -framework AudioToolbox -framework CoreMotion -framework MediaPlayer -framework QuartzCore -framework CoreTelephony -framework CoreGraphics -llockdown -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/xxx-cmjabkmgfntwxeedtebsizdngzry/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Objects-normal/armv7/xxx_dependency_info.dat -o /Users/xxx-cmjabkmgfntwxeedtebsizdngzry/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Objects-normal/armv7/xxx
Please consider xxx is the path of my project.
ld: library not found for -lIOKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried changing all the settings related to Architectures but no luck. Any help appreciated.
Manually add library search path to your finder where you've added libs.
Project setting -> Build setting -> library search path ->
"../ProjectDirectory/Static library path"
I am being thrown an error while building my application post adding the libRxAutomation library. I have followed the instructions that are given in their website to integrate the library, moreover it is similar to adding an external library like test flight sdk, flurry etc.
App name * app scheme is replaced with *.. Because of few reasons I am not able to reveal the name. Sorry for the inconvenience caused.
People suggested to check if any file is missing/ are added twice, I have checked in my project and every file is added only once...
Ld /Users/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Products/Debug-iphonesimulator/******-internal\ Beta\ Test.app/******-internal\ Beta\ Test normal i386
cd /Users/dinakarsoma2/Desktop/Patches_test/3.0/******
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
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/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Products/Debug-iphonesimulator -L/Users/dinakarsoma2/Desktop/Patches_test/3.0/****** -L\\\"/Users/dinakarsoma2/Desktop/Patches_test/3.0/******/******/External\\\ Libraries/Flurry\\\" -L\\\"/Users/dinakarsoma2/Desktop/Patches_test/3.0/******/******/External\\\ Libraries/TestFlight\\\ SDK\\\" -L/Users/dinakarsoma2/Desktop/Patches_test/3.0/****** -L/Users/dinakarsoma2/Desktop/Patches_test/3.0/******/******/External\ Libraries/TestFlight\ SDK -F/Users/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Products/Debug-iphonesimulator -F/Users/dinakarsoma2/Desktop/Patches_test/3.0/****** -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/PrivateFrameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Users/dinakarsoma2/Desktop/Patches_test/3.0/******/******/External\ Libraries/DTRichTextEditor.embeddedframework -F/Users/dinakarsoma2/Desktop/Patches_test/3.0/******/******/External\ Libraries/DTRichTextEditor -F/Users/dinakarsoma2/Desktop/Patches_test/3.0/******/../../../../../../Downloads -filelist /Users/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Intermediates/******.build/Debug-iphonesimulator/******-internal\ Beta\ Test.build/Objects-normal/i386/******-internal\ Beta\ Test.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -fobjc-arc -fobjc-link-runtime -fprofile-arcs -ftest-coverage -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -lz.1.2.5 -framework AssetsLibrary /Users/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Products/Debug-iphonesimulator/libDTRichTextEditor.a -framework CoreText -framework MessageUI -framework StoreKit -framework CoreGraphics -framework GameKit -framework ImageIO -framework AddressBookUI -framework AddressBook -framework EventKit -framework EventKitUI -framework CFNetwork -framework CoreData -lxml2 -framework MobileCoreServices -framework QuartzCore -framework Security -framework UIKit -framework Foundation -lRxAutomationUni_411 -framework SystemConfiguration -lFlurry -lTestFlight -Xlinker -dependency_info -Xlinker /Users/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Intermediates/******.build/Debug-iphonesimulator/******-internal\ Beta\ Test.build/Objects-normal/i386/******-internal\ Beta\ Test_dependency_info.dat -o /Users/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Products/Debug-iphonesimulator/******-internal\ Beta\ Test.app/******-internal\ Beta\ Test
ld: warning: directory not found for option '-L\"/Users/dinakarsoma2/Desktop/Patches_test/3.0/*****/*****/External\ Libraries/Flurry\"'
ld: warning: directory not found for option '-L\"/Users/dinakarsoma2/Desktop/Patches_test/3.0/*****/*****/External\ Libraries/TestFlight\ SDK\"'
ld: warning: directory not found for option '-F/Users/dinakarsoma2/Desktop/Patches_test/3.0/*****/../../../../../../Downloads'
ld: library not found for -lFlurry
clang: error: linker command failed with exit code 1 (use -v to see invocation)
As anyone faced a silmilar issue.. Plz help me with your thoughts. The issue looks a small one but I am struck with this for the past couple of hours.
Any help is appreciated.. thanks in advance
Finally fixed the issue... The issue was a very silly one..
Posting the same here if by any chance if someone else gets struck with a similar issue..
In Build settings -> Search Paths - The path for external providers (My case - Testflight,flurry etc). In the path the there is a space which is encoded and replaced with "\",etc.
I have removed extra character in the path which solved my issue..
ex:my path - "$(SRCROOT)/TargetName/External Libraries/TestFlight SDK"
its encoded as "$(SRCROOT)/TargetName/External Libraries/TestFlight \SDK"
removing the "\" solved the case..
I checked out a working app from SVN. Want to test it in iphone simulator. But the building failed.
Ld /Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Products/Debug-iphonesimulator/MySoftware.de.app/MySoftware.de normal i386
cd /Users/ludwig/MySoftware_SVN/MySoftware/trunk/MobileClient/iOS/MySoftware
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
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/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Products/Debug-iphonesimulator -L/Users/ludwig/MySoftware_SVN/MySoftware/trunk/MobileClient/iOS/MySoftware/ZBarSDK -L/Users/ludwig/MySoftware_SVN/MySoftware/trunk/MobileClient/iOS/MySoftware -F/Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Products/Debug-iphonesimulator -filelist /Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Intermediates/MySoftware.build/Debug-iphonesimulator/MySoftware.build/Objects-normal/i386/MySoftware.de.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.3 -framework Security -framework MessageUI -framework AudioToolbox -framework Foundation -framework UIKit -framework CoreGraphics -framework CoreData -framework CoreMedia -framework CoreVideo -framework QuartzCore -liconv -framework AVFoundation -lzbar -o /Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Products/Debug-iphonesimulator/MySoftware.de.app/MySoftware.de
ld: library not found for -lzbar
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can somebody help? Or need more information?!
I am not able to add a screenshot..
in the overview of the "other sources" there is the dict ZBarSDK and inside there is a headers and a resources folder and a file:
libzbar.a but the filename is in Red!? and i am not able to open it. Is this maybe the reason?
There's a particular way to install ZBAR. Follow these instructions : http://zbar.sourceforge.net/iphone/sdkdoc/install.html