您的位置:首页 > 产品设计 > UI/UE

Generated AOT code is wrong when building for iOS on Windows

2014-07-23 09:11 423 查看
http://issuetracker.unity3d.com/issues/datetime-difference-on-ios-device-and-in-the-editor

To reproduce:

1. Create a new project

2. Attach a script that debugs System.TimeSpan.MinValue.TotalSeconds or System.DateTime.Now.Ticks to the main camera

3. Build on Windows for iOS

4. Run Xcode project on Mac

5. Notice that Xcode debugger/console logs numbers like: 4.0917397079469E+142 which are different from the numbers logged when the project is run in
the Editor.

SMILEDIVER

Feb 17, 2014 11:41

This is caused by general AOT issues, and are not related to DateTime itself. To be more precise: wrong double and 64 bit int alignments, compiler optimization issues which makes AOT code to invoke wrong methods, etc. Fixes are targeted for the next Unity 4.x
release.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