Re: info.plist problem
Re: info.plist problem
- Subject: Re: info.plist problem
- From: David HM Spector <email@hidden>
- Date: Wed, 26 Dec 2007 12:27:36 -0500
Here's the stock transcript before moving the info.plist file:
Building target “Plist-test” of project “Plist-test” with
configuration “Debug”
Checking Dependencies
Processing /Users/spector/Work/CocoaTests/Plist-test/build/Debug/Plist-
test.app/Contents/Info.plist Info.plist
mkdir /Users/spector/Work/CocoaTests/Plist-test/build/Debug/Plist-
test.app/Contents
cd /Users/spector/Work/CocoaTests/Plist-test
<com.apple.tools.info-plist-utility> /Users/spector/Work/
CocoaTests/Plist-test/Info.plist -genpkginfo /Users/spector/Work/
CocoaTests/Plist-test/build/Debug/Plist-test.app/Contents/PkgInfo -
expandbuildsettings -o /Users/spector/Work/CocoaTests/Plist-test/build/
Debug/Plist-test.app/Contents/Info.plist
CpResource build/Debug/Plist-test.app/Contents/Resources/English.lproj/
MainMenu.nib English.lproj/MainMenu.nib
mkdir /Users/spector/Work/CocoaTests/Plist-test/build/Debug/Plist-
test.app/Contents/Resources/English.lproj
cd /Users/spector/Work/CocoaTests/Plist-test
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/
Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-
src-symlinks /Users/spector/Work/CocoaTests/Plist-test/English.lproj/
MainMenu.nib /Users/spector/Work/CocoaTests/Plist-test/build/Debug/
Plist-test.app/Contents/Resources/English.lproj
CpResource build/Debug/Plist-test.app/Contents/Resources/English.lproj/
InfoPlist.strings English.lproj/InfoPlist.strings
cd /Users/spector/Work/CocoaTests/Plist-test
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/
Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-
src-symlinks /Users/spector/Work/CocoaTests/Plist-test/English.lproj/
InfoPlist.strings /Users/spector/Work/CocoaTests/Plist-test/build/
Debug/Plist-test.app/Contents/Resources/English.lproj
ProcessPCH /Library/Caches/com.apple.Xcode.501/
SharedPrecompiledHeaders/Plist-test_Prefix-
ckndtpfmbwsaqjfutueywmdiwygo/Plist-test_Prefix.pch.gch Plist-
test_Prefix.pch normal i386 objective-c com.apple.compilers.gcc.4_0
cd /Users/spector/Work/CocoaTests/Plist-test
/Developer/usr/bin/gcc-4.0 -x objective-c-header -arch i386 -pipe
-Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -
Wunused-variable -fmessage-length=0 -mfix-and-continue -mmacosx-
version-min=10.5 -gdwarf-2 -I/Users/spector/Work/CocoaTests/Plist-test/
build/Plist-test.build/Debug/Plist-test.build/Plist-test.hmap -fpch-
preprocess -F/Users/spector/Work/CocoaTests/Plist-test/build/Debug -I/
Users/spector/Work/CocoaTests/Plist-test/build/Debug/include -I/Users/
spector/Work/CocoaTests/Plist-test/build/Plist-test.build/Debug/Plist-
test.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.5.sdk -c /
Users/spector/Work/CocoaTests/Plist-test/Plist-test_Prefix.pch -o /
Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/Plist-
test_Prefix-ckndtpfmbwsaqjfutueywmdiwygo/Plist-test_Prefix.pch.gch
Distributed-CompileC build/Plist-test.build/Debug/Plist-test.build/
Objects-normal/i386/main.o /Users/spector/Work/CocoaTests/Plist-test/
main.m normal i386 objective-c com.apple.compilers.gcc.4_0
cd /Users/spector/Work/CocoaTests/Plist-test
/Developer/usr/bin/distcc /Developer/usr/bin/gcc-4.0 -x objective-
c -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -
Wreturn-type -Wunused-variable -fmessage-length=0 -mfix-and-continue -
mmacosx-version-min=10.5 -gdwarf-2 -I/Users/spector/Work/CocoaTests/
Plist-test/build/Plist-test.build/Debug/Plist-test.build/Plist-
test.hmap -fpch-preprocess -F/Users/spector/Work/CocoaTests/Plist-test/
build/Debug -I/Users/spector/Work/CocoaTests/Plist-test/build/Debug/
include -I/Users/spector/Work/CocoaTests/Plist-test/build/Plist-
test.build/Debug/Plist-test.build/DerivedSources -isysroot /Developer/
SDKs/MacOSX10.5.sdk -include /Library/Caches/com.apple.Xcode.501/
SharedPrecompiledHeaders/Plist-test_Prefix-
ckndtpfmbwsaqjfutueywmdiwygo/Plist-test_Prefix.pch -c /Users/spector/
Work/CocoaTests/Plist-test/main.m -o /Users/spector/Work/CocoaTests/
Plist-test/build/Plist-test.build/Debug/Plist-test.build/Objects-
normal/i386/main.o
Ld /Users/spector/Work/CocoaTests/Plist-test/build/Debug/Plist-
test.app/Contents/MacOS/Plist-test normal i386
mkdir /Users/spector/Work/CocoaTests/Plist-test/build/Debug/Plist-
test.app/Contents/MacOS
cd /Users/spector/Work/CocoaTests/Plist-test
/Developer/usr/bin/gcc-4.0 -o /Users/spector/Work/CocoaTests/
Plist-test/build/Debug/Plist-test.app/Contents/MacOS/Plist-test -L/
Users/spector/Work/CocoaTests/Plist-test/build/Debug -F/Users/spector/
Work/CocoaTests/Plist-test/build/Debug -filelist /Users/spector/Work/
CocoaTests/Plist-test/build/Plist-test.build/Debug/Plist-test.build/
Objects-normal/i386/Plist-test.LinkFileList -framework Cocoa -arch
i386 -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk
Touch /Users/spector/Work/CocoaTests/Plist-test/build/Debug/Plist-
test.app
cd /Users/spector/Work/CocoaTests/Plist-test
/usr/bin/touch -c /Users/spector/Work/CocoaTests/Plist-test/build/
Debug/Plist-test.app
Next, I closed the project. Then, in the Finder, I moved, Info.plist
from /Users/spector/Work/CocoaTests/Plist-test/Info.plist to
/Users/spector/Work/CocoaTests/Plist-test/Resources/Info.plist .
I re-opened the XCode project, right-clicked on the now red Info.plist
reference and selected Get Info, and then used the Choose...
button to locate the file in its new home in the Resources directory,
then did "Build" which yields:
Building target “Plist-test” of project “Plist-test” with
configuration “Debug”
Checking Dependencies
Processing /Users/spector/Work/CocoaTests/Plist-test/build/Debug/Plist-
test.app/Contents/Info.plist Info.plist
cd /Users/spector/Work/CocoaTests/Plist-test
<com.apple.tools.info-plist-utility> /Users/spector/Work/
CocoaTests/Plist-test/Info.plist -genpkginfo /Users/spector/Work/
CocoaTests/Plist-test/build/Debug/Plist-test.app/Contents/PkgInfo -
expandbuildsettings -o /Users/spector/Work/CocoaTests/Plist-test/build/
Debug/Plist-test.app/Contents/Info.plist
error: The file “Info.plist” does not exist.
Clearly some element of the build script has the wrong path setting,
as in the above invocation of info-plist-utility which is being passed
the old path
rather than the new one; but since I both moved the file and edited
it's path in the file reference in XCode I am stumped... I am clearly
missing something
stunningly obvious. FWIW, deleting the file's reference in XCode and
then dragging the file from the Finder into the XCode project's
Resources group to re-create
it yields the same result (the path according to "Get Info" is
correct, but the build gets the wrong path...)
If it's of any help, I posted pretty complete screen shots of the two
projects and their relevant settings at http://homepage.mac.com/dhmspector/
David
On Dec 26, 2007, at 10:40 AM, Jean-Daniel Dupas wrote:
Jean-Daniel,
Thanks for the suggestion, ...I tried editing the string directly
and then dragging the file from the filesystem to the text field of
the dialog box
(XCode puts the absolute path in for you) and still have the same
problem.
Here's the simplest test case I can make:
1) Create a new cocoa application ("Plist-test") with XCode
2) Quit XCode
3) Open the directory where the new skeletal app lives, create a
new folder called "Resources"
4) Drag info.plist into it
5) Re-open the project file; the info.plist entry in the logical
"Resources"(*) directory will be red
6) Right click on the info.plist file and select "Get Info", then
click "choose" to locate the file in its new location on the
disk (the file name will turn black again since XCode now can find
it)
7) click Build ; get 1 Error gcc can't find the file
Could you post the transcript. It may help us to find the problem.
PS: to find the transcript (from a previous post from this list,
thank you to the original author):
"In the build window between the top window and the editor window
(if turned on) there should be 4 buttons on the left side.
A check mark, a warning sign, one that looks like small text, and a
down error.
Turn on the "small text" button and it will show you the ENTIRE
build transcript, this should include the actual commands that are
executed."
----------------------------------------------------------------------------------------------
David HM Spector
spector at zeitgeist dot com http://www.zeitgeist.com
~ ~ ~
"New and stirring things are belittled because if they are not
belittled, the
humiliating question arises, 'Why then are you not taking part in
them?'"
--H
. G. Wells
_______________________________________________
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