Page 1 of 1

Cannot create a application package for my app

Posted: Sun May 29, 2005 4:30 am
by Beach
My application compiles fine and it executes. The problem is when I create a executeable with 'pbcompiler -e MyApp' I am unable to make a stand alone package for it. Here are the steps I have tried:

- Create a folder called MyApp.app
- Created sub folders inside called 'Contents' and 'MacOS'
- Copied 'MyApp' to 'MyApp.app/Contents/MacOS'
- Copied a 'Info.plist' file from another application directory into 'MyApp.app/Contents'
- Edited 'Info.plist' to match MyApp

Do I need to do anything else? When I click on the icon for the package I receive a message window that states: "You cannot open the application "MyApp" because it my be damaged or incomplete."

Here is my Info.plist file contents:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>English</string>
	<key>CFBundleExecutable</key>
	<string>MyApp</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>0.1</string>
</dict>
</plist>

Re: Cannot create a application package for my app

Posted: Mon May 30, 2005 3:27 am
by Doobrey
I've just spent the evening converting some stuff from Windows to the Mac version (nothing major, just reworking the GUI)
I did exactly the same as you, except I compiled with -e MyApp -s carbon
and it opens fine.

Posted: Mon May 30, 2005 4:34 am
by Beach
I deleted the directory.app and tried it again from scratch - this time it worked... Thank you! I would not have tried it again otherwise...

Posted: Mon May 30, 2005 7:38 pm
by Fred
May be a flag to gerenerate the .app structure could be useful ?

Posted: Mon May 30, 2005 7:48 pm
by Beach
:) That would be really nice... Thanks in advance Fred!