XCode Documentation - Offline Reading - objective-c

Is it possible to have the iOS and OSX documentation available for offline reading? If so, how?

The Documentation for iOS is no longer a part of SDK for offline reading - looks like you need to install from preferences of XCode, select Documentation preferences - click get next to 'iOS 4.3 Library Documentation' to install it.

As of Xcode 5, you can choose to download sets of documentation under Preferences\Downloads Tab\Documentation.

Go to Xcode's documentation preferences, and make sure that any documentation set you're going to need offline doesn't have a Get button next to it. If it does, click the button to download the set while you're online.

A lot, if not most, of the online documentation has a link to a PDF of what you're reading in the top right of the window, underneath the Search icon.

As of Xcode 7+, you can find the download for the documentation in Preferences > Components.
You have to download documentation for every OS (macOS, watchOS, iOS, tvOS) separately.

When in XCode press ⌘ + ⌥ + ⇧ + / then start searching for methods or classes you're interested in.

Related

Weird Shortcuts problem on iOS 15 and WatchOS 8

I have an app which allow users to create shortcuts for it. It worked well on my iPhone and my Apple Watch until I upgrading my devices to iOS 15 and WatchOS 8.0
It keep asking me "Allow *** to share data with (null)" every time even after I said "allow"
I googled but only found one post who had the similar problem
https://forums.macrumors.com/threads/shortcuts-to-web-open-in-chrome-bug.2312693/
did my own tests and created a new Twitter “What is happening” shortcut on my iPhone, it always ask me “All See what’s happening” to share data with (null)” just like what happened to our watch app on an Apple watch (WatchOS 8 )
I used the same Twitter shortcut too on my Apple Watch and first time it asked the same question then it shows “Can’t send data to (null)” for the second time.
I guess it is a new system bug but I am not sure.
Does anybody have a clue about how to solve it? Thank you!
I know how to fix this! If you go to your shortcuts and change the browser in the action to safari it will stop displaying the prompt. The browser that opens will still be chrome as long as you have it set as your default browser.
This is an iOS bug which seems to be fixed in the latest iOS 15.1 beta 3 release.
You can either install the beta — if you have access to it — or wait for the final release of iOS 15.1.
In settings > Privacy > HomeKit I disabled the toggles for the apps eWeLink, Mi Home, Smart Life and Tuya Smart (The shortcuts of the apps which showed this popup in my apple watch)
After that this popup appeared only once and after clicked allow, This annoying pop up stopped appearing for my shortcuts in apple watch.
Update:
You can enable the toggles in settings > Privacy > HomeKit after allowing the first allow prompt for shortcuts in Apple watch. After enabling HomeKit toggles again Apple watch shows this "Allow to share data with (null)" only once for shortcuts.

IKImageView move tool not working in Mojave

My app Plumb-Bob is based on the IKImageViewDemo:
https://developer.apple.com/library/archive/samplecode/IKImageViewDemo/Introduction/Intro.html#//apple_ref/doc/uid/DTS10004049
I compile it for MacOS 10.10+ and in my tests I noticed that the "move tool" is not working at all in Mojave (10.14) while it does as usual in the previous systems.
Since I have strongly modified IKImageViewDemo for my purposes, I have downloaded it again to make some test (see link above).
When build and run IKImageViewDemo I have verified that it has the same behavior:
On MacOS 10.14 the move tool shows its open hand cursor, but, when dragging, the image is not moved at all.
On older MacOS, it works like a charm.
I did not find any updates, deprecations and changes on IKImageView framework in 10.14, searching at Apple Developer's docs.
Can anyone address me to the solution, it is very important, in my app, to move around the zoomed image.
Thank you in advance

Integrating custom Docset from SDKs into Xcode 10's Documentation window

I have bundled a framework/SDK from Philips Hue written in Objective-C into my Swift project. The code of the SDK is well in-line documented. Thus, I have fired up appledoc and created a custom docset: appledoc --project-name HueSDK --project-company Philips --install-docset ..
The target was to implement it directly into Xcode's Documentation window:
I have realized that this is not working anymore in Xcode 10, whereas reports show that it was working for older Xcode versions (<8). This is quite a pity as Xcode very often directs the user to the Documentation window, e.g. clicking on a link within the Quick Help Inspector:
Do you know any possibility how to integrate custom Docsets into Xcode's Documentation window?

Where can I find an iPhone simulator for Xcode 3.1.4

My kids want to learn to write apps on their MacBook which currently runs OS version 10.5.8.
I have downloaded Xcode 3.1.4 but it doesn't seem to have the iPhone Simulator.
Does anyone know where I can find this?
(And are their better tags I should use for this question?)
Thanks.
(UPDATE: I down loaded the " xcode 3.2.6 & ios sdk 4.3" dmg file from Apple in the hopes of accessing just the "iPhone simulator" but repeated attempts to open the .dmg file on my OS10.5.8 Macbook result in a complete, "blackscreen" crash.)
I am really very sorry because this is not straight to your question. But if I were you, I'd like to encourage them to start with Android. To me, an open-platform is more preferred. Beside that, Java is a strong/ dynamic language when comparing to C/C++.
Android developer site
Eclipse IDE
Android SDK
ADT plugin for Eclipse
API guides
Training videos
Hope they will like :-)
Are you sure the simulator was not included? One thing to remember is it won't be shown with xcode in your applications folder.
To use the simulator you have to launch it from xcode by pressing the play button in the top left corner of the interface. If you have already used xcode with an iPhone/iPod/iPad make sure you select simulator from the drop down next the play and stop buttons(press and hold to change what is selected).
If you want to make sure you can access the simulator without xcode, launch the simulator as described above and then right click(or ctrl click) the icon for the simulator and select keep in dock from the options menu.
Hopefully the above helps you with your problem. If xcode truly did not come with the simulator your best option is to uninstall xcode(after backing up any projects) and trying a fresh install. Also try checking Apples dev center (https://developer.apple.com/devcenter/ios/index.action) for information about xcode and the simulator.

Interface builder is unable to open documents of type iPad XIB

I got a application from my teammate, and it is for both iphone and ipad devices (which it is developed under iPhone SDK 3.2).
I have iPhone SDK 3.1.3 installed in my mac book. When i tried to compile the application for iphone simulator i got the following error.
Interface builder is unable to open documents of type iPad XIB.
The above error is for interface builder created for ipad.
My Question is we can't compile the application on iPhone SDK 3.1.3 which the application developed under iPhone SDK 3.2?
Please shed some light of this?
thanks
mindus
Go to your project settings, and delete the line that says Interface Builder Plugin search path or something similar.
the exact line in project.pbxproj is: IBC_PLUGIN_SEARCH_PATHS = "${PROJECT_DIR}/**";
Short answer
Temporarily remove the iPad xib when working with the 3.1.3 SDK. Put them back when you go back to 3.2 and above.
Longer answer
This cropped up for me when compiling against 3.1.3. You can use conditional compiling to get code user newer features to build successfully (see Matt Gallagher's helpful post on conditional compiling).
There may be a smarter way to tell the compiler not to look at the iPad xibs. For testing on the 3.1.3 simulator I simply made a copy all my iPad xibs and then removed them from the xcode project. When going back to my current development set up, you have to put them back. It's a bit of pain, but not that fiddly.
To fix this:
Press Command-1 to go to the project tree
Select your project
The in the right panel select your project, and then click on "Build Settings"
In search field just below the "Build Settings" enter: "Overriding Plug-In"
Now, the only visible setting left should say "Overriding Plug-In and Framework Directory"
Double-click the value and remove all entries using "-" button
Click somewhere else so settings are saved
That should fix it