Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by Metastable · Nov 20, 2015 at 04:11 AM · windowsosxsigning

How do I properly code sign for OS X?

Let me just start that I come here from many hours of researching and trial and error (mostly error). Some background on my environment; I'm working on a Windows 10 machine and building for Mac OS X x86_64 with Unity 5.2.2f1. I do not currently need to place my app onto the App Store so anything related to that is unnecessary. I do have a Mac that I am performing the code signing on and I would prefer to not need to setup the Mac with a UnityEditor and XCode environment.

Here's what I have so far: Once I have built the Lobby.app and ClientGame.app folder I transfer both over to the Mac and run these commands

 echo --sign frameworks--
 codesign -f -s A1E8A2702BD4754448EC3C91740BA47E3F0FB005 Lobby.app/Contents/Frameworks/MonoEmbedRuntime/osx/libmono.0.dylib
 codesign -f -s A1E8A2702BD4754448EC3C91740BA47E3F0FB005 Lobby.app/Contents/Frameworks/MonoEmbedRuntime/osx/libMonoPosixHelper.dylib
 codesign -f -s A1E8A2702BD4754448EC3C91740BA47E3F0FB005 ClientGame.app/Contents/Frameworks/MonoEmbedRuntime/osx/libmono.0.dylib
 codesign -f -s A1E8A2702BD4754448EC3C91740BA47E3F0FB005 ClientGame.app/Contents/Frameworks/MonoEmbedRuntime/osx/libMonoPosixHelper.dylib
 
 echo --sign apps--
 codesign -f -s A1E8A2702BD4754448EC3C91740BA47E3F0FB005 Lobby.app
 codesign -f -s A1E8A2702BD4754448EC3C91740BA47E3F0FB005 ClientGame.app
 
 echo --codesign verifying apps--
 codesign -vv Lobby.app --deep
 codesign -vv ClientGame.app --deep
 
 
 echo --gatekeeper verifying apps--
 spctl -a --type execute -vvvv Lobby.app/
 spctl -a --type execute -vvvv ClientGame.app/


The returning output is:

 --sign frameworks--
 Lobby.app/Contents/Frameworks/MonoEmbedRuntime/osx/libmono.0.dylib: replacing existing signature
 Lobby.app/Contents/Frameworks/MonoEmbedRuntime/osx/libMonoPosixHelper.dylib: replacing existing signature
 ClientGame.app/Contents/Frameworks/MonoEmbedRuntime/osx/libmono.0.dylib: replacing existing signature
 ClientGame.app/Contents/Frameworks/MonoEmbedRuntime/osx/libMonoPosixHelper.dylib: replacing existing signature
 —-sign apps—-
 Lobby.app: replacing existing signature
 ClientGame.app: replacing existing signature
 —-codesign verifying apps-—
 Lobby.app: valid on disk
 Lobby.app: satisfies its Designated Requirement
 ClientGame.app: valid on disk
 ClientGame.app: satisfies its Designated Requirement
 —-gatekeeper verifying apps—-
 Lobby.app/: unknown error 99999=1869f
 ClientGame.app/: unknown error 99999=1869f

I've read that spctl returning 'unknown error 99999=1869f' refers to Gatekeeper not having a rule set for the app and not necessarily a failure to sign properly. So to test it I transferred the apps over to another Mac to verify that Gatekeeper allows the apps to start. Lobby.app gives me the dialog that it was downloaded from the internet and if I'm sure I want to open but opens just fine. ClientGame.app on the other hand gives me a dialog that it is damaged and cannot be opened.

Running 'codesign -vvvv --deep' on both from the second mac reveals that they are indeed signed. Running 'spctl -a -vvvv --deep' on Lobby.app comes back accepted but on ClientGame it claims that 'a sealed resource is missing or invalid'. That's pretty much as far as I've gotten and have exhausted all the info I could fine so far.

I've also tried running 'codesign -f -s A1E8A2702BD4754448EC3C91740BA47E3F0FB005 --deep' on both of the top level .apps with no difference though I've read doing so is a bad idea, possibly only if I had entitlements.

Does anyone have some insight on how to properly sign for OS X?

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

0 Replies

· Add your reply
  • Sort: 

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

35 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

My unity project only works on certain computers 0 Answers

How do I build on more than one platform? 0 Answers

Windows project not opening on Mac correctly - prefab errors with drag-and-drop, others 0 Answers

Hello sir my Unity editor is not working...Installed it but but shown blank window..how can get rid of it..i am beginner . 0 Answers

Getting path string from file. 1 Answer


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