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 ferretnt · Jan 09, 2013 at 02:05 AM · cameraxcodeplayer settingsmac store

Signing C++ Plugins For the Mac App Store

In porting Paint My Cat for the Mac App Store, I want our C++-based computer vision and AR tracking to work. And it does... right up until the moment I sign the app with codesign. At that moment, it stops loading our Plugin at runtime. (At least, I assume that's what happens, because I get a blank screen that looks very much like the call to that API failed completely and threw an exception.)

Can anyone explain what I need to do to get plugins working correctly with signed binaries?

OR

Is it the fact that my plugin accesses the camera? (Which I'm surprised at, because I'm signing it with the same entitlements file as the main app, which specifies use of the camera.)

I think this is a long shot for Unity Answers, but here's hoping.

Alex

PS. I should add that I've made sure the info.plist contains the same bundle information in both cases, and even overriden the bundle information with the -i flag in the codesign. Nothing seems to make the app load the executable code from the plugin after it has been signed.

Comment
Add comment · Show 1
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 Julien-Lynge · Jan 09, 2013 at 04:33 AM 0
Share

Not my area of expertise, unfortunately, but have you checked the log file after starting the app to deter$$anonymous$$e whether it is in fact the call to the plugin?

1 Reply

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

Answer by ferretnt · Jan 10, 2013 at 10:22 PM

In the spirit of answering my own question, this turned out to be a very subtle dependency: My C++ plugin depended on an external library which through a chaotic chain of external build systems depended on the unix zlib as a dylib. Changing that dependency to link against Apple's zlib, which is called libz, then allowed the plugin to be loaded in sandbox mode.

For anyone else doing it, signing plugin bundles is very straightforward. I never quite worked out if you are suppose to sign the bundle, or the executable code inside its Contents/MacOS section, so I just ran codesign on both, but after that everything works.

Getting good debug output from C++ Unity plugins on a Mac is its own separate thread... I still haven't answered that one.

A.

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

Signing C++ Plugins For the Mac App Store 0 Answers

Symbol not found: _UnityGetAudioEffectDefinitions 0 Answers

Unity 2D Camera Player Boundary 1 Answer

Fitting camera in different resolutions. 1 Answer

2 Apple Mach-O Linker Errors (see edit #3) 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