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 oliver-jones · Jan 14, 2013 at 12:58 PM · buildmacsandbox

CodeSigning Sandbox - Unity Build - MacStore

Hello,

I've finished my game, and I signed everything, packaged it and uploaded it to iTunes Connect. It keeps getting rejected due to my 'Sandbox' not being enabled.

I've been reading around a few forums, and I'm told to create a 'GameName.entitlements', and include:

 <key>com.apple.security.app-sandbox</key>   <true/>

I've done that, and I've placed it within my Content folder of my game.

Every time I try and code sign it with this:

 codesign -f -s "3rd Party Mac Developer Application: Company" --entitlements "GameName.entitlements" "/Path/GameName.app/Contents/"

I get this error:

 GameName.entitlements: cannot read entitlement data

Other people have been having this problem, and they were told to place the entitlement file on the same directory as the game, I've done that - and I still get that error.

What am I doing wrong here?

Thanks

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Psymon · Jan 14, 2013 at 01:17 PM

Do the .entitlements file have the correct header ?

It should be like this :

 <?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>com.apple.security.app-sandbox</key>
 <true/>
 </dict>
 </plist>
Comment
Add comment · Show 5 · 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
avatar image oliver-jones · Jan 14, 2013 at 01:32 PM 0
Share

I literally just copied and pasted this into the entitlements, it was the same as I had. Tried signing it via ter$$anonymous$$al. Still getting the error... Are my directories correct? The entitlements are in the same directory as my Info.plist, Resources, Data ... etc

avatar image Psymon · Jan 14, 2013 at 01:36 PM 0
Share

The only thing different from you is the quotation marks above the .entitlements. When i sign i do this :

codesign -f -s "3rd Party $$anonymous$$ac $$anonymous$$pplication: $$anonymous$$y$$anonymous$$ey" –entitlements Game.entitlements Game.app

Also have you got the right on the .entitlements file ? if not make :

chmod a+rx Game.entitlements

EDIT : i didn't see but your .entitlements file should be placed in the same directory as you .app, not IN the .app

avatar image oliver-jones · Jan 14, 2013 at 02:03 PM 0
Share

Okay - both my app and entitlements are on my desktop, I've changed my codesign to yours and now I'm getting No such file or directory:

 codesign -f -s "3rd Party $$anonymous$$ac $$anonymous$$pplication: Oliver Jones" –entitlements Game.entitlements "/Users/Oliver/Desktop/"
avatar image Psymon · Jan 14, 2013 at 02:30 PM 0
Share

It's normal because you didn't mention your .app file "/Users/Oliver/Desktop/Game.app"

To be sure :

First

cd /Users/Oliver/Desktop/

Then

codesign -f -s "3rd Party $$anonymous$$ac $$anonymous$$pplication: Oliver Jones" –entitlements Game.entitlements Game.app

It should be fine.

avatar image oliver-jones · Jan 14, 2013 at 02:35 PM 0
Share

Okay, so I've done:

 cd /Users/Oliver/Desktop/

Then:

 codesign -f -s "3rd Party $$anonymous$$ac $$anonymous$$pplication: Oliver Jones" –entitlements Game.entitlements Game.app

And I get 'No such file or directory'. Now if I replace the '–entitlements', with a '--entitlements', I get 'cannot read entitlement data'

avatar image
0

Answer by oliver-jones · Jan 14, 2013 at 02:38 PM

I fixed it:

 codesign -f -s "3rd Party Mac Developer Application: Oliver Jones" --entitlements "/Users/Oliver/Desktop/Game.entitlements" "/Users/Oliver/Desktop/Game.app"

The main issue is that I was using '–entitlements', instead of '--entitlements'

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

9 People are following this question.

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

Related Questions

A node in a childnode? 1 Answer

Distribute terrain in zones 3 Answers

Does Unity cull away unused assets on build time? 1 Answer

Onmouse event handlers preventing me from building an apk? 1 Answer

Mac App Store Validation Question 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