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. MacOS getOpenFileName Dialog not showing on AppStore app
Forum Updated to NodeBB v4.3 + New Features

MacOS getOpenFileName Dialog not showing on AppStore app

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 1.0k Views 2 Watching
  • 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.
  • N Offline
    N Offline
    Nando
    wrote on last edited by Nando
    #1

    Hi,
    on my Mac OS app on the Mac AppStore the
    getOpenFilename dialog does not pop up a dialog to select a file.
    Running the same binary on my devel mac it works fine.
    In the Mac OS console i see:

    *** Assertion failure in -[NSVBOpenPanel viewWillInvalidate:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.60.100/Nav.subproj/OpenAndSavePanelRemote/NSVBOpenAndSavePanels.m:387
    
    
    default	20:00:34.712280 +0200	logbook	-[NSVBSavePanel init] caught non-fatal NSInternalInconsistencyException 'bridge absent' with backtrace (
    	0   CoreFoundation                      0x00007fff47fef2db __exceptionPreprocess + 171
    	1   libobjc.A.dylib                     0x00007fff6f190c76 objc_exception_throw + 48
    	2   CoreFoundation                      0x00007fff47ff5072 +[NSException raise:format:arguments:] + 98
    	3   Foundation                          0x00007fff4a11e340 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
    	4   AppKit                              0x00007fff45776102 -[NSVBSavePanel viewWillInvalidate:] + 188
    	5   ViewBridge                          0x00007fff6ca336f2 -[NSRemoteView invalidate:] + 292
    	6   ViewBridge                          0x00007fff6ca40e88 -[NSRemoteView _advanceToConfigPhaseLegacy] + 1111
    	7   ViewBridge                          0x00007fff6ca41d1b -[NSRemoteView _viewServiceMarshalProxy:withDetailedErrorHandler:] + 230
    	8   ViewBridge                          0x00
    
    

    Any ideas whats going on here?
    I use macdeployt to create my package for app store.

    Greetings
    Nando

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you activate the entitlements to allow your application to access the filesystem from the sandbox ?

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

      N 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Did you activate the entitlements to allow your application to access the filesystem from the sandbox ?

        N Offline
        N Offline
        Nando
        wrote on last edited by
        #3

        @SGaist Hi,
        which entitlements do i need to allow filesystem access from the sandbox?

        in my info.plist i have

                <key>com.apple.security.app-sandbox</key>
                <true/>
                <key>com.apple.security.network.client</key>
                <true/>
                <key>com.apple.security.print</key>
                <true/>
                <key>com.apple.security.files.user-selected.read-write</key>
                <true/>
                <key>com.apple.security.files.bookmarks.app-scope</key>
                <true/>
                <key>ITSAppUsesNonExemptEncryption</key><false/>
        

        I added:
        com.apple.security.files.user-selected.read-write
        com.apple.security.files.bookmarks.app-scope

        but this didn't solve the problem. The new version is in the app store but the same problem...

        N 1 Reply Last reply
        0
        • N Nando

          @SGaist Hi,
          which entitlements do i need to allow filesystem access from the sandbox?

          in my info.plist i have

                  <key>com.apple.security.app-sandbox</key>
                  <true/>
                  <key>com.apple.security.network.client</key>
                  <true/>
                  <key>com.apple.security.print</key>
                  <true/>
                  <key>com.apple.security.files.user-selected.read-write</key>
                  <true/>
                  <key>com.apple.security.files.bookmarks.app-scope</key>
                  <true/>
                  <key>ITSAppUsesNonExemptEncryption</key><false/>
          

          I added:
          com.apple.security.files.user-selected.read-write
          com.apple.security.files.bookmarks.app-scope

          but this didn't solve the problem. The new version is in the app store but the same problem...

          N Offline
          N Offline
          Nando
          wrote on last edited by
          #4

          @Nando Hi,

                  <key>com.apple.security.print</key>
                  <true/>
                  <key>com.apple.security.files.user-selected.read-write</key>
                  <true/>
          

          was fine. It must be also in entitlements file which is used to sign the pkg file.
          Thank you

          1 Reply Last reply
          1

          • Login

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