Fixing a build path after renaming a project
Fixing a build path after renaming a project
- Subject: Fixing a build path after renaming a project
- From: "Lobron, David" <email@hidden>
- Date: Mon, 06 Apr 2015 20:53:35 +0000
- Thread-topic: Fixing a build path after renaming a project
Hi All,
I recently had a rename an XCode project. I followed a suggested on
StackOverflow to hover-highlight the project name, and got a drop-down
menu that let me change various items from the old name to the new one.
This all seems to work fine, and my project is building. However, the
compiler is putting the .o files and the executable in the old project
directory. For example, here is the clang command that compiles my first
file in the project:
CompileC
/Users/dlobron/fp_dev/akamai/loadreporter/build/fploadsp.build/Debug/DsaUni
tTest.build/Objects-normal/i386/DsaUnitTest.o Test/DsaUnitTest.mm normal
i386 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/dlobron/fp_dev/akamai/fploadsp
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolch
ain/usr/bin/clang -x objective-c++ -arch i386 -fmessage-length=0
-fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fmodules
-fmodules-cache-path=/Users/dlobron/Library/Developer/Xcode/DerivedData/Mod
uleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600
-Wnon-modular-include-in-framework-module
-Werror=non-modular-include-in-framework-module -Wno-trigraphs
-fpascal-strings -O0 -Wno-missing-field-initializers
-Wno-missing-prototypes -Werror=return-type -Wunreachable-code
-Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage
-Werror=objc-root-class -Wno-receiver-is-weak
-Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor
-Wno-overloaded-virtual -Wno-exit-time-destructors
-Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch
-Wunused-function -Wno-unused-label -Wno-unused-parameter
-Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized
-Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion
-Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion
-Wshorten-64-to-32 -Wno-newline-eof -Wno-selector
-Wno-strict-selector-match -Wundeclared-selector
-Wno-deprecated-implementations -Wno-c++11-extensions -DDEBUG=1 -DDEBUG=1
-DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develo
per/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wprotocol
-Wno-deprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.9
-g -fvisibility-inlines-hidden -Wno-sign-conversion -iquote
/Users/dlobron/fp_dev/akamai/loadreporter/build/fploadsp.build/Debug/DsaUni
tTest.build/DsaUnitTest-generated-files.hmap
-I/Users/dlobron/fp_dev/akamai/loadreporter/build/fploadsp.build/Debug/DsaU
nitTest.build/DsaUnitTest-own-target-headers.hmap
-I/Users/dlobron/fp_dev/akamai/loadreporter/build/fploadsp.build/Debug/DsaU
nitTest.build/DsaUnitTest-all-target-headers.hmap -iquote
/Users/dlobron/fp_dev/akamai/loadreporter/build/fploadsp.build/Debug/DsaUni
tTest.build/DsaUnitTest-project-headers.hmap
-I/Users/dlobron/fp_dev/akamai/loadreporter/build/Debug/include
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Deve
loper/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1 -I../common/include
-I/Users/dlobron/fp_dev/akamai/loadreporter/build/fploadsp.build/Debug/DsaU
nitTest.build/DerivedSources/i386
-I/Users/dlobron/fp_dev/akamai/loadreporter/build/fploadsp.build/Debug/DsaU
nitTest.build/DerivedSources
-F/Users/dlobron/fp_dev/akamai/loadreporter/build/Debug
-F/Library/Frameworks -idirafter /usr/include/c++/4.2.1/ext -MMD -MT
dependencies -MF
/Users/dlobron/fp_dev/akamai/loadreporter/build/fploadsp.build/Debug/DsaUni
tTest.build/Objects-normal/i386/DsaUnitTest.d --serialize-diagnostics
/Users/dlobron/fp_dev/akamai/loadreporter/build/fploadsp.build/Debug/DsaUni
tTest.build/Objects-normal/i386/DsaUnitTest.dia -c
/Users/dlobron/fp_dev/akamai/fploadsp/Test/DsaUnitTest.mm -o
/Users/dlobron/fp_dev/akamai/loadreporter/build/fploadsp.build/Debug/DsaUni
tTest.build/Objects-normal/i386/DsaUnitTest.o
The old project name was "loadreporter" and the new one is "fploadsp".
You can see that both names appear in the compile command: the first
CompileC line has "loadreporter" in the path, but then the "cd" line goes
to the new location ("/Users/dlobron/fp_dev/akamai/fploadsp"). The -c
argument picks up the code files in the right place
(/Users/dlobron/fp_dev/akamai/fploadsp/Test/DsaUnitTest.mm), but then the
-o argument sends the output to the old location (-o
/Users/dlobron/fp_dev/akamai/loadreporter/build/fploadsp.build/Debug/DsaUni
tTest.build/Objects-normal/i386/DsaUnitTest.o).
I looked at all of the path-related build settings, and I can't find any
where the old loadreporter name is referenced. I tried following the
instructions here:
http://stackoverflow.com/questions/17744319/duplicate-and-rename-xcode-proj
ect-associated-folders
but even when I clicked the folder icon and changed the name, the
compiler's command was not changed.
Does anybody know which setting I need to tweak in order to get my code
compiled and linked in the new project directory?
Thanks very much in advance for any help,
David
_______________________________________________
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