Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help, no-go

4 views
Skip to first unread message

Paul

unread,
Jan 1, 2007, 6:32:40 PM1/1/07
to
Hi,

I'm using Xcode 2.4.1 and if I start a new Cocoa app, write no extra
code and so only use what was generated, build a release version (or
debug) and run it the app only runs on my machine and no other. (all are
PPC)

On other computers nothing happens, no launch just nothing.

I'm lost! Any help appreciated.

Thanks,

Paul

vze3...@verizon.net

unread,
Jan 1, 2007, 8:53:40 PM1/1/07
to
Check if zerolink is on (in the linking options). This is usually only
on for the debug version and not for the release version. It doesn't
link all the object files till run time so they have to be present.
The release version should link and make an executable but check if
this is on for the release version.
--jim

Paul

unread,
Jan 2, 2007, 12:17:23 AM1/2/07
to
Hi,

Zerolink is on for debug and off for release.

If I upload the app to our server it then doesn't run for me either.

Thanks,

Paul

Paul

unread,
Jan 2, 2007, 12:53:25 AM1/2/07
to
Hi,

I think it's a permissions problem (or something) with the disk setup on
the server. We had a boot disk crash a week ago and I replaced it. The
data disk (RAID 1) is/are OK but I think I have messed up permissions or
something as old apps residing on that disk work but new apps uploaded
don't. (The apps are small utilities written by me and it's just easier
to keep them on and launch them from the server so everybody can use
them)

Not sure what to do... Any help appreciated.

Thanks,

Paul

Chris Hanson

unread,
Jan 2, 2007, 3:35:45 AM1/2/07
to
On 2007-01-01 15:32:40 -0800, paulfr...@NOSPAMoptusnet.com.au (Paul) said:

> I'm using Xcode 2.4.1 and if I start a new Cocoa app, write no extra
> code and so only use what was generated, build a release version (or
> debug) and run it the app only runs on my machine and no other. (all are
> PPC)

How are you building your release configuration? This sounds like
exactly the behavior I'd expect for a debug configuration that's using
ZeroLink.

You change the active configuration via the "Active Configuration"
pop-up menu in Xcode's toolbar, or via the "Active Configuration"
submenu of the Project menu. You *don't* change it via the
Configuration pop-up menu in the Build tab of the Project Info window
or a Target Info window.

The latter has confused some people because Xcode 1.5 and earlier
actually *did* use the Buiild tab of an Info window to change the
active build style. But this was changed in Xcode 2.0 so you could
edit a build style without making it the active one, and this behavior
was kept with the move from build styles to configurations in Xcode 2.1
and later.

(I believe it was Xcode 1.5 that last used the Info window to change
the active build style; it may have actually been Xcode 1.2. In any
case, Xcode 2.0 shipped almost two years ago on April 29, 2005 and I
know it worked hte way I describe above...)

-- Chris

Gregory Weston

unread,
Jan 2, 2007, 7:58:49 AM1/2/07
to
In article <1hrbl2f.9e8zjd1twtwwqN%paulfr...@NOSPAMoptusnet.com.au>,
paulfr...@NOSPAMoptusnet.com.au (Paul) wrote:

> Hi,
>
> I think it's a permissions problem (or something) with the disk setup on
> the server. We had a boot disk crash a week ago and I replaced it. The
> data disk (RAID 1) is/are OK but I think I have messed up permissions or
> something as old apps residing on that disk work but new apps uploaded
> don't. (The apps are small utilities written by me and it's just easier
> to keep them on and launch them from the server so everybody can use
> them)

Permissions problems on apps, last I saw, don't tend to present as
silent failures.

> Not sure what to do... Any help appreciated.

Any messages show up in the console when the app fails to launch?


I'm with the other posters. Without more data, it sounds like you're
putting a zerolinked build out there.

--
The best intentions in the world don't make a flawed argument magically valid.

Paul

unread,
Jan 2, 2007, 6:14:33 PM1/2/07
to
More info...

I think it's not an xcode/programming problem but any help would be
appreciated.

The app runs on my computer and on other computers but when copied to
the server (data disks raid 1) it seems to launch but goes nowhere. If
the app is then copied from the server back to my computer it now won't
run.

