Missing Xcode 6 Docset - xcode6

I notice upon receiving Xcode6-Beta 4 that there's no documentation.
I'm particularly interested in iOS 8 documentation.
How do I get iOS 8 documentation for both Xcode & Dash?

The documentation for Xcode 6 beta are in the package itself. Go to Xcode 6 in Finder, right click on it, 'Show Package Content', then go to Contents > Developer > Documentation > DocSets and double click the docset files to import them to Dash.

Related

Navigate to Symbol in XCode 8

In XCode 7 it was possible to navigate to symbol/object i.e. pressing
⌘ + ⇧ + O
And typing
didFinishLau...
Resulted in possibility to navigation to suitable method in AppDelegate file. Recently, after updating to XCode 8 I've found this option missing, is there any possibility to get it back?
In Xcode 8 when you select Edit -> Emoji & Symbols you get (I think by default) this smaller Special Chars tool.
To get access to the more familiar view with a search select the icon in the top right.
Xcode 8 Emoji & Symbols chart
Then you get the familiar one.
Symbol chart
Hope it's helpful to you.

how to create a snapshot using Xcode 7?

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

Switching between iOS versions in Xcode 6

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)".

New to Objective-C and can't find Foundation tool in Xcode package

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

How to embed ParseKit as a private framework in a Mac App bundle

I need to install ParseKit to compile with cocoa under Mac Os X, I use xcode 4.
I have searched online but there is only a guide for installing parse kit for iPhone.
Where do I find the download for Mac Os X and/or a guide?
Developer of ParseKit here.
OK, after working through a tricky issue in Xcode 4, I have figured out my preferred way to do this: Create a new Workspace ("MySuite") which contains two sub-Projects
Your Mac Cocoa Application Project ("MyApp")
The ParseKit Framework Project ("ParseKit")
You can choose different names than "MyApp" and "MySuite" of course.
There's a few different ways to make this happen. Here's one way:
First, make sure you update to the very latest version of the ParseKit from the Google Code trunk. I have recently modernized the Xcode project for Xcode 4.3.1.
svn checkout http://parsekit.googlecode.com/svn/trunk/ parsekit-trunk
Make sure you do not have the ParseKit Xcode Project window open. This is an issue in Xcode up to version 4.3.1 (and maybe later, not sure).
Create a Mac "Cocoa Application" Project named "MyApp". File > New > Project…. (You may have already created your app. That's fine. Then skip this step.)
Drag the ParseKit.xcodeproj file from the Finder to the very top of the Project Navigator in the "MyApp" Xcode Project window. NOTE: make sure you drop the file at the very top of the Project Navigator tree. Otherwise it will not work.
Xcode will present a dialog: "Do you want to save this project in a new workspace?" Click "Save" and name the Workspace something like "MySuite".
Select the "MyApp" Project in the Project Navigtor.
Select the "MyApp" Target in the "Targets" list.
Select the "Build Phases" tab.
Click the disclosure triangle next to "Target Dependencies" to open the list.
Click the "+" button at the bottom of the list.
Select "ParseKit.framework" from the resulting dialog and click "Add" to add ParseKit as a dependency of your target. This ensures ParseKit is built before your target.
Click the disclosure triangle next to "Link Binary With Libraries" to open the list.
Click the "+" button at the bottom of the list.
Select "ParseKit.framework" from the resulting dialog and click "Add".
Click the disclosure triangle next to "Link Binary With Libraries" to open the list.
Click the "+" button at the bottom of the list.
Select "ParseKit.framework" from the resulting dialog and click "Add".
See "ParseKit.framework" in the "Link Binary With Libraries" list.
Click the "Add Build Phase" Button, choose "Copy Files" in the popup.
In the new "Copy Files" build phase, select "Frameworks" in the "Destination" popup.
Drag "ParseKit.framework" from the Project Navigator to the list in the new "Copy Files" build phase.
In MyAppDelegate.m, import the ParseKit header:
#import <ParseKit/ParseKit.h>
In -[MyAppDelegate applicationDidFinishLaunching:] do:NSString *g = #"#start = Word+;";
PKParser *p = [[PKParserFactory factory] parserFromGrammar:g assembler:self error:nil];
NSError *err = nil;
id result = [p parse:#"foo bar baz" error:&err];
NSLog(#"%#", result);
Build and run.
For more info on this topic, see:
Apple's docs
Chapter 16 of Mastering Xcode 4 by Joshua Nozzi
Open your project in Xcode 4
Make sure Project Navigator is shown
Ctrl click on your project file (the blue page icon)
Select Add Files to "YourProjectName"
Select ParseKit.xcodeproj
In Project Navigator select your project file
Go to Build Phases
Disclose Link Binary With Libraries and either add ParseKit.framework by clicking + or drag'n'drop it from Project Navigator's Products directory of ParseKit.framework
Add Copy File phase by clicking bottom right Add Build Phase button.
Set destination to frameworks
Repeat 8, but for new build phase
You may also need to add Target Dependency: repeat step 8, but for this phase. But looks like Xcode can sort out them itself.
I also recommend you to create a Workspace, it makes managing of subproject much easier and looks like this fixes most part of potential problems, because if Xcode fails to resolve dependencies, you can always add script to copy files manually, since products of projects will share the same build directory.
I managed to do this using cocoapods. Try that if your stuck still
Developer of ParseKit here.
I'm sorry I don't have a good answer for you. I have some outdated docs on how to use ParseKit in your iOS application using Xcode 3.
However, I've just tried to go through the process of embedding ParseKit.framework within a Mac OS X app using Xcode 4, and I honestly could not figure out how to do it in Xcode 4. I am baffled.
What I can say, is that embedding ParseKit.framework in your Mac app should not be very different from embedding any other framework in your Mac app. There's nothing particularly special or unusual about ParseKit in this regard. The problem is I just can't figure out how to do that at all in Xcode 4.
Here's Apple's documentation on how to do this:
Embedding a Private Framework in Your Application Bundle > Using Separate Xcode Projects For Each Target
Unfortunately, Apple's docs are also out of date, and also describe the process in Xcode 3.
I have asked a question here on Stack Overflow to try to solve this problem.