In Xcode 5 you could easily switch between iOS versions inside the toolbar:
But in Xcode 6 this feature is missing:
Any solution for that?
I'm not sure if this change is just a beta issue or a new design decision from Apple but you can still switch between iOS versions. Apple added a new devices menu to Xcode which you can rename or delete existing simulators or add new ones. Open devices menu from Window->Devices and give appropriate names for the simulators like "iPhone 5 (7.0)".
Related
I have been working on a project in Beta Xcode 8 using Swift 3 and just today when I tried to build my application I found that the "Main Interface" in Targets is missing and when I try to drop down to choose nothing is there.
Checked my storyboards and they are added to the project. Checked my storyboards for entry points, those exist and are in the right place.
The project builds to a black screen. Tried removing and re-adding entry points and that did not work.
If I try to force the name of the storyboard into the Main Interface I get errors saying that storyboard does not exist, it does and it is in the project.
Wondering if anyone came across this project and has a solution.
I can create snapshot in Xcode 6 this way as shown in below image:
But in Xcode 7 its not available and you can see that in below Image:
And control-command-S also doesn't work.
Can anybody tell me now how can I create a snapshot using Xcode 7?
I opened a bug regarding this. According to Apple, "Snapshots have been removed in Xcode 7. You can export existing snapshots in Xcode 7 but not create or restore them."
Hopefully they'll restore them in a future release, but for now I recommend using git from the Source Control menu as suggested by Tim.
there isn't snapshot in xcode 7, to resolve this problem, use xcode 6 and 7, xcode 6 to create and restore snapshot and after you can open your project with xcode 7.
For posterity - in the menu at the top select "SourceControl" then "Commit...", add a comment and "Commit X Files" then after you make additional changes and want to see the changes select "SourceControl" and "Commit" and select the file on the left.
All explained nicely in :
http://www.raywenderlich.com/51351/how-to-use-git-source-control-with-xcode-in-ios-7
First, I have xcode 3.4.3 installed on my hackintosh(10.6.5). When I started using xcode , I follow apple's steps from "Your First Mac App" tutorial. When I walked through creating actions for controls, it ask me to use the assistant editor to create connections between control and logic code, but I can't find anything called assistant editor is this because I am using xcode 3.4.3?
Could somebody please tell me some alternatives.
//edit: The assistant editor seems only present at xcode 4 and higher, so the tutorial you are using is newer than you current xcode version. Thanks #popeye for the hint.
The alternative is simply add the connections by yourself. You have to add the outlets in the interface-file (h-file) and the implemenations in the implementation-file (m-file).
There is a good tutorial video fromon how to achieve this:
Xcode 3 Recipes - Connecting an Outlet
Old Post:
The mentioned "assistant editor" is just a neat way to connect your outlets with your code. It connects the GUI with the code. For example if you have a button on your screen and you want to register a touch event on that than you can simply use the assistent editor to do that.
It is on the upper right corner of xcode. See the screenshot:
It shows you a split view with the code on one side and the Storyboard on the other. If you have that view open you can simply hold the control-key and drag a connection from the gui element to the code.
From the apple website: Assistant (): presents a separate editor pane with content logically related to that in the standard editor pane. Use the split controls in the Assistant pane to split the pane. Use View > Assistant Layout to set your preferred assistant pane and split configuration.
Apple iOS Developer Library - xCode Basics
I think you might be out of luck. I do not remember having an assistant editor in XCode 3, not like the version in XCode 4 anyway. Apple tends to keep it docs relevant to the newest release. The link provided by #palme is only relevant for XCode 4.
You might have be resigned to opening multiple windows to compare header and implementation files. In XCode 3, you will have to get used to mutiple windows at times, even seperate applciations (i.e. Interface Builder is completely seperate application from XCode 3).
In Xcode 4.4 it seems I am unable to add compiler flags to individual source files. I am trying to remove ARC from a single file but I can not get the pop up to add flags. Double clicking or selecting the item and pressing enter does not work, also tried selecting multiple and pushing enter which does not work. I have tried with two separate projects, one of which I created with Xcode 4.4. Is there another way to manually add compiler flags to a source file? (I do not have an older version of Xcode to see how it stores the value [likely in the pbxproj]).
Note: MacBook Pro w/ Retina Display - OSX 10.8
I found where the window was hiding. I had to drag Xcode pretty far down to the lower left corner of my screen as the pop up window was showing up and to the right. This made it completely hidden while full screen.
A bug report has been filed rdar://11970271
I am using Xcode 4.3.2 and trying to follow along with the "Learn Objective-C on the Mac" book and it is stating to go to New Project --> Mac OS X and select Command Line Utility --> Then select Foundation Tool on the right hand side. I see Command Line Utility but I don't see Foundation tool so that I can follow along with the book Can someone assist me possibly as I am new to Mac OS X.
Click on the "Next" button when you start setting up your new project and you'll see this screen in Xcode 4:
It's one screen beyond where you choose what kind of app (iOS or MacOS, GUI or command line, etc.) you want to create.
Just proceed and select in drop down