It seems that any app copied to the server won't run and when copied
back from the server now won't run on the original computer.

But, if I copy the app to a Users folder on the boot disk everything
runs as it should. I assume then I've done something to the two raid
disks.

I'm lost...

Thanks,

Paul

Paul

unread,
Jan 2, 2007, 6:14:34 PM1/2/07
to
Thanks Chris, I fell into that trap some time ago.

Regards,

Paul

Tom Harrington

unread,
Jan 2, 2007, 7:10:57 PM1/2/07
to
In article
<1hrcx2l.10a2v4318o0bhyN%paulfr...@NOSPAMoptusnet.com.au>,
paulfr...@NOSPAMoptusnet.com.au (Paul) wrote:

> More info...
>
> I think it's not an xcode/programming problem but any help would be
> appreciated.
>
> The app runs on my computer and on other computers but when copied to
> the server (data disks raid 1) it seems to launch but goes nowhere. If
> the app is then copied from the server back to my computer it now won't
> run.
>
> It seems that any app copied to the server won't run and when copied
> back from the server now won't run on the original computer.
>
> But, if I copy the app to a Users folder on the boot disk everything
> runs as it should. I assume then I've done something to the two raid
> disks.
>
> I'm lost...

What about Console messages, like Gregory Weston asked about? With a
problem like this there's almost always a clue in the console.

Console is located in the Utilities folder. Run it and then attempt to
run one of the broken copies of the app.

--
Tom "Tom" Harrington
MondoMouse makes your mouse mightier
See http://www.atomicbird.com/mondomouse/

Gregory Weston

unread,
Jan 2, 2007, 9:38:53 PM1/2/07
to

> More info...
>
> I think it's not an xcode/programming problem but any help would be
> appreciated.
>
> The app runs on my computer and on other computers but when copied to
> the server (data disks raid 1) it seems to launch but goes nowhere. If
> the app is then copied from the server back to my computer it now won't
> run.
>
> It seems that any app copied to the server won't run and when copied
> back from the server now won't run on the original computer.
>
> But, if I copy the app to a Users folder on the boot disk everything
> runs as it should. I assume then I've done something to the two raid
> disks.
>
> I'm lost...

Ah, that changes things. It will run from an arbitrary workstation but
not from a network storage device on any machine? Will it run regardless
of where it is on a workstation? Will it, for example, run from ~ just
as well as it does from /Applications?

I'm thinking things like the following:
1. Does it make assumptions about where other data files are relative to
it?

2. Does it attempt to write to locations relative to its own home
directory? (Locations that a user might not have write rights to when
that home is on a server? Perhaps even its own package, which is a major
no-no?)

G

Paul

unread,
Jan 2, 2007, 10:33:46 PM1/2/07
to
Hi,

I tried the console but couldn't see any messages in both console log
and system log.

Thanks

Paul

Paul

unread,
Jan 2, 2007, 10:33:46 PM1/2/07
to
Hi Gregory

> 1. Does it make assumptions about where other data files are relative to
> it?

No, I select the data file after launch.

> 2. Does it attempt to write to locations relative to its own home
> directory? (Locations that a user might not have write rights to when
> that home is on a server? Perhaps even its own package, which is a major
> no-no?)

No, I select where files are to be written after launch.

Are these settings correct?

INSTALL_OWNER = $(USER)
INSTALL_GROUP = $(GROUP)
INSTALL_MODE_FLAG = a-w,a+rX
ALTERNATE_PERMISSIONS_FILES =
ALTERNATE_OWNER = $(INSTALL_OWNER)
ALTERNATE_GROUP = $(INSTALL_GROUP)
ALTERNATE_MODE = $(INSTALL_MODE_FLAG)

I tried again, making a small cocoa app without adding any code and it
works on my machine but not on the server and when it's copied back to
my machine it no longer works. Is there something I can check within the
package?

Thanks,

Paul

Ben Artin

unread,
Jan 2, 2007, 10:57:36 PM1/2/07
to
In article <1hrd8vf.mfsxq412humf4N%paulfr...@NOSPAMoptusnet.com.au>,
paulfr...@NOSPAMoptusnet.com.au (Paul) wrote:

> I tried again, making a small cocoa app without adding any code and it
> works on my machine but not on the server and when it's copied back to
> my machine it no longer works. Is there something I can check within the
> package?

What kind of a server is this? It sounds like the server is eating your app. I
would make a new copy of the app (call that copy A), verify that it works, copy
it to the server, then copy it back to your computer (call that copy B) and then

1) diff contents of copy A and copy B. You can do this using

diff -r -q A B

where A and B are paths to copy A and copy B

2) diff permissions and other file attributes of copy A and copy B. You can do
this using

find A -type d -exec ls -alef {} \; > /tmp/listA
find B -type d -exec ls -alef {} \; > /tmp/listB
diff -u /tmp/listA /tmp/listB

Where again A and B are paths to copy A and copy B.

If either of these two diffs produces any output, that will show you what is
different between the two copies, and if you post that output here we can
probably figure out what's causing it.

hth

Ben

--
If this message helped you, consider buying an item
from my wish list: <http://artins.org/ben/wishlist>

I changed my name: <http://periodic-kingdom.org/People/NameChange.php>

Paul

unread,
Jan 2, 2007, 10:58:18 PM1/2/07
to
Hi,

In desperation I made an app using RealBasic 5.5.

a) The Mach-0 version works on my computer but not on the server. When
copied from the server back to my machine it no longer works.

b) The Mac 8-9 and X (PEF) version works both on my computer and also on
the server.

I've looked at both package contents and can't find any differences
between the one that works and the one that doesn't.

So, what have I done to mess up the server's data disk?

Thanks again...

Paul


Paul <paulfr...@NOSPAMoptusnet.com.au> wrote:

> Hi,
>
> I tried the console but couldn't see any messages in both console log
> and system log.
>
> Thanks
>
> Paul
>
>

<SNIP>

Paul

unread,
Jan 2, 2007, 11:19:04 PM1/2/07
to
Hi Ben,

A is the one that works, B is copied to and back from the server and no
longer works.

> diff -r -q A B

no output

> find A -type d -exec ls -alef {} \; > /tmp/listA
> find B -type d -exec ls -alef {} \; > /tmp/listB
> diff -u /tmp/listA /tmp/listB

