• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem compiling first Cocoa app in Xcode 3.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem compiling first Cocoa app in Xcode 3.1


  • Subject: Re: Problem compiling first Cocoa app in Xcode 3.1
  • From: "Paul Denlinger" <email@hidden>
  • Date: Sun, 20 Jul 2008 09:16:59 -0700

I have done two uninstalls of Xcode using the terminal, and then reinstalled using the disk image I downloaded from ADC. Before installing from the disk image, I checked it with Disk Utility; it verified it as being OK. 

I created a new project to run and have the same problem. Following is the code from the failed build: 

Building target "cocoaNotepad2" of project "cocoaNotepad2" with configuration "Debug" — (1 error)

    cd /cocoaNotepad2

    /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings --validate --inputencoding UTF-16 --outputencoding UTF-16 English.lproj/InfoPlist.strings --outdir /cocoaNotepad2/build/Debug/cocoaNotepad2.app/Contents/Resources/English.lproj

error: can't exec '/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings' (No such file or directory)

error: can't exec '/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings' (No such file or directory)

error: can't exec '/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings' (No such file or directory)

Build failed (1 error)


Thank you for the test project which  you sent me to run. It also has the same problem. Here is the code from the failed build for that:


Building target "Test" of project "Test" with configuration "Debug" — (1 error)

    cd /Users/pdenlinger/Desktop/Test

    /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings --validate --inputencoding UTF-16 --outputencoding UTF-16 English.lproj/InfoPlist.strings --outdir /Users/pdenlinger/Desktop/Test/build/Debug/Test.app/Contents/Resources/English.lproj

error: can't exec '/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings' (No such file or directory)

error: can't exec '/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings' (No such file or directory)

error: can't exec '/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings' (No such file or directory)

Build failed (1 error)


Must say that this is a very consistent error.


Paul Denlinger




On Sat, Jul 19, 2008 at 9:50 PM, Jim Fridlund <email@hidden> wrote:
Paul,

Sorry to see you have so much problems with Xcode. One thing I noticed from the output below is that you have your project directory under /Developer. I don't know if that would cause problems or not. I would try moving that to your home directory, for example.

The other thing also is to just uninstall Xcode and reinstall it as someone suggest.   If you read the /Developers/About Xcode Tools.pdf, it'll have instructions to do a complete uninstall.

$ sudo /Developer/Library/uninstall-devtools --mode=all

Re-install Xcode and hope that fixes your problem. We definitely have different problems.

When you bring up Xcode, you should be able to create a new Cocoa project. If you build it, it should bring up a blank window. I'm attaching a test project that you can try.
--
Jim



On Jul 19, 2008, at 7:24 PM, Paul Denlinger wrote:

I followed your instructions to build using terminal; I still got the same error. Following is what the shell gave back to me:

paul-denlingers-macbook-pro:cocoaNotepad pdenlinger$ xcodebuild -configuration Debug
=== BUILDING NATIVE TARGET cocoaNotepad OF PROJECT cocoaNotepad WITH CONFIGURATION Debug ===

Checking Dependencies...

Processing /Developer/Projects/cocoaNotepad/build/Debug/cocoaNotepad.app/Contents/Info.plist Info.plist
    mkdir /Developer/Projects/cocoaNotepad/build/Debug/cocoaNotepad.app/Contents
    cd /Developer/Projects/cocoaNotepad
    <com.apple.tools.info-plist-utility> Info.plist -genpkginfo /Developer/Projects/cocoaNotepad/build/Debug/cocoaNotepad.app/Contents/PkgInfo -expandbuildsettings -o /Developer/Projects/cocoaNotepad/build/Debug/cocoaNotepad.app/Contents/Info.plist

