Cannot create a application package for my app

Mac OSX specific forum
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Cannot create a application package for my app

Post 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>
-Beach
Doobrey
Enthusiast
Enthusiast
Posts: 218
Joined: Sat Apr 26, 2003 4:47 am
Location: Dullsville..population: me
Contact:

Re: Cannot create a application package for my app

Post 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.
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post 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...
-Beach
Fred
Administrator
Administrator
Posts: 16687
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

May be a flag to gerenerate the .app structure could be useful ?
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post by Beach »

:) That would be really nice... Thanks in advance Fred!
-Beach
Post Reply