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
4
Question by Demigiant · Jan 19, 2012 at 02:03 PM · c#iosiphoneaot

Using System.Reflection with iOS

Hello,

I need some code that uses Reflection to work on iOS. I just wanted to be sure that I got this: Reflection is not compatible with iOS (due to it's AOT compilation mode) at all?

I have no way to test it, because I neither have a Mac nor an iPhone, and would greatly appreciate to know if there's any viable way for Reflection to work on iOS.

Thanks.

Comment
Add comment · Show 6
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 Jessy · Jan 19, 2012 at 02:18 PM 0
Share

I'm thinking that maybe we need to have two tags for "reflection", given the nature of Unity... ;-) "mono-reflection", maybe?

avatar image Demigiant · Jan 19, 2012 at 05:38 PM 0
Share

I thought you were joking on a different thing :B Now that I got another answer I realized what it was about: re-tagged it :-D

avatar image KevinTran · Feb 07, 2013 at 08:41 AM 0
Share

Hi, this is a very interesting web page and I have enjoyed read­ing many of the arti­cles and posts con­tained on the web­site, keep up the good work and hope to read some more inter­est­ing con­tent in the future. Thank you so much.

avatar image softrare · Jan 31, 2017 at 03:42 PM 0
Share

The thread is quite old. Does this problem still persist? If so, does $$anonymous$$acOSX have the same problem? I think not right? Unfortunately I cannot test it out to know for sure.

avatar image Demigiant · Jan 31, 2017 at 03:48 PM 1
Share

@softrare iOS only has issues with special Reflection stuff like Emit, but regular Reflection works. $$anonymous$$ac ins$$anonymous$$d has no issues at all.

avatar image softrare Demigiant · Jan 31, 2017 at 03:53 PM 0
Share

Thank you!

1 Reply

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

Answer by Jessy · Jan 19, 2012 at 02:17 PM

Reflection.Emit would be the problem to be concerned about.

http://docs.xamarin.com/ios/about/limitations#System.Reflection.Emit

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 Demigiant · Jan 19, 2012 at 04:21 PM 0
Share

Yey! Thanks a lot Jessy! I was having troubles trying to have HOTween ( http://hotween.holoville.com ) work on iOS, because I need Reflection, but now I'm onto it again (hoping I'll find a speedy alternative to Emit) :)

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

8 People are following this question.

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

Related Questions

How to make external C# dll library loadable (reflection) on iPhone? 1 Answer

Unity3D app crashes out after error "Warning -> ApplicationDidReceiveMemoryWarning' 1 Answer

Disable JIT compilation in the Editor (Enable Full-AOT mode) 0 Answers

Ensure my dll will run on iOS? 0 Answers

Unity3D app crashes out after error "Warning -> ApplicationDidReceiveMemoryWarning' 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