Restrict 'Open Quickly's scope to currently open project in Xcode? - ios

CMD+Shift+O ( ⌘⇧O ) brings up the 'Open Quickly' feature of Xcode. Much like CMD+T in Textmate & Sublime Text 2. Its scope of search seems to include system headers outside of my project.
Is there a way to restrict this scope to the currently open project? I can't find anything in Xcode preferences. This feature would be much more useful if this were possible.

Quick open lost its value to me. What you can do until the bug is fixed / scope can be specified:
Use: Cmd + Shift + J
Then type the file you want to 'Quick open'. This is restricted to the files in the project Navigator.

I suspect that the scope is based on which navigator is currently chosen. When I start getting weird results, I go select the project navigator, then try again and get the results I expected.

Related

Xcode How can I get a list of all misspelled words in a code?

I have enabled Spelling and Grammar feature in Xcode and it works fine for a current document. Now, I would like to show all warnings in Issue Navigator. Is it possible?
It's not possible. Check Spelling and Grammar feature only works once you have a document selected. There is no such feature to scan the whole XCode project and list all warning in Issue navigator

Android Studio 3.0 - SDK path not specified

I tried to update Android Studio to 3.0 but got some crazy error, so I uninstalled AS and installed AS 3.0, but now when I try to open a file, I get an "SDK path not specified" error and nothing I select is accepted.
I cannot find any file called "android-sdk" or something similar, which is what most of the other solutions on Stack Overflow suggest selecting.
How do I fix this?
Right now I'm trying this, but no clue if it will help:
1. I went to File -> Settings -> System Settings -> Android SDK
2. I specified C:\ProgramFiles\Android and it's installing.
UPDATE: This more or less worked. I had to install a million updates afterwards, but it solved the problem.
This is halfway there. I found going through the File -> Settings tree that even though I hadn't selected NDK (Native) options, the folder names must not contain spaces. I created an Android/SDK folder tree on a spare drive all its own to alleviate this concern by AS.
Then without a space in the name, I was able to choose SDKs to download, and so it has begun.
Your question and self-confirmation of a work around got me there after I, myself was looking for a couple weeks. Thanks
This is the MOP (Method of Procedure) for this:
Took me a while to figure this out as the documentation is not clear on this at all. Cancel the dialogue box asking for the Android SDK path and do the following:
Open Android Studio IDE. Find the down arrow icon, should be second last icon in the toolbar. Click that. You will see a path for Android SDK Location:. Click the edit link to the right of that. This will bring up the SDK Components Screen. If you can check the boxes there, check them. They may already be checked or they may be disabled. You can leave the path as is, for me its:
C:\Users\<user name>\AppData\Local\Android\Sdk
Depending on whether you had Android Studio before it may say it has detected a previous version and it will only download the components it needs. This is normal. Now click the NEXT button. A confirmation screen will come up with Setup Type and SDK Folder. If you want to change your SDK Folder this is your last chance, if not, click NEXT again.
It may bring up a Terms & Conditions screen, click the Accept radio button then NEXT. It will go and download the Android base SDK. When it's completed click FINISH.
You will then be taken to the Platforms screen where you can select which Android platforms you want to support. ie, Android 9.0 (Pie), Android 8.1 (Oreo). Select all the platforms you need then click APPLY.
The downloader will grab all those packages for you. Next, click the SDK Tools tab. Check the boxes of the tools you want and click APPLY. It may bring up a Terms & Conditions screen again, click the Accept radio button then NEXT. When completed just click FINISH and you're good to go.

Localizations files not available on Xcode 6

Well, I received this project from a buddy that used to work with me and now I am responsible for it Internalization. I need to transform the language of the app to English, that is currently Portuguese.
Although i was researching for some tutorials but all of them include one step i cannot make. I have noticed there were no files localized in any of the languages, and no folders .Iproj too.
In the info tab > Localizations shows up, in each language added in my "Resources" Tab, "0 Files Located".
as Soon as i click "Use Base Internationalization" or the "plus" button there is no file i can reference it to.
I need to follow with this project and cannot create another one, there is lots of code and configurations that need to stay in this one. Is there any solutions?
Thanks!
PS: StackOverflow won't let me post images yet :(
Have you ever visited this panel?

Hide Swift documentation in Xcode help viewer

When I browse online iOS docs for classes, it has an option to show swift, obj-c, or both. I have mine currently set on obj-c (I peek at Swift from time to time, but in my day to day work, it just clutters the docs).
Is there a way to do similar in the integrate help viewer for Xcode 6? Every time I browse a class document, I have to mentally filter out all of the swift variants.
The documentation is just a set of HTML files. If it's downloaded, you can edit a CSS file to completely hide Swift or Objective-C code.
Open Documentation window.
Select "Editor" > "Share" > "Open in Browser" menu.
Copy the corresponding part of the address of the page that opens up:
/Users/XXX/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.XXX.docset/Contents/Resources/Documents/
Switch to Finder, and use "Go" > "Go to Folder" menu to open up the folder.
Browse to Resources/XXXX/CSS folder and edit "xcode5.css" file. You should add either of these blocks to hide Swift or Objective-C:
div .Swift {
display: none !important;
}
div .Objective-C {
display: none !important;
}
Restart Xcode and enjoy reduced clutter.
One way is to choose Editor -> Share -> Open in Browser. You can also make a shortcut via Preferences... -> Key Bindings or the Keyboard System Preferences.
It still opens Safari, but it is just one step, so it might be a good solution to your problem.
I navigated to the bottom of those folder trees, located the files specified (one for iOS docs, one for Mac OS X docs), duplicated each file for a backup (command D in Finder), opened each file and pasted :
div .Swift {
    display: none !important;
}
at the end of each file.
Rock and Roll! Thank you pointum, you made my day.
Ref: My file path was like this. Note that your path may differ by the number just before the /CSS/
Mac OS X Documentation File (yours may differ by the 1058)
~/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.OSX.docset/Contents/Resources/Documents/Resources/1058/CSS/xcode5.css
iOS Documentation File (yours may differ by the 1081)
~/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.iOS.docset/Contents/Resources/Documents/Resources/1081/CSS/xcode5.css

How to specify application data package in Xcode Schemes?

I'd like to specify an application data package using Xcode schemes so that I can customize and deploy to the device during testing. However, by default, the Scheme | Option | Application Data combo box has no items in it.
I guess I would need to create the package and add it to my xcodeproj. But I can't find any documentation about this, not even in the bulky book Xcode4 Unleashed. I also tried to build for Archive first. But after that still "No Data" under the Option page.
Easiest way I know is to go to the Organiser (apple shift 2), and then find a connected device.
Go to applications and select the application you need app data for and hit download. This is going to dump some of the sandbox data into a package on your dev machine.
To use this in the scheme, you just need to add this to your project, and then it will show up in the drop down.
As far as I can see, there isn't a way to choose what data to put in the xcappdata file, but since it is a package, you can open it in the finder ( show package contents) and get rid of anything you don't want.
Hope this helps

Resources