Before I upgraded Xcode and the iOS SDk to 3.2.5 and 4.2 respectively I could select text in Xcode, right click and and select find text in documentation, and it would go to the corresponding place in the documentation, however now if I do that it asks me to sign in with my apple ID, and then it tells me I'm not authorized? However I can access the documentation in a normal web browser like chrome, it's just irritating to not have the convenience of selecting and right clicking. (NB I'm not a paying 开发者_StackOverflow社区developer, but I never have been)
Why is this? Is it only me? and how do I fix it?
Here's a hacky but working fix, inspired by http://www.iphonedevsdk.com/forum/iphone-sdk-tools-utilities/66298-unable-access-sdk-documentation-since-upgrade.html:
Open the file /Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_2.iOSLibrary.docset/Contents/Info.plist
Change the DocSetFallbackURL value from https://developer.apple.com/library/ios/prerelease
to http://developer.apple.com/library/ios/
.
Relaunch Xcode, and voilà.
If you open the URL from DocSetFeedURL (in the same Info.plist) in Safari, you can download a .xar file of the documentation. Not sure what that file is, but I'm currently downloading it...
I'm a dev, also, but am blocked from accessing online documentation with "index.html is locked. Do you want to unlock it?" Type and it states that the file cannot be unlocked and suggests saving a local copy.
Here's what I see in the .plist file:
https://developer.apple.com/library/etc/redirect/xcode/ios/606
So, in short, access through Safari (inconvenient while working in Xcode-- contextual access not available-- or just download the files as suggested above.
If you're not a paying member of the iOS SDK program, then you can't access the online documentation via Xcode. Since you have the SDK, I would assume you are, so you may just be stumbling over a bug. In any case, you should open up Xcode Preferences and navigate to the Documentation tab (on the far right). By opening up this tab, Xcode will shortly attempt to download the full docsets that you are missing. You can tell this is happening because the right side of the rows will switch to saying "Getting...". You can also open the Activity window (in the Window menu) to see the progress of the download/install.
精彩评论