unity game can not be simulated on iPhone 4s

匿名 (未验证) 提交于 2019-12-03 09:05:37

问题:

I was trying to run my unity game on iPhone 4s simulator using Xcode to produce some screen shots for iTunes connect.

There are several problems I encountered on the way and tons of confusion hoping someone might shine some light here.

I have tried all other simulators (iPads, iPhones) and never had any problems.

When I select simulator SDK in the player setting i notice that "architecture" field is greyed out and changed from "Universal" to "x86_64"

When I open Xcode I can't select iPhone 4s as a simulator to run this build on. In order to be able to I have to go to "Build settings" -> "Architectures" -> "Architectures" and change from "x86_64" to "Standard architectures i386 x86_64". After this change iPhone 4s it is now available as a simulator choice.

Xcode builds without errors but as soon as I start the app on the simulator it fails, it won't even get to unity logo.

dyld: Symbol not found: __ZN14Il2CppIUnknown3IIDE Referenced from: /Users/user/Library/Developer/CoreSimulator/Devices/FFABF00E-A414-495A-8FF6- 8AF50B97343C/data/Containers/Bundle/Application/FB0C2EB1-3581-4061-BBC5- 98F09F395218/myapp.app/myapp Expected in: flat namespace in  /Users/user/Library/Developer/CoreSimulator/Devices/FFABF00E-A414-495A-8FF6- 8AF50B97343C/data/Containers/Bundle/Application/FB0C2EB1-3581-4061-BBC5- 98F09F395218/myapp.app/myapp 

I have reproduced this exact same error with an empty unity app.

Here are the questions I hope you could answer:

  1. Is this the proper way to simulate iPhone 4s? If not how should I go about it?

  2. Is there some problem a novice developer doesn't know regarding those different architectures?

  3. Considering that when "Device SDK" is chosen in player setting, architecture is "Universal" (in unity editor) can I expect this app to work on the actual device?

The versions in use are Unity 5.3.4f1 and Xcode 7.2.

回答1:

Go to Player Settings, under Other Settings then under Configuration choose Mono2x for Scripting Backend.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!