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
3
Question by matt 1 · Feb 27, 2011 at 08:17 PM · iphonescreenxcodeblack

black screen when simulating

Hey guys=)

I'm rather new to ios so forgive me for my lack of knowledge in this area.

Here's my problem: I have a game... although the game doesn't matter because I attempted using the free ios project files for unity. Well, I exported them into xcode and changed the target simulator (which I found was necessary for the build to be successful online) but when it opens up in the simulator, all I see is a black screen. Now, I'm not sure if it has anything to do with this problem but all the frameworks in my project window in xcode are red... could this be the problem?

In xcode all my frameworks show up red... as if they don't exist or something...

Maybe this will help:

GNU gdb 6.3.50-20050815 (Apple version gdb-1511) (Mon Nov 1 07:33:53 UTC 2010) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin".Attaching to process 17739.

2011-02-27 14:27:38.624 new[17739:207] Unknown class Unity_iPhoneAppDelegate in Interface Builder file. 2011-02-27 14:27:38.666 new[17739:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UICustomObject 0x4e0c550> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key glView.'

*** Call stack at first throw: ( 0 CoreFoundation 0x00f22be9 __exceptionPreprocess + 185 1 libobjc.A.dylib 0x010775c2 objc_exception_throw + 47 2 CoreFoundation 0x00f22b21 -[NSException raise] + 17 3 Foundation 0x0077d6cf _NSSetUsingKeyValueSetter + 135 4 Foundation 0x0077d63d -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285 5 UIKit 0x0020d8d6 -[UIRuntimeOutletConnection connect] + 112 6 CoreFoundation 0x00e992cf -[NSArray makeObjectsPerformSelector:] + 239 7 UIKit 0x0020c2ed -[UINib instantiateWithOwnerptions:] + 1041 8 UIKit 0x0020e081 -[NSBundle(UINSBundleAdditions) loadNibNamedwnerptions:] + 168 9 UIKit 0x00018943 -[UIApplication loadMainNibFile] + 172 10 UIKit 0x000194ca -[UIApplication runWithURLayload:launchOrientation:statusBarStyle:statusBarH idden:] + 291 11 UIKit 0x00023db2 -[UIApplication handleEvent:withNewEvent:] + 1533 12 UIKit 0x0001c202 -[UIApplication sendEvent:] + 71 13 UIKit 0x00021732 UIApplicationHandleEvent + 7576 14 GraphicsServices 0x01197a36 PurpleEventCallback + 1550 15 CoreFoundation 0x00f04064 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FU NCTION + 52 16 CoreFoundation 0x00e646f7 CFRunLoopDoSource1 + 215 17 CoreFoundation 0x00e61983 _CFRunLoopRun + 979 18 CoreFoundation 0x00e61240 CFRunLoopRunSpecific + 208 19 CoreFoundation 0x00e61161 CFRunLoopRunInMode + 97 20 UIKit 0x00018fa8 -[UIApplication _run] + 636 21 UIKit 0x0002542e UIApplicationMain + 1160 22 new 0x00001ccc main + 102 23 new 0x00001c5d start + 53 ) terminate called after throwing an instance of 'NSException' sharedlibrary apply-load-rules all (gdb)

thank you for your help! cheers, Matt

Comment
Add comment · Show 2
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 Peter G · Feb 28, 2011 at 03:03 AM 0
Share

You usually should be building to a device. Did you choose simulator in Unity as the desired setting as well as in xCode?

avatar image matt 1 · Feb 28, 2011 at 04:41 AM 0
Share

what do you mean? as i said I'm new to this... I built it in unity for ios. That made an xcode project. There where two 'run' settings i could use 1# unity iphone 2# Unity - simulator iphone I tried both but they gave me a failed build. I added a new target for a build and that made the build successful but that's when i'd get the black screen

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by rejj · Apr 28, 2011 at 01:46 PM

Try the following:

  1. Delete the dir you are outputting the build to, if it exists - just to make sure you are starting fresh.
  2. In unity - Edit -> Project Settings -> Player Settings.
  3. Make sure you are looking at the iOS per-platform settings. Should be the 3rd icon in the toolbar/menubar thing in the Inspector
  4. Set the SDK Version to iOS Simulator Latest
  5. Build (not build & run - I can't get that to work)
  6. Open the .xcodeproj file with XCode and make sure you have the Unity-iPhone-Simulator target selected, and are building for the simulator. (eg, Unity-iPhone-Simulator | iPhone 4.3 Simulator)
  7. Build and Run in XCode

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

No one has followed this question yet.

Related Questions

Black screen while running in iOS 4 Answers

Screen width problem with iPhone game (Xcode) 0 Answers

black screen after the first play on android 0 Answers

OpenGLES error 0x0502 in iOS 0 Answers

AWS in iOS not working 2 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