Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Sandboxing for Mac App store

Discussion in 'Editor & General Support' started by eiffeloberon, Mar 20, 2015.

  1. eiffeloberon

    eiffeloberon

    Joined:
    Oct 14, 2014
    Posts:
    12
    Hi,

    I have been having trouble submitting my app to the Mac AppStore with application loader. I have followed various tutorials, replacing the .icns, the info.plist content, etc...

    After that, I created the .entitlement files which looks like:

    Code (csharp):
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    3. <plist version="1.0">
    4. <dict>
    5.     <key>com.apple.security.app-sandbox</key> <true/>
    6.     <key>com.apple.security.device.usb</key> <true/>
    7. </dict>
    8. </plist>
    This sits in the same directory as the .app file. I went to codesign my app, and the mono libraries (libmono.0.dylib and libMonoPosixHelper.dylib) using this .entitlement.

    I have done a codesign verify with the app afterwards, and it says valid on disk and it satisfied the Designated Requirement, so I thought I was good to go, and then I created a .pkg out of this .app, which will get used to submit to the app store.

    So I proceeded to itunesconnect and created a new app, which now says Prepare for Submission. So I continued to ApplicationLoader and uploaded my .pkg. After three to four minutes of wait, it comes up with one error:

    But I have clearly codesigned my app and my dylibs with the entitlement, which clearly has true for com.apple.security.app-sandbox.

    I am really baffled with this, and have gone through several different options checking and unchecking Unity's UseMacAppValidation in project settings, nothing even remotely change to my changes.

    I have googled with the error code, nothing even remotely similar showed up despite my intense prayer.

    Any help would be really really appreciated.

    Note1* My app uses a plugin which has a bundle, it gives a warning ITMS-90239 which says invalid signature, am I meant to codesign .bundle files as well?
    Note2* Nevermind about Note1, I have codesigned that bundle with the entitlement, the warning went away, but the error is still there
     
    Last edited: Mar 20, 2015
  2. eiffeloberon

    eiffeloberon

    Joined:
    Oct 14, 2014
    Posts:
    12
    *Doh*, I have solved this problem, similar solution to Note2. Didn't really occur to me that I have to codesign everything other than the .app and the .dylib.

    This is clearly just a premature post out of frustration, nothing to see here, move along.
     
    NomadKing likes this.
  3. fla-rar

    fla-rar

    Joined:
    May 1, 2014
    Posts:
    248
    how did you fix it ?