Whenever I attempt to view a USDZ file that I have downloaded from Apple's Quick Look website in XCode it looks black.
I am currently using XCode Version 10.3 (10G8) and have included an image showcasing the issue.
Can someone please help me figure out what's going on? I have already deleted derived data, cleaned my project, and performed a fresh install of XCode, but no luck.
This is working as expected for me. Perhaps you have default lighting turned off? Try selecting the eye icon and enabling it.
Related
I have a Cocos2D game I want to install on my devices with Testflight. For any reason I only see a black screen when I start the project after installing via Testflight. It works fine on the simulator.
Here is the AppDelegate file: http://pastebin.com/KJwqq1us
Here is some of the code of the main menu: http://pastebin.com/9pE1drH1
The strange thing: When I add a viewController's view as a subview I see the view controller, but not the Cocos2d elements.
Would be awesome, if somebody could help me out with that problem :) Thanks in advance!
Edit:
When I install and run the game with Xcode it doesn't work as well. I tried to clean the project, delete the build folder. I create the ipa file by building for archiving -> archive -> use organizer to export as ipa file and upload this file directly to Testflight. Could the startup image cause a problem with the cocos2d layers? When I compile my application, no errors or warning are shown. No matter if I run it on the simulator in retina or non retina, it always works. On any real device it doesn't show anything related to Cocos2d like sprites or the menu
Here's a stab-in-the-dark answer as you haven't given enough details to go on....
Check the case of your graphics files and in your code match. Remember that the device IS case sensitive, but the simulator is NOT.
I fixed the blackscreen by updating the cocos2d framework to the latest beta version. I'm not sure what exactly was causing the problem
I recently started using Xcode 4.2 and the iOS 5 simulator. When I update an older version of my app pre-installed in the simulator, it updates the app just fine but the app icon is not updated. Even with cleaning and building the app ahead of time (sometimes a couple of times) this seems to be the case. Is this a bug or am I doing something wrong?
EDIT: Still the same problem, but when I quit the simulator and start it again (NOT deleting the app), the icon is updated. That's a little encouraging at least. Has anyone else experienced this?
I've had this problem for a while and cleaning the project didn't work either. I finally found a trick to do this. It works at least in iOS 6, I'm not sure in previous versions. The trick is to simply move the app to a folder. The moment you move it there it should display the new icon, and then you can move it out again.
Despite others' answers, it would appear that your problem is a bug.
It would probably be wise to report this. Otherwise, try making a new project and trying again.
Hope all goes as planned.
Theres a new category in the plist file called Icons Files (iOS 5.0). Try adding those file names to your target info like so:
In this tab:
The names and size much also be exact. See this Apple Technical Q&A #1686:
57x57 - Icon.png
114x114 - Icon#2x.png
72x72 - Icon-72.png
50x50 - Icon-Small-50.png
29x29 - Icon-Small.png
58x58 - Icon-Small#2x.png
I ran into a similar problem after renaming the app and adding the Icon files category as described in one of the other answers. No icon would show up in either simulator or device. Tried a clean build as well as restarting simulator and Xcode, no success
The solution for me was to drag the icons from my Resources to the two empty wells under App Icons located under Targets -> Summary. After that my icons showed up in both simulator and device. I´m running Xcode 4.3.1
this works for me.
In iOS Simulator :
iOS Simulator -> Reset Content and Settings
Be aware that it removes all things from the simulator to the trash... but it does work.
Make sure of icons sizes are right at the Image Asset folder
I'm trying to learn iOS development, and have run into a problem that has stopped any and all progress. Whenever I build and run my code on the simulator, I just get a blank grey screen! I can't find any help on the subject, so I turn to you wonderful people here. I have no idea what's wrong. Even when I start a new blank project and build/run it, I get a blank grey screen. It seems like something is wrong in xcode that's preventing my MainWindow.xib file to be used.
Like I said, I'm just learning, so I don't have much experience as to how this all works.
Try this: with iOS Simulator active, select Window->Scale->50%. This worked for me after frustrating hours and hours of restarting the computer, reinstalling Xcode, and searching the Web. Turned out there was nothing wrong with iOS Simulator, just that the default Scale of 100% hid all the icons. OS X 10.9.3, Xcode 5.1.1, iOS Simulator 7.1.
Some of the sample project templates (e.g. 'view based application') don't show anything interesting - only a grey screen (bceause it's up to you to actually add something to the view). But if you create a new "Navigation based application" sample project, you'll see a blue nav bar and an empty table in your app.
I just upgraded to iOS 4.1 SDK and now when I run my app in the simulator one of the images (the only one really) that was working fine before the upgrade is no longer showing up in my view. I've tried removing the file and re-adding it to the project, cleaning all targets and running a build, and making changes to the XIB where the UIImageView is configured to for it to recompile it, but no dice. It's worth noting that my Tab-Bar images came through just fine. Any ideas?
If the UIImageView is created inside a .xib, open it up in Interface Builder: can you see the image in the "preview"? If not, then it can't find the image to begin with. Perhaps the file has been renamed?
Look inside the application bundle in the Finder. Is your image file present? If not, is it still referenced in your project? Check Xcode to make sure the file name isn't in red (i.e. missing).
Maybe they've changed the 4.1 simulator to be (or rather, pretend that the filesystem is) case-sensitive?
Does the app work on a 4.0 device?
I just updated to iPhone SDK4. The problem I am facing is - I was writing an app in iPhone sdk 3.0 just open that project in xcode 3.2.3 made some changes in xib file, now when i run this project in simulator the user interface (xib) appearing blank (with black color).
Any idea why this is happening...?
Thanks
Saurabh
You may be trying to run directly from IB (with cmd+R) this makes it only load the view you're currently editing and does something similar to what you're describing. Save, switch to xcode and run from there, see if that helps. :)