CopyStringsFile /Developer/Projects/cocoaNotepad/build/Debug/cocoaNotepad.app/Contents/Resources/English.lproj/InfoPlist.strings English.lproj/InfoPlist.strings
    mkdir /Developer/Projects/cocoaNotepad/build/Debug/cocoaNotepad.app/Contents/Resources/English.lproj
    cd /Developer/Projects/cocoaNotepad
    /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings --validate --inputencoding UTF-16 --outputencoding UTF-16 English.lproj/InfoPlist.strings --outdir /Developer/Projects/cocoaNotepad/build/Debug/cocoaNotepad.app/Contents/Resources/English.lproj
error: can't exec '/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings' (No such file or directory)

CompileXIB /Developer/Projects/cocoaNotepad/English.lproj/MainMenu.xib
    cd /Developer/Projects/cocoaNotepad
    /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Developer/Projects/cocoaNotepad/build/Debug/cocoaNotepad.app/Contents/Resources/English.lproj/MainMenu.nib /Developer/Projects/cocoaNotepad/English.lproj/MainMenu.xib

ProcessPCH /var/folders/Ln/LnNgHph7ENyYRuETTF1uLE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/cocoaNotepad_Prefix-gfezrjtwinqbwmapylppsyfkcebk/cocoaNotepad_Prefix.pch.gch cocoaNotepad_Prefix.pch normal i386 objective-c com.apple.compilers.gcc.4_0
    cd /Developer/Projects/cocoaNotepad
    /Developer/usr/bin/gcc-4.0 -x objective-c-header -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 -iquote /Developer/Projects/cocoaNotepad/build/cocoaNotepad.build/Debug/cocoaNotepad.build/cocoaNotepad-generated-files.hmap -I/Developer/Projects/cocoaNotepad/build/cocoaNotepad.build/Debug/cocoaNotepad.build/cocoaNotepad-own-target-headers.hmap -I/Developer/Projects/cocoaNotepad/build/cocoaNotepad.build/Debug/cocoaNotepad.build/cocoaNotepad-all-target-headers.hmap -iquote /Developer/Projects/cocoaNotepad/build/cocoaNotepad.build/Debug/cocoaNotepad.build/cocoaNotepad-project-headers.hmap -F/Developer/Projects/cocoaNotepad/build/Debug -I/Developer/Projects/cocoaNotepad/build/Debug/include -I/Developer/Projects/cocoaNotepad/build/cocoaNotepad.build/Debug/cocoaNotepad.build/DerivedSources -c /Developer/Projects/cocoaNotepad/cocoaNotepad_Prefix.pch -o /var/folders/Ln/LnNgHph7ENyYRuETTF1uLE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/cocoaNotepad_Prefix-gfezrjtwinqbwmapylppsyfkcebk/cocoaNotepad_Prefix.pch.gch

CompileC build/cocoaNotepad.build/Debug/cocoaNotepad.build/Objects-normal/i386/main.o /Developer/Projects/cocoaNotepad/main.m normal i386 objective-c com.apple.compilers.gcc.4_0
    cd /Developer/Projects/cocoaNotepad
    /Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 -iquote /Developer/Projects/cocoaNotepad/build/cocoaNotepad.build/Debug/cocoaNotepad.build/cocoaNotepad-generated-files.hmap -I/Developer/Projects/cocoaNotepad/build/cocoaNotepad.build/Debug/cocoaNotepad.build/cocoaNotepad-own-target-headers.hmap -I/Developer/Projects/cocoaNotepad/build/cocoaNotepad.build/Debug/cocoaNotepad.build/cocoaNotepad-all-target-headers.hmap -iquote /Developer/Projects/cocoaNotepad/build/cocoaNotepad.build/Debug/cocoaNotepad.build/cocoaNotepad-project-headers.hmap -F/Developer/Projects/cocoaNotepad/build/Debug -I/Developer/Projects/cocoaNotepad/build/Debug/include -I/Developer/Projects/cocoaNotepad/build/cocoaNotepad.build/Debug/cocoaNotepad.build/DerivedSources -include /var/folders/Ln/LnNgHph7ENyYRuETTF1uLE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/cocoaNotepad_Prefix-gfezrjtwinqbwmapylppsyfkcebk/cocoaNotepad_Prefix.pch -c /Developer/Projects/cocoaNotepad/main.m -o /Developer/Projects/cocoaNotepad/build/cocoaNotepad.build/Debug/cocoaNotepad.build/Objects-normal/i386/main.o

Ld /Developer/Projects/cocoaNotepad/build/Debug/cocoaNotepad.app/Contents/MacOS/cocoaNotepad normal i386
    mkdir /Developer/Projects/cocoaNotepad/build/Debug/cocoaNotepad.app/Contents/MacOS
    cd /Developer/Projects/cocoaNotepad
    /Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Developer/Projects/cocoaNotepad/build/Debug -F/Developer/Projects/cocoaNotepad/build/Debug -filelist /Developer/Projects/cocoaNotepad/build/cocoaNotepad.build/Debug/cocoaNotepad.build/Objects-normal/i386/cocoaNotepad.LinkFileList -mmacosx-version-min=10.5 -framework Cocoa -o /Developer/Projects/cocoaNotepad/build/Debug/cocoaNotepad.app/Contents/MacOS/cocoaNotepad
** BUILD FAILED **

The following build commands failed:
cocoaNotepad:
CopyStringsFile /Developer/Projects/cocoaNotepad/build/Debug/cocoaNotepad.app/Contents/Resources/English.lproj/InfoPlist.strings English.lproj/InfoPlist.strings
(1 failure)


On Sat, Jul 19, 2008 at 1:24 PM, Jim Fridlund <email@hidden> wrote:
On Jul 19, 2008, at 1:09 PM, Paul Denlinger wrote:
I have installed Xcode on the system drive; sorry I was unclear. At first I tried building the project on a separate partition (HD2) but when I got problems, I tried to do build the same project build on the same partition Xcode sits on. I got the same error.

I have tried to get to copystrings in the terminal; here is the error message I get:

paul-denlingers-macbook-pro:Projects pdenlinger$ cd /cocoaNotepad.app/Contents/Resources.lproj/InfoPlist.strings
-bash: cd: /cocoaNotepad.app/Contents/Resources.lproj/InfoPlist.strings: No such file or directory

This is the same message as I'm getting in Xcode. For some reason, InfoPlist.strings is not getting built.

Paul Denlinger


Try building the project using the command line version of Xcode. If this works, then your Xcode install should be ok. For example, I have a Cocoa example project in the Test directory.

jim@nomad[~]$ cd Test

where Test is the project's top directory.

jim@nomad[~/Test]$ xcodebuild -configuration Debug
=== BUILDING NATIVE TARGET Test OF PROJECT Test WITH CONFIGURATION Debug ===

Checking Dependencies...

Processing /Users/jim/Test/build/Debug/Test.app/Contents/Info.plist Info.plist
    mkdir /Users/jim/Test/build/Debug/Test.app/Contents
    cd /Users/jim/Test
    <com.apple.tools.info-plist-utility> Info.plist -genpkginfo /Users/jim/Test/build/Debug/Test.app/Contents/PkgInfo -expandbuildsettings -o /Users/jim/Test/build/Debug/Test.app/Contents/Info.plist

CopyStringsFile /Users/jim/Test/build/Debug/Test.app/Contents/Resources/English.lproj/InfoPlist.strings English.lproj/InfoPlist.strings
    mkdir /Users/jim/Test/build/Debug/Test.app/Contents/Resources/English.lproj
    cd /Users/jim/Test
    /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings --validate --inputencoding UTF-16 --outputencoding UTF-16 English.lproj/InfoPlist.strings --outdir /Users/jim/Test/build/Debug/Test.app/Contents/Resources/English.lproj

