Skip to content
This repository

Build Configuration Name breaks integration #30

Open
dschneller opened this Issue October 31, 2012 · 1 comment

2 participants

Daniel Schneller kohol
Daniel Schneller

I successfully integrated PonyDebugger in my project for the default Debug configuration.
However, we have a few more configurations that pull in different build-settings files (mostly to configure a few pre-processor macros differently for easy switching).

When using one of these configurations (e. g. Debug (xyz)) the headers cannot be found anymore. I tried to fix this by setting these values in the PonyDebugger build configurations (analogous to what RestKit does, which BTW works in my setup):

PRIVATE_HEADERS_FOLDER_PATH = "$(PUBLIC_HEADERS_FOLDER_PATH)/Private";
PRODUCT_NAME = "$(TARGET_NAME)";
PUBLIC_HEADERS_FOLDER_PATH = ../../Headers;

This enabled successful compilation. However then the linker complains, and I have not figured out how to resolve that issue:

ld: library not found for -lSocketRocket
clang: error: linker command failed with exit code 1 (use -v to see invocation)

(see full output below)

It seems to be looking for libSocketRocket.a in the wrong place, if I understand this correctly.

How can I fix this issue? Also: Should I create a pull request for the above change, because it seems to improve the situation a bit already?

Full error output
(wrapped for readability)

Ld "/Users/ds/Library/Developer/Xcode/DerivedData/MyProject-gjuonoyeresaysbhbvztuowdvopw/Build/Products/Debug (TEST)-iphonesimulator/MyProject.app/MyProject" normal i386
    cd /Users/ds/MyProject/iOSClient/MyProject
    setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
    setenv PATH "/Volumes/MBP4711HD/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Volumes/MBP4711HD/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

/Volumes/MBP4711HD/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
    -arch i386
    -isysroot /Volumes/MBP4711HD/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk
     "-L/Users/ds/Library/Developer/Xcode/DerivedData/MyProject-gjuonoyeresaysbhbvztuowdvopw/Build/Products/Debug (TEST)-iphonesimulator"
    -L/Users/ds/MyProject/iOSClient/MyProject/TestflightSDK 
    "-F/Users/ds/Library/Developer/Xcode/DerivedData/MyProject-gjuonoyeresaysbhbvztuowdvopw/Build/Products/Debug (TEST)-iphonesimulator" 
    -filelist "/Users/ds/Library/Developer/Xcode/DerivedData/MyProject-gjuonoyeresaysbhbvztuowdvopw/Build/Intermediates/MyProject.build/Debug (TEST)-iphonesimulator/MyProject.build/Objects-normal/i386/MyProject.LinkFileList"
    -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -fobjc-arc -fobjc-link-runtime
    -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.0
    -lSocketRocket
    -licucore
    /Users/ds/Library/Developer/Xcode/DerivedData/MyProject-gjuonoyeresaysbhbvztuowdvopw/Build/Products/Release-iphonesimulator/libPonyDebugger.a
    -framework SystemConfiguration
    /Users/ds/Library/Developer/Xcode/DerivedData/MyProject-gjuonoyeresaysbhbvztuowdvopw/Build/Products/Release-iphonesimulator/libRestKit.a
    -framework CFNetwork
    -lxml2
    -framework MobileCoreServices
    -framework Security
    -framework CoreData
    -framework QuartzCore
    -framework CoreGraphics
    -framework UIKit
    -framework Foundation
    -lTestFlight
    -lz
    -o "/Users/ds/Library/Developer/Xcode/DerivedData/MyProject-gjuonoyeresaysbhbvztuowdvopw/Build/Products/Debug (TEST)-iphonesimulator/MyProject.app/MyProject"
kohol
kohol commented April 08, 2013

I have the same problem. Did you figure out how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.