I'm making a game with swift and I went into the project editor to rename the project. Now when I try to run it it just gives me a gray screen. My app is called Scene Transition, and under the projects folder the Scene Transition.app and Scene Transition Tests.xctest are both red. Not sure if this has something to do with it.
I would suggest following the instructions in this youtube video. In general, renaming things in Xcode without considering the configuration changes is a bad idea (this actually holds for just about every programming language and environment I can think of).
Related
I recently redesigned a view controller in storyboard, which before the redesign was portrait. Once redesigned, it ran upside down, with no code changed. I must have pressed something but have no idea what.
How do I reorientate this upright?
This looks very much like a transform setting, most commonly used when porting Mac code to iOS or for working with Core Text. Sometimes people use it when trying to create an inverted infinite table view (such as for chat apps or social media apps). I would expect that somewhere in your code you've accidentally applied it to more views than you meant to (maybe with a poorly considered extension). I would search your code for transform =. Also, you'll want to check your view hierarchy (the left-hand pane with the scenes in it), and make sure you haven't embedded this in something like a scrollview (that you've then flipped in code somewhere).
It is possible to do in the Storyboard editor, but it's pretty obscure, and unlikely for you to do by accident. See https://stackoverflow.com/a/43014583/97337 for an picture of where it would be set (that question is about rotation, but flipping is very similar).
(Hopefully you have this project in version control, such as git, so you could use diffs or bisect to find out where the relevant change was.)
One more thought: don't completely discount a bug in Xcode. It's not likely, but it is possible. Do the standard stuff: quit Xcode, delete DerivedData, and try again. Probably won't fix it, but when things are really weird, it can be Xcode's fault.
All my animations were working fine, I was adding a boss fight in level 12
Got it working but the player ship that I wasn’t working on was only showing the back half, as if it had been cropped! Yet still animated as normal.
When I tried a clean build I tested level 1 and the player ship is still cropped, along with some other animated nodes, like the weapon power up symbols.
All the other animations are working ok.
Any ideas what could cause this?
I finally worked out what was wrong and how to fix it. I had made lots of atlas files but a Xcode update didn’t like the way I had made them or the location I put them. I deleted all the atlas files and made them inside the Assets.xcassets file, using the menu and selecting create atlas sprite file.
Now all my animations work as they should
Am using Xcode 9.1 and my Xcode error while dragging objects from object panel in storyboard its mirroring automatically as shown in picture .need help in solving this !
Very odd. At first I thought it was simply rendering for a RtL locale but I don't imagine the chrome around the rendered view should be mirrored as well. Out of curiosity are you testing a Right-to-Left locale? If so, does this persist when that preference is disabled?
Otherwise I'd try cleaning the project, restarting Xcode, and removing your .xcuserdatad file, in that order.
Can anyone help with Xcode 4.2 and the new tabbed application project? With Xcode 4.2, i create a new tabbed bar application, and it works as desired. However, it seems that instead of creating a new window and main.xib file that contains the tabviewcontroller, it sets everything in code within the appDelegate.
its easy to work with the tabbarcontroller via code and i have no problems setting up other tab items, however, i feel that my iOS development skills (they are new) are missing something as i would NOT even know if it was still possible to work with the tabviewcontroller graphically now in the way this project template has been setup.
Is there a way to work with the tabviewcontroller graphically? would i have to create a new main.xib file and link everything up to that? i'm still not strong enough in my skills to work out all the minute details but if that is the path that people suggest, i will look into it and try to figure it out.
I only want to work this out so i can fully understand whats going on now with Xcode 4.2, I have no unrelenting desire to only work with the tab bar controller graphically, but am curios as to why i cannot find it (or if i should)... just trying to get my head around how these things should be working.
You should use the Single-View Application template.
HEre you can add graphically that control
I'm a fan of Xcode's new storyboarding, but I'm annoyed it won't work on iOS4. I understand why it won't work, because it relies on new classes added to the iOS5 framework. However, it would be cool to be able to port a storyboard back to iOS4 somehow. A tool that outputted xib files for the individual stories, and code generation for segues.
If anyone knows of anyone else doing something in this area, I'd be interested in using it, since my app needs to support iOS4, but I'd like to move forward with Storyboarding. Can i have my cake and eat it too?
Nope you cant. Ended up gutting the storyboarding and going back to individual xibs.