CompileXIB /Users/jim/Test/English.lproj/MainMenu.xib
    cd /Users/jim/Test
    /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/jim/Test/build/Debug/Test.app/Contents/Resources/English.lproj/MainMenu.nib /Users/jim/Test/English.lproj/MainMenu.xib

CompileC build/Test.build/Debug/Test.build/Objects-normal/i386/main.o /Users/jim/Test/main.m normal i386 objective-c com.apple.compilers.gcc.4_0
    cd /Users/jim/Test
    /Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 -iquote /Users/jim/Test/build/Test.build/Debug/Test.build/Test-generated-files.hmap -I/Users/jim/Test/build/Test.build/Debug/Test.build/Test-own-target-headers.hmap -I/Users/jim/Test/build/Test.build/Debug/Test.build/Test-all-target-headers.hmap -iquote /Users/jim/Test/build/Test.build/Debug/Test.build/Test-project-headers.hmap -F/Users/jim/Test/build/Debug -I/Users/jim/Test/build/Debug/include -I/Users/jim/Test/build/Test.build/Debug/Test.build/DerivedSources -include /var/folders/Qr/QruusdGk20iPx8gic4UYaE+++yU/-Caches-/com.apple.Xcode.1000/SharedPrecompiledHeaders/Test_Prefix-fkhtuusihrrqbsgmnzduhvoimhdo/Test_Prefix.pch -c /Users/jim/Test/main.m -o /Users/jim/Test/build/Test.build/Debug/Test.build/Objects-normal/i386/main.o

Ld /Users/jim/Test/build/Debug/Test.app/Contents/MacOS/Test normal i386
    mkdir /Users/jim/Test/build/Debug/Test.app/Contents/MacOS
    cd /Users/jim/Test
    /Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/jim/Test/build/Debug -F/Users/jim/Test/build/Debug -filelist /Users/jim/Test/build/Test.build/Debug/Test.build/Objects-normal/i386/Test.LinkFileList -mmacosx-version-min=10.5 -framework Cocoa -o /Users/jim/Test/build/Debug/Test.app/Contents/MacOS/Test

Touch /Users/jim/Test/build/Debug/Test.app
    cd /Users/jim/Test
    /usr/bin/touch -c /Users/jim/Test/build/Debug/Test.app
** BUILD SUCCEEDED **

The Cocoa executable should be in build/Debug/<App.app>/Contents/MacOS/<App>.





--
Paul Denlinger
"Risk is about seeing opportunities when others see challenges."
Skype: pdenlingercbs
Profile:http://www.linkedin.com/in/pauldenlinger
Visit my blog at www.chinavortex.com
China | Business | Economy | Internet|Technology


DISCLAIMER:
The content of this email and any attachment may contain proprietary and confidential information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then deleting it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful.





--
Paul Denlinger
"Risk is about seeing opportunities when others see challenges."
Skype: pdenlingercbs
Profile:http://www.linkedin.com/in/pauldenlinger
Visit my blog at www.chinavortex.com
China | Business | Economy | Internet|Technology


DISCLAIMER:
The content of this email and any attachment may contain proprietary and confidential information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then deleting it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful.
 _______________________________________________
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

  • Follow-Ups:
    • Re: Problem compiling first Cocoa app in Xcode 3.1
      • From: Thomas Wetmore <email@hidden>
References: 
 >Problem compiling first Cocoa app in Xcode 3.1 (From: "Paul Denlinger" <email@hidden>)
 >Re: Problem compiling first Cocoa app in Xcode 3.1 (From: Jim Fridlund <email@hidden>)

  • Prev by Date: IB/Xcode drag files from finder to app, tutorial?
  • Next by Date: Re: Problem compiling first Cocoa app in Xcode 3.1
  • Previous by thread: Re: Problem compiling first Cocoa app in Xcode 3.1
  • Next by thread: Re: Problem compiling first Cocoa app in Xcode 3.1
  • Index(es):
    • Date
    • Thread