Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Running .app on Mac OSX - .app structure
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 4.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maximus
    wrote on 11 Mar 2014, 18:12 last edited by
    #1

    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>@


    Free Indoor Cycling Software - https://maximumtrainer.com

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maximus
      wrote on 12 Mar 2014, 14:48 last edited by
      #2

      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


      Free Indoor Cycling Software - https://maximumtrainer.com

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maximus
        wrote on 12 Mar 2014, 18:18 last edited by
        #3

        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..


        Free Indoor Cycling Software - https://maximumtrainer.com

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 12 Mar 2014, 20:08 last edited by
          #4

          Hi,

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maximus
            wrote on 12 Mar 2014, 20:22 last edited by
            #5

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

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


            Free Indoor Cycling Software - https://maximumtrainer.com

            1 Reply Last reply
            0

            5/5

            12 Mar 2014, 20:22

            • Login

            • Login or register to search.
            5 out of 5
            • First post
              5/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved