• 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: Sam Net <email@hidden>
  • Date: Mon, 21 Jul 2008 00:06:23 +0100

Hi Paul,

I had a similar problem when I was building WebKit from the cmd-line and I suspect that solution to my problem could also be the solution to your problem.

You will have to do one of the following:

1) Remove /sw/bin from your PATH environment variable (if it's there) - (i.e. You will need to edit .profile),
2) Move /sw/bin to the end of PATH after /usr/bin so that system binaries take preference,
3) Upgrade the version of iconv that you have installed via MacPort,
4) Or edit the copystrings script to hard-code /usr/bin/iconv.


Essentially, you just need to ensure that /usr/bin is the first entry for PATH in your .profile file that is located in your home directory. This will ensure that the System binaries take precedence over any other binaries that may have been inadvertently installed by MacPorts, Fink, etc.

You can use TextWangler (http://www.versiontracker.com/dyn/moreinfo/macosx/18529 ) or TextEdit (Apple application) to edit the .profile file in your home directory. If the .profile file isn't in your home directory then you will need to create it. If you are not to familiar with the shell and how to edit the .profile file then I would suggest having a look at: http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable . Here you will find a good tutorial that will help you to understand what you need to do.

Good luck!

- Sam




On 20 Jul 2008, at 23:29, Dmitri Goutnik wrote:

On Jul 21, 2008, at 2:00 AM, Paul Denlinger wrote:

Question: I know that there are quite a few people running Macports for their installs. Shouldn't they be running into the same error if Macports changes the default directories?


Paul,

I have ruby and RoR installed from Macports and it doesn't affect Xcode in any way - there's definitely something wrong with your installation.

The copystrings is a Ruby script that requires Ruby interpreter to be in a specific place - /usr/bin (as its first line says: #!/usr/ bin/ruby - this is shell way of saying that the file is in fact a script and it should be executed with specified interpreter). "No such file or directory" errors that you are getting indicate that / usr/bin/ruby does not exist or does not have correct permissions.

As Greg noted, please post the output of :

(1) head -n 2 /Developer/Library/Xcode/Plug-ins/ CoreBuildTasks.xcplugin/Contents/Resources/copystrings

(2) ls -l /usr/bin/ru*

- Dmitri

_______________________________________________
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

_______________________________________________ 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: "Conrad Taylor" <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: "Paul Denlinger" <email@hidden>)
 >Re: Problem compiling first Cocoa app in Xcode 3.1 (From: Thomas Wetmore <email@hidden>)
 >Re: 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: "Paul Denlinger" <email@hidden>)
 >Re: Problem compiling first Cocoa app in Xcode 3.1 (From: Thomas Wetmore <email@hidden>)
 >Re: 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: Thomas Wetmore <email@hidden>)
 >Re: 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: Thomas Wetmore <email@hidden>)
 >Re: 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: Dmitri Goutnik <email@hidden>)

  • Prev by Date: Re: Problem compiling first Cocoa app in Xcode 3.1
  • 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