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
1
Question by Ante · Apr 12, 2012 at 07:33 PM · iosscreenxcodeblack

Black screen while running in iOS

I think something is funky with xCode again. After the splash screen, the screen just goes black and stays black. This happens on every device I try it on. The game works on Android, Windows and Mac just fine, and worked on iOS before Unity 3.5.1 and Xcode 4.3.2. It builds just fine with the usual errors.

This is all the ouput I get from xCode:

2012-04-12 15:04:05.390 nyancat[61761:707] -> registered mono modules 0x11d82f8 -> applicationDidBecomeActive()

I can tell none of my scripts are running because they throw out debug text like nobody's business, so it seems as if the scene isn't loading at all. I have also tried running this project with an empty scene with no luck, so I don't think any of my scripts are causing the issue. I've also tested other projects and they still run fine.

If I had to guess, it's probably something to do with the Prime31 plugins I'm using, but they are so tied into my code that removing them would be a heck of a lot of work. Does anyone have any ideas?

Comment
Add comment · Show 5
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 rutter · Apr 12, 2012 at 07:46 PM 0
Share

I realize this is something of a cop-out, but if nobody can give you leads, you might try to reproduce the issue with the simplest setup possible (ideally from a new project, introducing elements one by one until it breaks). Won't necessarily help, but could narrow down the problem.

avatar image Ante · Apr 12, 2012 at 08:12 PM 0
Share

I guess I can make a new project with all of the plugins I use to try and figure out which one is the problem. If it isn't the plugins, it's something wrong with my project.

avatar image Adamcbrz · Apr 13, 2012 at 04:03 AM 0
Share

Yes there was a post on the forums about the Etcetera plugin causing this. I believe you delete the app delegates out of the Etcetera folder in Xcode. But either way prime has updated the plugins so you can get the latest plugins and that should solve the problem.

avatar image Ante · Apr 13, 2012 at 04:48 AM 0
Share

I updated the Etcetera plugin, but it didn't seem to help. $$anonymous$$orrow morning I'll see about removing the plugin entirely and see if that helps. If it does, I'll work on it from there.

avatar image Adamcbrz · Apr 13, 2012 at 12:39 PM 0
Share

Here is a one of the forum post that tells you something to try. http://forum.unity3d.com/threads/64166-Etcetera-Plugin-Live!-Alerts-prompts-loading-views-push-localization-and-more!/page33

the only plugin that could affect the root view controller is the Etcetera Plugin and as long as you are on the latest version it will not touch that code at all. If you are using the latest version the AppControllerPushAdditions will have the following line which will conditionally compile based on the value (1 for Unity 3.5, 0 for older versions):

#define USING_UNITY_35 1

If you don't trust that the compiler is properly removed the code you can just remove the AppControllerPushAdditions.h/m file and then the only code that could ever effect the root view controller will no longer be part of your project.

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by james_robotsvswizards · May 14, 2012 at 06:27 PM

The etc plugin will do that if you don't delete the older files first. in your project view just type etc and make sure you delete the etc folders before importing the latest version.

Comment
Add comment · 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
1

Answer by replay11 · Sep 01, 2012 at 09:10 PM

I had exactly the same issue using Version 4.4.1 (4F1003) and Unity 3.5.5f3. The game played fine inside of Unity. The game build from Unity had no compiler errors. The Xcode Project compiled without any errors, but when the game was running the launch image appeared for a few seconds and then it went to a blank, black screen.

The resolve the issue I did just what was mentioned above. 1) In my Unity Project folder I did a search for "ETC" 2) I deleted the two Etcetera folders 3) I downloaded the current Etectera plugin from Prime31 4) I installed the new package into my Unity project 5) Problem Solved !!

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 J-R-Wood · Mar 23, 2015 at 05:30 PM 0
Share

Im having this problem as well but i don't understand what you're saying @replay11 where do i delete what files?

avatar image
0

Answer by james_robotsvswizards · May 14, 2012 at 06:27 PM

The etc plugin will do that if you don't delete the older files first. in your project view just type etc and make sure you delete the etc folders before importing the latest version.

Comment
Add comment · 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
0

Answer by Revick · Jul 08, 2016 at 12:21 PM

For anyone who stumbles on this, leaving this tip for others. Black screen on iOS before Unity splash screen after successful build and no errors in Xcode.

I had a similar issue where my CPU usage would shoot to 100% and hang on black screen before the Unity splash screen.

How I debugged: Select mono in the build settings in Unity. Then when the app is running in Xcode transfer to instruments and click through to see which method is causing a potential hang.

For me it was PlayerPrefs.GetInt("Player Score") getting called in an Awake() method. Oddly enough this caused an endless loop and never let me progress to the game.

Comment
Add comment · 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

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

10 People are following this question.

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

Related Questions

Set Screen Size To Only Be Wide? 1 Answer

Creating a native photo picker screen on iOS 2 Answers

iOS: Screen flashes black after the splash screen 1 Answer

black screen when simulating 1 Answer

How to automatically replace the .xib file in the Xcode project when packaging iOS 0 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