How do I get dependent unit tests to work for non-framework projects?
How do I get dependent unit tests to work for non-framework projects?
- Subject: How do I get dependent unit tests to work for non-framework projects?
- From: Mike Laster <email@hidden>
- Date: Thu, 8 Dec 2005 12:23:15 -0500
I have unit tests working for my frameworks, but I get dyld errors
when I try to do the same thing with my non-framework projects:
(I edited some irrelevant lines out to make this post smaller)
PhaseScriptExecution
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release/TestFundPrice.build/Script-19C72F4209475FE9004D8A39.sh
cd /Users/mlaster/InProgress/trunk/Servers/FundPrice
setenv ACTION build
setenv ALWAYS_SEARCH_USER_PATHS YES
setenv BUILD_DIR /Users/mlaster/Library/Caches/Xcode/trunk
setenv BUILD_ROOT /Users/mlaster/Library/Caches/Xcode/trunk
setenv BUILD_STYLE Release
setenv BUILD_VARIANTS normal
setenv BUILT_PRODUCTS_DIR /Users/mlaster/Library/Caches/Xcode/trunk/Release
setenv BUNDLE_LOADER
/Users/mlaster/Library/Caches/Xcode/trunk/Release/FundPrice
setenv CACHE_ROOT /Library/Caches/com.apple.Xcode.505
setenv CCHROOT /Library/Caches/com.apple.Xcode.505
setenv CONFIGURATION Release
setenv CONFIGURATION_BUILD_DIR
/Users/mlaster/Library/Caches/Xcode/trunk/Release
setenv CONFIGURATION_TEMP_DIR
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release
setenv CONTENTS_FOLDER_PATH TestFundPrice.octest/Contents
setenv DEPLOYMENT_LOCATION NO
setenv DERIVED_FILES_DIR
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release/TestFundPrice.build/DerivedSources
setenv DERIVED_FILE_DIR
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release/TestFundPrice.build/DerivedSources
setenv DERIVED_SOURCES_DIR
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release/TestFundPrice.build/DerivedSources
setenv DSTROOT /tmp/FundPrice.dst
setenv EXECUTABLES_FOLDER_PATH TestFundPrice.octest/Contents/Executables
setenv EXECUTABLE_FOLDER_PATH TestFundPrice.octest/Contents/MacOS
setenv EXECUTABLE_NAME TestFundPrice
setenv EXECUTABLE_PATH TestFundPrice.octest/Contents/MacOS/TestFundPrice
setenv FIXED_FILES_DIR
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release/TestFundPrice.build/FixedFiles
setenv FRAMEWORK_SEARCH_PATHS
/Users/mlaster/Library/Caches/Xcode/trunk/Release
setenv FULL_PRODUCT_NAME TestFundPrice.octest
setenv LIBRARY_SEARCH_PATHS
/Users/mlaster/Library/Caches/Xcode/trunk/Release
setenv LINK_FILE_LIST_normal_ppc
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release/TestFundPrice.build/Objects-normal/ppc/TestFundPrice.LinkFileList
setenv MACOSX_DEPLOYMENT_TARGET 10.4
setenv OBJECT_FILE_DIR
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release/TestFundPrice.build/Objects
setenv OBJECT_FILE_DIR_normal
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release/TestFundPrice.build/Objects-normal
setenv OBJROOT /Users/mlaster/Library/Caches/Xcode/trunk
setenv PRODUCT_NAME TestFundPrice
setenv PRODUCT_SETTINGS_PATH
/Users/mlaster/InProgress/trunk/Servers/FundPrice/UnitTests/Info.plist
setenv PRODUCT_TYPE com.apple.product-type.bundle
setenv PROJECT FundPrice
setenv PROJECT_DERIVED_FILE_DIR
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/DerivedSources
setenv PROJECT_DIR /Users/mlaster/InProgress/trunk/Servers/FundPrice
setenv PROJECT_FILE_PATH
/Users/mlaster/InProgress/trunk/Servers/FundPrice/FundPrice.xcodeproj
setenv PROJECT_NAME FundPrice
setenv PROJECT_TEMP_DIR
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build
setenv PUBLIC_HEADERS_FOLDER_PATH TestFundPrice.octest/Contents/Headers
setenv SCRIPTS_FOLDER_PATH TestFundPrice.octest/Contents/Resources/Scripts
setenv SCRIPT_INPUT_FILE_COUNT 0
setenv SCRIPT_OUTPUT_FILE_COUNT 0
setenv SDKROOT
/Users/mlaster/Library/Caches/Xcode/trunk/Release/DerivedSources
setenv SKIP_INSTALL YES
setenv SOURCE_ROOT /Users/mlaster/InProgress/trunk/Servers/FundPrice
setenv SRCROOT /Users/mlaster/InProgress/trunk/Servers/FundPrice
setenv SYMROOT /Users/mlaster/Library/Caches/Xcode/trunk
setenv TARGETNAME TestFundPrice
setenv TARGET_BUILD_DIR /Users/mlaster/Library/Caches/Xcode/trunk/Release
setenv TARGET_NAME TestFundPrice
setenv TARGET_TEMP_DIR
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release/TestFundPrice.build
setenv TEMP_DIR
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release/TestFundPrice.build
setenv TEMP_FILES_DIR
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release/TestFundPrice.build
setenv TEMP_FILE_DIR
/Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release/TestFundPrice.build
setenv TEMP_ROOT /Users/mlaster/Library/Caches/Xcode/trunk
setenv TEST_HOST /Users/mlaster/Library/Caches/Xcode/trunk/Release/FundPrice
setenv WRAPPER_EXTENSION octest
setenv WRAPPER_NAME TestFundPrice.octest
setenv WRAPPER_SUFFIX .octest
/bin/sh -c /Users/mlaster/Library/Caches/Xcode/trunk/FundPrice.build/Release/TestFundPrice.build/Script-19C72F4209475FE9004D8A39.sh
dyld: Library not loaded:
/Marketocracy/Frameworks/ObjectModel.framework/Versions/A/ObjectModel
Referenced from: /Users/mlaster/Library/Caches/Xcode/trunk/Release/FundPrice
Reason: image not found
/Developer/Tools/RunUnitTests: line 184: 820 Trace/BPT trap
"${TEST_HOST}" ${TEST_HOST_FLAGS}
For some reason it is looking for frameworks in the install location, not in
BUILT_PRODUCTS_DIR. I don't want running unit tests to depend on anything being
installed and even actively ignore anything that may be installed and only
test code in BUILT_PRODUCT_DIR.
The framework that is cannot find exists in BUILT_PRODUCTS_DIR so it should be
able to locate it.
The main target actually runs correctly so not having the frameworks
installed doesn't seem to be hindering the abiltity to run the app.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden