To debug NullReferenceException on iOS, write lots of Debug.Log for objects, and in build settings enable development build and script debugging.
This could happen if GameObject.FindGameObjectWithTag is used in Awake or Start because the object may not be created when Awake or Start is executed. The issue may not show up in editor since in editor the objects may already be there but they may not be created when running the app on iOS. One workaround is to do it at point of usage when the object has been created.
Showing posts with label Unity. Show all posts
Showing posts with label Unity. Show all posts
Wednesday, 14 February 2018
Friday, 13 April 2012
Unity: How to test iOS Unity Apps without using Xcode
Xcode is slow when building Unity iOS apps. It is not a good option for testing Unity iOS apps since it could take several minutes to build the app.
You cannot use the Game panel in Unity to test iOS apps which handles touch events because the Game panel does not emulate touch event with mouse. If you use the Game panel, Input.TouchCount is always zero since there is no touch events.
You need to use Unity Remote to test Unity iOS apps. It is a iOS app which can be downloaded from Apple App Store freely and installed on your iOS devices. Before testing your app, connect your iOS device to your Mac, then run Unity Remote on your iOS device and select your Mac machine. In Unity, run your app, the Game panel will stream video display to Unity Remote and Unity Remote will pass touch events from your iOS device to the Game panel. This way you can test your Unity iOS app with all the iOS events.
Wednesday, 11 April 2012
Unity: Problem with invalid signature on iOS
If you build Unity project for iOS and see this error when running the app:
The application does not have a valid signature
And your development provisional profile are OK. It can be caused by having more than one development provisional profiles. You can use organizer to remove extra development provisional profiles and only keep the generic one. This should fix the problem.
The application does not have a valid signature
And your development provisional profile are OK. It can be caused by having more than one development provisional profiles. You can use organizer to remove extra development provisional profiles and only keep the generic one. This should fix the problem.
Unity: problem with Xcode 4.3.2
Currently Unity basic edition does not work with Xcode 4.3.1 and 4.3.2. The error is:
You are using Unity iPhone Basic. You are not allowed to remove the Unity splash screen from your game
The workaround is generate your Xcode project and build it with Xcode 4.3 or older version.
Until now there is no fix yet. Unity is aware of this issue and promised a fix in the next release.
http://forum.unity3d.com/threads/126820-Unity-3.5-and-iOS-5.1
You are using Unity iPhone Basic. You are not allowed to remove the Unity splash screen from your game
The workaround is generate your Xcode project and build it with Xcode 4.3 or older version.
Until now there is no fix yet. Unity is aware of this issue and promised a fix in the next release.
http://forum.unity3d.com/threads/126820-Unity-3.5-and-iOS-5.1
Subscribe to:
Posts (Atom)