Developer Documentation in Xcode 3.2 - a step back or is my installation screwed? - iphone

I've upgraded to Snow Leopard and Xcode 3.2 but now I don't get the usual Developer Documentation any more. When I click on 'Developer Documentation' all I get is the Xcode QuickStart guide. No search field, no browsing the library, nothing. Only if I cmd+opt+shift (?) double click on e.g. NSString the API documentation of NSString comes up. But again, no search field, I can't browse the library etc.
I can't imagine that this is the normal behavior. I've already tried to deinstall Xcode and reinstall it again - same result.
Any idea of what might have gone wrong?

The "Home" button in the documentation window's toolbar (is your toolbar hidden, perhaps?) will list the documentation sets you have installed. You'll want to install them from the "Documentation" page of Xcode's preferences window, it's the last one.
Yes, this is slightly annoying that you have to take the extra step, and it's very nonobvious where the extra step is.

In 10.6, Xcode relies entirely on the web to retrieve developer docs rather than having a local copy. Have a look at this blog post; it tells how to grab the documentation files off of Apple's servers and make them available locally on your machine within Xcode.

Related

Core Location Simulator on Xcode 4.2 Not Working -Any Clues?

I checked all the other variants of this, and don't see the answer here. It seems a lot of folks are thinking of Xcode 4.1, and the issues therein.
First of all, I am very happy with Xcode 4.2. It fixes the huge plethora of problems I was having, and, once again, makes the simulator a useful tool. I am very glad for this, because it is a MUCH faster workflow than using the devices.
Now, 4.2 introduces something in their Edit Scheme dialog (Go to the "Run" page, then "Options"). This is called "Core Location [checkbox] Allow Location Simulation". It allows you to pick from a list of pre-defined locations.
This seems to obviate the horrendous hack that I had introduced when I first encountered the issue in Lion.
However, it no workee. I'd like to find out what I am doing wrong. Has anyone gotten this working?
Remember: THIS BEGINS IN 4.2, WHICH JUST CAME OUT YESTERDAY. So the rules from 4.0 and 4.1 don't apply. It is a new capability.
Thanks!
First, I created the GPX file as mentioned in this question.
In addition to updating the Run Scheme to select the Allow Location Simulation option and specifying the Default Location as you mentioned, you also need to make sure that your Scheme is set to iPhone 5.0 Simulator. This made the trick for me, when I debug my project, the app asks me if I want to allow it to use my current location, and I can see the Debug -> Location menu in the iPhone Simulator.
There's a thread on this bug in the Apple developer forums. One suggestion is to reset the simulator.

Configuring Your App For OpenEars in xcode 3.2.6

i configured the Openers successfully with the help of this link. http://www.politepix.com/openears/configuring.
however they are documented "Configuring Your App For OpenEars" only in Xcode 4.
i am using xcode 3.2.6 cant able to use Openears library in my application using this document .may i knoe any other document links to explain "Configuring Your App For OpenEars" only in Xcode 3.2.6.can any one help me please.i stuck in here in the document.cant able to do this process in xcode 3.2.6.this following steps i can do with xcode 3.2.6...please help me
steps that i cant do in xcode 3.2.6
Step 2: From Xcode, select your blue project icon for your app (not the OpenEarsLibrary project) in the Project Navigator and select its target under the TARGETS header in the left-hand column in the editor. Navigate to the tab Build Phases. Click “Target Dependencies”.
Click the plus button for Target Dependencies. Then select the gray OpenEarsLibrary icon in that dialog and click “Add”.
Step 3: In the same view, with the app target still selected underneath the header TARGETS in the left-hand pane of the editor window, navigate to the Build Phases pane and select “Link Binary With Libraries”
Tapping the plus button, add the OpenEars framework libOpenEarsLibrary.a found in a folder at the top called workspace
please help by converting the above step according to the xcode 3.2.6
Go to this page: http://www.politepix.com/openears/gettingstarted and find the phrase "It is still possible to download the previous version of OpenEars and its distribution contains instructions for Xcode 3 which should be very helpful for figuring out how to install current versions of OpenEars in Xcode 3". Download the previous version of OpenEars that is linked in the phrase "download the previous version of OpenEars".
Inside this download are the entire instructions for installing that older version of OpenEars in Xcode 3, saved as PDFs. The steps in the PDFs are not all the same as the instructions for the current version, but the part about linking the library (the specific part you are asking about) is still exactly the same. This explanation is in the PDF called "Configuring Your App For OpenEars.pdf" starting on page 4.
Wondering why you are still using Xcode 3 but what you need to do from memory is look for the root level targets expander icon in the tree. It looks like a red/white archery target and was usually after the resources folder. Expand it and right click what will probably be the sole target for your project. From there you will be offered the similar opportunity to add build phases.
If that doesnt exist in the contextual menu have a dig around in the Properties section for the target. It might be one of the tabs to add link dependancies.

There is no SDK with the name or path "iphoneos4.0"

I download a sample of UICatalog and run it.When I compile it ,it shows the failed message:There is no SDK with the name or path "iphoneos4.0".I find the "Base SDK" of UICatalog's Targets is iphone Device 4.0(missing).How can I solve this question and run it.
Thank you!
Select the root level of the project, in "Groups & Files". It's blue. Then hit command-I to get its Info.
Pick "Build" from the segmented controller at the top of the info window. In the first section of that panel you'll see Base SDK as one of the first few lines of options. Select the latest version of the SDK you find in there, and close the window to save your options.
Build-and-run the project, and you should be good to go.
EDIT, because I see from the comments that people are finding this answer who have a slightly different question than the OP's, so here's one other thing to try. It could also be you have "iOS Device" selected as your build target. If so, and if what you really want is for it to launch into the simulator, select "Simulator" instead.
After loading the project into XCode..
Under Groups and Files
right click on UICatalog<-(or your demo project name) and select Get Info
in Base SDK select IOS Simulator 4.1
Close and save info pane
expand Targets exposing UICatalog<-(or demo project name)
right click on UICatalog and select Get Info
in Base SDK select IOS Simulator 4.1
Combo box in UICatalog project pane (upper left corner) should switch to "Device - 4.1 | Debug" instead of "No Base SDK"
if you Build and Run at this point you might get another error. If so, open the UICatalog combo and switch from Device to Simulator
The "official link" mentioned above states…
"Note: Targets can override build settings defined at the Project level. "
..but should probably read "will" instead of "can"
Ok, I've solved it.
In Groups & Files go to Targets and select your target.
Press Ctrl+I (or open the info in some other way)
Set the Base SDK of your target
(The Base SDK should also be set at the project)
Steve nailed it. This is an Xcode bug. I loaded the NavBar sample and Xcode didn't even offer the simulator as an option, and it complained about the missing SDK even though it was set correctly in the project and wasn't set at all on the target.
Do what Steve said:
"The only way I could resolve it (in fact, the only way I could get the option of running in the simulator at all) was to change from debug to release and back. The dropdown still shows Base SDK Missing but if you click it, the simulator options are there and it builds."
My problem was that in the sample code another xcodeproj was embedded. So I looked after that file with Finder, opened it with Xcode and than the same as Dan said: Project -> Edit Project Settings -> Under "Architectures" set Base SDK to "iPhone Simulator x.x" (the latest one you have installed)
I had the same issue with another Apple sample app. The only way I could resolve it (in fact, the only way I could get the option of running in the simulator at all) was to change from debug to release and back. The dropdown still shows Base SDK Missing but if you click it, the simulator options are there and it builds.
I think that's a bug.
Many answers here, none seem to be complete enough about this, and it's all a mess. But they are all helpful. Here, I just want to compile all helpful pieces in one answer. Thanks to Larry (who have almost everything compiled into steps already), Steve, Dan Ray, dkk, geowar and lqf.
This picture from apple is a little decieving and outdated (talking about iOS SDK 4.0 and we're currently at 4.1) but it does show where you should change the project settings. Just select iPhone Simulator 4.0 if it was previously on iPhone Device 4.0.
Other than that, they say "Targets can override build settings defined at the Project level". So, yeah, also go ahead, open Targets and set all of their Base SDK back to default by pressing delete on it. If they were bolded, they'll become regular indicating a default value, which should be iPhone Simulator 4.0 if you did the first step right.
Just realize there are many places where Base SDK can be wrong:
Under Project Info
Under Target Info
Under different configurations for both Project and Target
And that under Target it should be set to default, which is value from Project.
There's still something about the overview combo sometimes having and sometimes not having more than 1 option such as "Device" and "Simulator" that I just couldn't understand yet, but this is another potential configuration place for Base SDK being wrong.
You have to make sure that you change to the "iPhone Simulator" under the project settings in the appropriate configuration (i.e. if you are building a debug build you have to change to the simulator under the debug configuration).
For some reason I was getting this error when I did change the simulator but realized that I was doing a debug build but changed to the simulator under the release configuration and not the debug configuration.
dkk's answer is what made things work for me. I had to change the Base SDK on the target and not just the project. Perhaps you have to do both.
I got a similar error after upgrading my iPhone to iOS4.2.1(8C148a). The situation is as following.
I was using Xcode 3.2.4, but it does not support iOS4.2.1. So I downloaded Xcode_3.2.5_and_ios-sdk_4.2_final.dmg which is 3.78GB requiring 9.53GB to install. Then I ran my ap with Xcode 3.2.5. That is where I got the above error message.
Now it is ok. I solve this based on Geowar's answer:
For the official answer:
http://developer.apple.com/library/ios/#qa/qa2010/qa1701.html
Please be noted that if you have done as Geowar said and the message is still there. Try to close Xcode 3.2.5 and restart it. That is how it works for me.
Another thing is that if you have just upgraded to iOS4.2.1 like me. When you try to load the a/p from Xcode 3.2.5 the first time. Xcode 3.2.5 may still give you "No provision iOS device connected". Please try to go to organizer and click on your iPhone under DEVICES on the left bar. Wait for a while to let Xcode in sync with your iPhone with iOS4.2.1. Then it will work. At least it work for me.
Jesse
Ok, so I struggled through this too. Based on some of the answers above and from the apple development forum, I was able to figure out what worked for me.
In XCODE, if you notice that the pull down at the top left of the window says "BASE SDK MISSING", you are going to get this error "There is no SDK with the name or path “iphoneos4.0”". To fix the problem:
double click on Group & Files in the upper part of the left pane of xcode. This will open a window
go to the Build tab of the new window
click on the row that says "BaseSDK" and select "Latest iOS (currently set to iOS 3.2)
The Configurations pull down near the top should now say "All Configurations". If not, set it.
close the window.
Now if you try to build, you will get a different error, something like: Code Sign error: The identity 'iPhone Developer: x Xxxxx' doesn't match any identity in any profile ...
So, now what you need to do in xcode is to click on the pull down in the upper left corner (the pull down that had the original BASE SDK MISSING indication, but probably has something different now), and make sure that both "Simulator" and "Debug" are checked as options in the pull-down.
now you should be good to go.
I just went Project -> Edit Project Settings -> Build -> then change the Base SDK to iPhone 4 simulator or I'm assuming whichever SDK you want to use.
I never had to specify the build for a given target, although my program was created on a mac that was already configured to use the iPhone 4.0 simulator.. so perhaps the targets were set for the simulator SDK and the project itself wasn't? Either way... just glad it works.
I was having the same problem and what I did to solve it was:
Go to Menu Project
Go to Set Active SdK
Select the option SIMULATOR instead of DEVICE
Build and Run and the ERROR has gonne!
I hope it works for you guys... =)
I just had a situation where I changed the Base SDK to 4.2 on my project after updating to Xcode 3.2.5, but I kept on getting the "There is no SDK..." error. I finally opened the project file (MyProject.xcodeproj/project.pbxproj) in a text editor and looked around. There was no mention of 4.0 anywhere, only 4.2. BUT when I then saved that file, it all started working in Xcode. Perhaps some permission on the file or something else. Have no idea really, but it worked.
I got this error when one of my configurations still referenced an old (iOS) SDK. Note that the error shouldn't have come up when I tried to build a totally different configuration (with correct Base SDK setting), so this smells like an XCode bug to me.
People suggesting that you don't set the base SDK in at target-level have probably never created projects which contain targets for different platforms all in one project file (in my case Mac and iOS targets, so setting the base SDK once in the project file is nonsense advice).

how can i get an offline version of the iphone development handbook?

how can i get an offline version of the iphone development handbook?
If you've already got XCode installed and running, from the menu bar go "XCode->Preferences" to open up the preferences window. All the way to the right is a tab marked "Documentation". In that window is a list of documentation, any thing you don't have locally will be grayed out, but will also have a "get" button next to it. Hit that for any set of documentation you don't have installed and it will download itself.
Once that's done go to "Help->Developer Documentation" and you've got access to the doc's offline.
I believe you can only download it online because of the constant changes being made. Sorry bud.
If you have the SDK/Xcode installed, the documentation set should live on your local drive. If you are looking for something like PDF or what ever, I have no help. There is an atom feed that is essentially a single post with an enclosure.
That's true, all the documentation lives within XCode for that version of the SDK.

Where is Xcode located on the hard drive?

I have looked everywhere but couldn't find it anywhere. I installed it successfully but I don't know where it is installed. Shouldn't it show up at the "start menu"?
I know how to use pc, but this is my new mac mini and I searched the web for tutorials and basic info which doesn't seem to be easily found.
Thank you.
Xcode and the rest of the Apple Developer tools get installed to /Developer
Simply open the Finder (Mac face in bottom left of the Dock) and Choose:
Macintosh HD/Developer/Applications/Xcode.app
Use Spotlight, and just type xcode. You will see it.
I think it installs somewhere under /Developer or something like that...
But you can always use Spotlight to find and start it:
Press Command-Key (the one next to Space with the funny sign) + Space and type xcode. Press enter and it should start.
You might also consider installing Quicksilver, LaunchBar, or Butler — all three are quick-launchers which allow you to press something like Ctrl-Space and type an abbreviation of the app name, so entering 'xc' will get you XCode.
It's the same as you're getting with Spotlight, but you can do other useful things that Spotlight doesn't make so easy: if you've entered an abbreviation for a document, for example, you can hit Tab and enter the abbreviation for the app you want to open it with.
Quicksilver and Butler are free; LaunchBar costs money. Butler has the best icon, IMHO :)
Unfortunately I can't give you direct links as my reputation's too low and I'm not allowed more than one — but you can find them all by searching at http://macupdate.com…