xcode - Linking to third party framework with xcodebuild -



xcode - Linking to third party framework with xcodebuild -

i have 3rd party framework (which have developed) sub-project of command line application in xcode.

if build command-line app in xcode, builds framework, builds application, links framework.

when run built application correctly looks framework in application's current working directory. so:

otool -l my_application

gives:

@executable_path/myframework.framework/versions/a/myframework

however, if build application command line xcodebuild, built application looks in /library/frameworks/ framework , next runtime error:

dyld: library not loaded: /library/frameworks/myframework.framework/versions/a/myframework referenced from: /path/to/my_application reason: image not found

so, xcodebuild seems not running necessary command (install_name_tool -change?) update executable's link @executable_path/..

my xcodebuild command of form:

xcodebuild -project path/to/project.xcodeproj -scheme my_scheme -configuration release configuration_build_dir=`pwd`/project

this xcode 4.6 on os x 10.8.4

xcode osx linker xcodebuild

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -