Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / August 2005



Tip: Looking for answers? Try searching our database.

Freestanding app with Xcode?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Keith Wiley - 17 Aug 2005 17:33 GMT
I have made good progress in learning how to structure and organize Obj-C
Cocoa apps in Xcode.  However, my build seems to depend on "project"
stuff.  For example, if I take the built bundle (what would normally
represent a self-contained app) and move it somewhere else (say on the
internet for downloading, or to a new directory on my drive), that file
will no longer run because it depends on a dylib file (dynamic library I
assume) in the .build directory of my Xcode project.  Here's the
CrashReporter error:

Link (dyld) error:

dyld:
/Users/keithwiley/Programming/YetAnotherTetris.app/Contents/MacOS/YetAnotherTetris
can't open library:
/Users/keithwiley/Programming/YetAnotherTetris/build/YetAnotherTetris.build/YetAnotherTetris.build/Objects-normal/ppc/libstdc++_ZeroLink.dylib
(No such file or directory, errno = 2)

How do I make a final freestanding app that can be moved around and
distributed freely?

Thanks.

________________________________________________________________________
Keith Wiley         kwiley@cs.unm.edu         http://www.unm.edu/~keithw

"Yet mark his perfect self-contentment, and hence learn his lesson,
that to be self-contented is to be vile and ignorant, and that to
aspire is better than to be blindly and impotently happy."
                                           --  Edwin A. Abbott, Flatland
________________________________________________________________________
Ben Artin - 17 Aug 2005 18:19 GMT
> can't open library:
> /Users/keithwiley/Programming/YetAnotherTetris/build/YetAnotherTetris.build/Ye
> tAnotherTetris.build/Objects-normal/ppc/libstdc++_ZeroLink.dylib
> (No such file or directory, errno = 2)

You are building the Development build style, which is intended for, well,
development. If you want a binary you can distribute, change the build style to
Deployment.

hth

Ben

Signature

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>

Simon Slavin - 19 Aug 2005 22:33 GMT
On 17/08/2005, Ben Artin wrote in message <macdev-
44B240.13195117082005@pbdl.news.astraweb.com>:


> > can't open library:
> > /Users/keithwiley/Programming/YetAnotherTetris/build/YetAnotherTetris.b
[quoted text clipped - 5 lines]
> well,  development. If you want a binary you can distribute, change the
> build style to  Deployment.

Note that in projects created under Xcode 2 and 10.4, these two styles are
renamed 'Debug' and 'Release'.

The basic idea is that while you're developing/debugging your project the
compiler uses 'zero link'.  This saves the time-consuming linking process
by linking while the application is running.  But it can only work if
you compile and run on the same computer with the same setup, so when you
change almost anything you have to switch to the other style, which makes
an application which is properly linked to any libraries.

Simon.
Signature

Using pre-release version of newsreader.
Please tell me if it does weird things.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.