• 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
5
Question by Hotshot10101 · Aug 21, 2013 at 09:31 PM · androidhttp

Android Unable to find /System/Library/Frameworks/Security.framework/Security

I have a Unity project that I have been building for iOS. I now need to build for Android. One of the things I am doing is trying to open an https connection using the HttpRequest classes.

This works perfectly fine on iOS.

It builds fine on Android, but when I try to make the https request itself I get the following error from Unity:

Unable to find /System/Library/Frameworks/Security.framework/Security

Can anyone help me figure out how to fix this?

Comment
Add comment · Show 3
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 edgarjcfn · Feb 04, 2014 at 03:19 PM 1
Share

Did you eventually find a solution for this?

avatar image Hotshot10101 · Feb 04, 2014 at 03:53 PM 0
Share

No. This is still an outstanding bug that I hope is fixed.

avatar image fschneider Hotshot10101 · Aug 23, 2016 at 07:57 AM 0
Share

Still seeing it ... (Unity 5.4.0f3)

2 Replies

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

Answer by Hotshot10101 · Mar 13, 2014 at 09:12 PM

This appears to be a bug either in Unity or the version of Mono that comes with Unity. I opened a bug report with Unity. it is still open after all this time. I have not received any kind of feedback from Unity about when it might be looked at or fixed.

Comment
Add comment · Show 1 · 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 JoshOClock · Mar 18, 2014 at 08:35 PM 0
Share

I've seen this as well, but only on certain devices. Please update us with any new information when available. Thanks.

avatar image
2

Answer by AdsterUK · Apr 22, 2014 at 04:55 PM

Adding the following line prior to making the request will prevent the error. The downside is it does so by disabling security certificate checks.

 ServicePointManager.ServerCertificateValidationCallback = (p1, p2, p3, p4) => true;

For a more comprehensive solution (I haven't tried it) the original mono bug thread is here along with a solution

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 Hotshot10101 · Apr 22, 2014 at 05:55 PM 0
Share

This is a great answer. I am not marking it as THE answer because it does disable security. I wish there was a way to accept an answer with conditions or something like that.

avatar image deadlyfingers · Jun 06, 2015 at 03:58 PM 0
Share

Is there a better solution to get REST requests to work with Unity3d Android builds?

avatar image jesses.co.tt · Feb 26, 2016 at 07:04 PM 0
Share

I am still seeing the error even after adding this method call...

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

22 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

Related Questions

A node in a childnode? 1 Answer

Unity games and web comunication 1 Answer

Camera 2D Movement android unity 1 Answer

Question about Network and NetworkViewID 1 Answer

Android Tutorial 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