[SOLVED] Running .app on Mac OSX - .app structure



  • Hi guys,

    I successfully created a package myapp.app thanks to the community here that helped me.

    I'm now in the "testing" phase and used a clean MacOSX on Mavericks to test if myapp.app can run without anything installed.
    Turn out it works 100% when I start the app from command line ./PowerVelo.app/Content/MacOs/PowerVelo
    However when I double click or try to open the .app package, it says "You can't open the application [] because it may be damaged or incomplete"
    I figured this is probably because the package is not the way Apple wants it to be?

    Anyway I uploaded the package here (30Mo download):
    http://maximumtrainer.com/PowerVelo2.app.zip
    If anyone wants to take a look to help me find what's wrong (Reward: 5000 dogecoins! :)
    Merci

    Here is my /Content/Info.plist
    @<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>NSPrincipalClass</key>
    <string>NSApplication</string>
    <key>CFBundleIconFile</key>
    <string>myappico.icns</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleGetInfoString</key>
    <string>Created by Qt/QMake</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleExecutable</key>
    <string>PowerVelo2</string>
    <key>CFBundleIdentifier</key>
    <string>com.yourcompany.PowerVelo2</string>
    <key>NOTE</key>
    <string>This file was generated by Qt/QMake.</string>
    </dict>
    </plist>@



  • I've been reading "this":https://developer.apple.com/library/mac/documentation/corefoundation/conceptual/cfbundles/BundleTypes/BundleTypes.html
    Under "The Structure of an OS X Application Bundle"

    Still can't find why my package is not valid.. still investigating



  • Now i'm getting
    "App can’t be opened because it is from an unidentified developer”
    Guess i'll have to identify myself? now to find how to do that :)

    Edit
    my app works if I control click and choose "open" after the warning.
    I'll have to check how to disable that warning, don't want my client to be afraid of my app..


  • Lifetime Qt Champion

    Hi,

    IIRC you would need to sign your application for that, thus subscribe to Apple's OS X developer program



  • Enroll now - $99/years
    Now I recognize Apple :)

    May be worth it if I get on apple store though...will see later


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.