MacMini:/tmp paul$ diff -u /tmp/listA /tmp/listB
--- /tmp/listA 2007-01-03 14:05:48.000000000 +1000
+++ /tmp/listB 2007-01-03 14:06:16.000000000 +1000
@@ -1,30 +1,30 @@
total 0
-drwxr-xr-x 3 paul paul 102 Jan 3 13:25 .
+drwxrwxrwx 3 paul paul 102 Jan 3 13:25 .
drwx------ 25 paul paul 850 Jan 3 14:02 ..
-drwxr-xr-x 6 paul paul 204 Jan 3 13:25 Contents
+drwxrwxrwx 6 paul paul 204 Jan 3 13:25 Contents
total 16
-drwxr-xr-x 6 paul paul 204 Jan 3 13:25 .
-drwxr-xr-x 3 paul paul 102 Jan 3 13:25 ..
--rw-r--r-- 1 paul paul 769 Jan 3 13:25 Info.plist
-drwxr-xr-x 3 paul paul 102 Jan 3 13:25 MacOS
--rw-r--r-- 1 paul paul 8 Jan 3 13:25 PkgInfo
-drwxr-xr-x 3 paul paul 102 Jan 3 13:25 Resources
+drwxrwxrwx 6 paul paul 204 Jan 3 13:25 .
+drwxrwxrwx 3 paul paul 102 Jan 3 13:25 ..
+-rw-rw-rw- 1 paul paul 769 Jan 3 13:25 Info.plist
+drwxrwxrwx 3 paul paul 102 Jan 3 13:25 MacOS
+-rw-rw-rw- 1 paul paul 8 Jan 3 13:25 PkgInfo
+drwxrwxrwx 3 paul paul 102 Jan 3 13:25 Resources
total 64
-drwxr-xr-x 3 paul paul 102 Jan 3 13:25 .
-drwxr-xr-x 6 paul paul 204 Jan 3 13:25 ..
--rwxr-xr-x 1 paul paul 29700 Jan 3 13:25 shit
+drwxrwxrwx 3 paul paul 102 Jan 3 13:25 .
+drwxrwxrwx 6 paul paul 204 Jan 3 13:25 ..
+-rw-rw-rw- 1 paul paul 29700 Jan 3 13:25 shit
total 0
-drwxr-xr-x 3 paul paul 102 Jan 3 13:25 .
-drwxr-xr-x 6 paul paul 204 Jan 3 13:25 ..
-drwxr-xr-x 4 paul paul 136 Jan 3 13:25 English.lproj
+drwxrwxrwx 3 paul paul 102 Jan 3 13:25 .
+drwxrwxrwx 6 paul paul 204 Jan 3 13:25 ..
+drwxrwxrwx 4 paul paul 136 Jan 3 13:25 English.lproj
total 8
-drwxr-xr-x 4 paul paul 136 Jan 3 13:25 .
-drwxr-xr-x 3 paul paul 102 Jan 3 13:25 ..
--rw-r--r-- 1 paul paul 202 Jan 3 13:25 InfoPlist.strings
-drwxr-xr-x 5 paul paul 170 Jan 3 13:25 MainMenu.nib
+drwxrwxrwx 4 paul paul 136 Jan 3 13:25 .
+drwxrwxrwx 3 paul paul 102 Jan 3 13:25 ..
+-rw-rw-rw- 1 paul paul 202 Jan 3 13:25 InfoPlist.strings
+drwxrwxrwx 5 paul paul 170 Jan 3 13:25 MainMenu.nib
total 40
-drwxr-xr-x 5 paul paul 170 Jan 3 13:25 .
-drwxr-xr-x 4 paul paul 136 Jan 3 13:25 ..
--rw-r--r-- 1 paul paul 110 Jan 3 13:25 classes.nib
--rw-r--r-- 1 paul paul 589 Jan 3 13:25 info.nib
--rw-r--r-- 1 paul paul 10914 Jan 3 13:25 keyedobjects.nib
+drwxrwxrwx 5 paul paul 170 Jan 3 13:25 .
+drwxrwxrwx 4 paul paul 136 Jan 3 13:25 ..
+-rw-rw-rw- 1 paul paul 110 Jan 3 13:25 classes.nib
+-rw-rw-rw- 1 paul paul 589 Jan 3 13:25 info.nib
+-rw-rw-rw- 1 paul paul 10914 Jan 3 13:25 keyedobjects.nib
MacMini:/tmp paul$


So how have I stuffed up the server data disk? I running 10.2 server
with one boot disk and two data disks as RAID 1.

Thanks again for your help.

Paul

Michael Ash

unread,
Jan 2, 2007, 11:46:22 PM1/2/07
to
Paul <paulfr...@nospamoptusnet.com.au> wrote:
> --rwxr-xr-x 1 paul paul 29700 Jan 3 13:25 shit
> +-rw-rw-rw- 1 paul paul 29700 Jan 3 13:25 shit

Your permissions are getting completely destroyed. All of the files in the
app seem to be affected but this is the killer: the app's executable is
losing the executable bit (the x's in the listing above). If your
executable isn't executable, the app won't go.

I have no idea why your server would be destroying your permissions, but
find out why and fix it and you'll be good to go.

--
Michael Ash
Rogue Amoeba Software

Paul

unread,
Jan 3, 2007, 12:15:19 AM1/3/07
to
Thanks guys for all your help, I'll tackle the server over the weekend.

Sorry for the name of the executable - I tend to lack the ability to use
imaginative file names (and variable names) when I'm annoyed.

Thanks again,

Paul

David C.

unread,
Jan 3, 2007, 11:47:11 AM1/3/07
to
paulfr...@NOSPAMoptusnet.com.au (Paul) writes:
>
> Sorry for the name of the executable - I tend to lack the ability to use
> imaginative file names (and variable names) when I'm annoyed.

FWIW, I generally call my dummy apps "foo".

I used to use "spam" before that became commonplace terminology for
unwanted e-mail. And "fred", back when I was in school.

-- David

0 new messages