Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by tmiller_vb · Dec 05, 2012 at 05:14 PM · macunity 4app storepackaging

Did Unity 4 change how one can package an app for the Mac App Store?

Hi there.

We recently upgraded to Unity 4, and I am making a Mac App Store package for my project. I used the process I describe below to create the package (using sandboxing) and then test the installer. This worked great before Unity 4, but now, after I install it, the app closes immediately after startup. This makes me think that the packaging/sandboxing process isn't working the same way as it did before. Alternatively, it could be something wrong with the way I'm installing the package. I would like to test my app before I submit it to the app store, so any information would be helpful.

Here was my process:

  1. In Unity, make sure the "Mac App Store Validation" flag is checked on my Player Settings

  2. Build app

  3. Put in the correct Info.plist file, as well as icon files and MainMenu.nib file.

  4. Make an Entitlements file, allowing for sandboxing.

  5. Open up a terminal and navigate to the folder that has the Unity build in it.

  6. Type the following line: chmod -R a+xr AppName.app (This gives you permission to codesign files)

  7. Type the following line: codesign -f -s "3rd Party Mac Developer Application: Company" --entitlements AppName.entitlements AppName.app (This codesigns the whole app with the permissions granted by the entitlements file and our own developer certificate)

  8. Type the following line: codesign -f -s "3rd Party Mac Developer Application: Company" AppName.app/Contents/Frameworks/MonoEmbedRuntime/osx/libmono.0.dylib (For whatever reason, this file doesn't get modified properly. It has no need for the entitlements, but it does need to be targeted and codesigned directly)

  9. Type the following line: productbuild --component AppName.app /Applications --sign "3rd Party Mac Developer Installer: Company" AppName.pkg (This creates the actual .pkg file that you will be uploading to the Mac AppStore. It creates it in the same folder as the build folder. To change the location, change the very last part of the command so that AppName.pkg is saved to somewhere else.)

  10. App Store package now exists.

Testing the app:

  1. Type sudo installer -store -pkg AppName.pkg -target /

  2. Type in computer's password, if queried.

  3. Start up app from the Applications folder

  4. Type in username/password if queried.

  5. Expected (and previous Unity version results): App runs. Actual result: App immediately closes.

Thanks all!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by POLYGAMe · Jan 03, 2013 at 10:26 AM

I have been tearing my hair out over this, too... But look what I found!

http://wiki.unity3d.com/index.php?title=Mac_App_Store_PostProcessor

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Stuck: Can't publish game in app Store (unity games don't meet platform requirements?) 2 Answers

Unity 4 Can't build for iOS 1 Answer

In-app purchase "Invalid product" on Mac Store build 0 Answers

Unity MacOS notarization - libcurl.dylib: The binary uses an SDK older than the 10.9 SDK 2 Answers

Can I develop an iphone app on UnityPro3d (for windows) and then transport it to Unity (iphone version for mac)? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges