Closed saheljalal closed 10 years ago
DDLog is undefined. That's part of Cocoa Lumberjack I believe. — Sent from Mailbox for iPhone
On Sat, Jan 11, 2014 at 2:39 AM, saheljalal notifications@github.com wrote:
Creating a brand new application and then adding the framework to my project with these lines to init the sdk fails to link. Am I doing something wrong or is this an issue? Source added to ViewController.m:
import <HueSDK_iOS/HueSDK.h>
PHHueSDK *hueSDK = [[PHHueSDK alloc] init]; [hueSDK startUpSDK]; Link Failure: Ld /Users/codemonkey/Library/Developer/Xcode/DerivedData/HueTestApp-augdwxfcjtsfudenbnnvwtytgknq/Build/Products/Debug-iphonesimulator/HueTestApp.app/HueTestApp normal i386 cd /Users/codemonkey/Desktop/HueTestApp setenv IPHONEOS_DEPLOYMENT_TARGET 7.0 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/codemonkey/.rvm/gems/ruby-2.0.0-p247/bin:/Users/codemonkey/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/codemonkey/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/codemonkey/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/jalal/Code/Scripts" /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/codemonkey/Library/Developer/Xcode/DerivedData/HueTestApp-augdwxfcjtsfudenbnnvwtytgknq/Build/Products/Debug-iphonesimulator -F/Users/codemonkey/Library/Developer/Xcode/DerivedData/HueTestApp-augdwxfcjtsfudenbnnvwtytgknq/Build/Products/Debug-iphonesimulator -F/Users/codemonkey/Desktop/HueTestApp -filelist /Users/codemonkey/Library/Developer/Xcode/DerivedData/HueTestApp-augdwxfcjtsfudenbnnvwtytgknq/Build/Intermediates/HueTestApp.build/Debug-iphonesimulator/HueTestApp.build/Objects-normal/i386/HueTestApp.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -framework CoreGraphics -framework UIKit -framework HueSDK_iOS -framework Foundation -Xlinker -depe ndency_info -Xlinker /Users/codemonkey/Library/Developer/Xcode/DerivedData/HueTestApp-augdwxfcjtsfudenbnnvwtytgknq/Build/Intermediates/HueTestApp.build/Debug-iphonesimulator/HueTestApp.build/Objects-normal/i386/HueTestApp_dependency_info.dat -o /Users/codemonkey/Library/Developer/Xcode/DerivedData/HueTestApp-augdwxfcjtsfudenbnnvwtytgknq/Build/Products/Debug-iphonesimulator/HueTestApp.app/HueTestApp Undefined symbols for architecture i386: "_OBJCCLASS$_DDLog", referenced from: objc-class-ref in HueSDK_iOS(PHHueSDK.o) objc-class-ref in HueSDK_iOS(PHBridgeSearching.o) objc-class-ref in HueSDK_iOS(PHCLIPWrapper2.o) objc-class-ref in HueSDK_iOS(PHHeartbeatProcessingLocal.o) objc-class-ref in HueSDK_iOS(PHHttpRequester.o) objc-class-ref in HueSDK_iOS(PHAuthentication.o) objc-class-ref in HueSDK_iOS(PHBridgeResourcesWriter.o) ... "_OBJCCLASS$_DDTTYLogger", referenced from: objc-class-ref in HueSDK_iOS(PHHueSDK.o) ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Reply to this email directly or view it on GitHub: https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX/issues/43
Yes DDLog is part of lumberjack, so it seems you haven't added the lumberjack sources to your project (correctly).
Thanks, that indeed was my problem. Still having issues with x86_64 but hopefully they'll update the slices.
Creating a brand new application and then adding the framework to my project with these lines to init the sdk fails to link. Am I doing something wrong or is this an issue?
Source added to ViewController.m:
Link Failure:
Ld /Users/codemonkey/Library/Developer/Xcode/DerivedData/HueTestApp-augdwxfcjtsfudenbnnvwtytgknq/Build/Products/Debug-iphonesimulator/HueTestApp.app/HueTestApp normal i386 cd /Users/codemonkey/Desktop/HueTestApp setenv IPHONEOS_DEPLOYMENT_TARGET 7.0 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/codemonkey/.rvm/gems/ruby-2.0.0-p247/bin:/Users/codemonkey/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/codemonkey/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/codemonkey/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/jalal/Code/Scripts" /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/codemonkey/Library/Developer/Xcode/DerivedData/HueTestApp-augdwxfcjtsfudenbnnvwtytgknq/Build/Products/Debug-iphonesimulator -F/Users/codemonkey/Library/Developer/Xcode/DerivedData/HueTestApp-augdwxfcjtsfudenbnnvwtytgknq/Build/Products/Debug-iphonesimulator -F/Users/codemonkey/Desktop/HueTestApp -filelist /Users/codemonkey/Library/Developer/Xcode/DerivedData/HueTestApp-augdwxfcjtsfudenbnnvwtytgknq/Build/Intermediates/HueTestApp.build/Debug-iphonesimulator/HueTestApp.build/Objects-normal/i386/HueTestApp.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -framework CoreGraphics -framework UIKit -framework HueSDK_iOS -framework Foundation -Xlinker -dependency_info -Xlinker /Users/codemonkey/Library/Developer/Xcode/DerivedData/HueTestApp-augdwxfcjtsfudenbnnvwtytgknq/Build/Intermediates/HueTestApp.build/Debug-iphonesimulator/HueTestApp.build/Objects-normal/i386/HueTestApp_dependency_info.dat -o /Users/codemonkey/Library/Developer/Xcode/DerivedData/HueTestApp-augdwxfcjtsfudenbnnvwtytgknq/Build/Products/Debug-iphonesimulator/HueTestApp.app/HueTestApp
Undefined symbols for architecture i386: "_OBJCCLASS$_DDLog", referenced from: objc-class-ref in HueSDK_iOS(PHHueSDK.o) objc-class-ref in HueSDK_iOS(PHBridgeSearching.o) objc-class-ref in HueSDK_iOS(PHCLIPWrapper2.o) objc-class-ref in HueSDK_iOS(PHHeartbeatProcessingLocal.o) objc-class-ref in HueSDK_iOS(PHHttpRequester.o) objc-class-ref in HueSDK_iOS(PHAuthentication.o) objc-class-ref in HueSDK_iOS(PHBridgeResourcesWriter.o) ... "_OBJCCLASS$_DDTTYLogger", referenced from: objc-class-ref in HueSDK_iOS(PHHueSDK.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)