- Home /
iOS app failed to start scene, screen black.
So i've asked before but got no answers, heres my questions.
when i start my scene from unity to Xcode it builds successfully but then when my phone starts the app the screen goes and stays black when i unplug my phone and try to start the app the app opens then closes just a flash of the black screen. what i saw in Xcode i noticed was red coding does this mean theres an error???
please help this is my first app and so far none has helped I've watched videos on youtube, i read ALL the unity iPhone crap about getting started, i don't know what to do if someone could please help just answer a few of my questions. heck if you can actually help me i'll pay you for your time.
my email is josiahrwood@gmail.com
EDIT
Ok get this i see when i analyze the APP it gives me tons and tons of messages saying "/Users/Business/BouncyBalls/iOS BouncyBall/Classes/UI/UnityAppController+ViewHandling.mm:120:2: Potential leak of an object"
Red highlighting as your image shows is perfectly normal in XCode, its simply the syntax highlighting it uses by default (I think) for the strings used in #includes.
$$anonymous$$eep your device connected to XCode and run the app from xcode to the device, if there is an error causing your app to close, it should display in the console output within XCode.
no like i said "it builds successfully but then when my phone starts the app the screen goes and stays black" thats what happens when its plugged in.
have you built an APP before? maybe you could give me some pointers maybe i set something up wrong
If you're saying that the app builds and deploys fine without crashing, then there could be a huge number of reasons why you are seeing just a black screen. What are you expecting to see ins$$anonymous$$d of the black screen?
Answer by alok-kr-029 · May 05, 2015 at 12:01 PM
Yes there can be many reasons why your app is crashing I can give you few tips how I solved this issue use all the texture ,png ,jpgs and atlas of size not more than 1024* 1024; avoid instantiate of lots of gameobject at the time of the start .
well i tried all that but i noticed the screen it's showing isn't all black it's a dark blue it looks exactly like the LaunchScreenImage-Portrait.png unity sets by default does that help?
Did you tried building the project for android .If not just build and check the output on logcat.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
while loop works in editor, stuck on iOS 1 Answer
For which Platforms can i build AssetBundles with a Mac 1 Answer
Unity does'nt display anything on the Apple Watch simulator. 2 Answers
iOs weird textures (good on android) the reason? How to fix ? 1 Answer