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
1
Question by HeywoodFloyd · Feb 23, 2011 at 11:30 PM · xcodeosxdllnotfoundexceptionextensiondllimport

Building OSX Bundles for Unity Extensions with External Frameworks

I'm writing an extension to access the some license management software. For Windows, I was able to build a .dll and access the license management functions with no problem. However, when I move to a Mac and build a bundle accessing the same libraries as external frameworks, Unity never loads the bundle, always throwing a System.DllNotFoundException.

I've noticed that when I look at Unity's sample extension project, the bundle shows up as a folder in the project window. All my bundles have a box icon instead of a folder icon.

I've but the bundle in Assets/Plugins, and in the same folder as the executable (which works on Windows), but the bundle is never seen on the Mac.

I've seen this discussed in the forums, but I can't see that anybody's ever figured it out. I'd like to know:

  • What type of Xcode project do I use to build the bundle
  • How do I import the 3rd party libraries (frameworks) into my bundle so that Unity will see them, and
  • Where do I put the bundle?
    • in Assets/Plugins,
    • in the same directory as the executable, or
    • in some mysterious OSX place unknown to people with as much Windows brain damage as myself
Comment
Add comment · Show 2
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 forestjay · Jan 05, 2016 at 10:06 PM 0
Share

Hi @HeywoodFloyd, how did you import the libraries into your Unity bundle?

avatar image HeywoodFloyd forestjay · Jan 05, 2016 at 10:21 PM 1
Share

Sorry, but I haven't touched XCode since 2011 and I don't remember.

1 Reply

· Add your reply
  • Sort: 
avatar image
3

Answer by HeywoodFloyd · Mar 02, 2011 at 11:12 PM

The problem was I was building a 64 bit bundle, and Unity wants 32 bit bundles.

Comment
Add comment · Show 3 · 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 Jacktang · Jun 10, 2012 at 05:36 AM 0
Share

Just wanted to say thanks for this! Super helpful! Been banging my head against a wall over this one for some time now, and this fixed it.

avatar image Hola Soy Edu Feliz Navidad · Aug 30, 2014 at 11:31 AM 0
Share

That´s right, even now with Unity 4.5.3 it´s still necessary to create our bundles on 32 bits mode. It looks that it´s going to change on Unity 5 because it´s only going to build 64 bit apps. I can´t give you an up vote because I don´t have enough point for that.

avatar image forestjay Hola Soy Edu Feliz Navidad · Dec 17, 2015 at 07:07 PM 0
Share

Yes, Unity 5.x requires universal bundles.

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

2 People are following this question.

avatar image avatar image

Related Questions

DLL NOT FOUND EXCEPTION even after following procedure 0 Answers

EntryPointNotFoundException - native plugin help 0 Answers

XCode 4.4.1 1 Answer

DLLNotFoundException, trying to build bundle from .a library on OSX 1 Answer

Android 64-bit .so DLL file not found error 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