Xcode not autocompleting Parse methods - ios

I'm using a lot of parse method/blocks like the one below.
[self.currentUser.profileImage getDataInBackgroundWithBlock:(nullable PFDataResultBlock(nullable )block]
Xcode used to autocomplete these blocks. Is this something that was broken with the last xcode updates? Is anyone having this problem and how did you fix it?
Thanks for the help!

Related

How to solve String interpolation produces a debug description for an optional value in XCode 8.3 without any changes in code

I have updated the xcode 8.3 version and started getting the warnings shown in the image. It is asking me to change the code by providing the default values in the string. But the problem is that there are so many places in which this warning is. So if any one know the proper solution for solving it without any changes in code. Please let me know. Any help will be appreciated.
Thanks
Try to use the the Fix All in Scope option in the Editor menu.
Image source: https://stackoverflow.com/a/34571527/1283228
I'm not sure if it can fix all the errors and warnings in the project at once, but you should be able to fix all warnings in a file.

Swift Obj-c Model

I would like to see a Objective-c model in swift. But I have this problem:
I can´t display the content although it´s right.
Any ideas?
Thank you
Apparently I'm not doing anything wrong, it's failure xcode.

Can't see debug info Xcode 6.4?

I think I've accidentally removed some kind of setting or something on a project level. In project A I can see debug info, but in project B I can't see a damn thing while debugging. Local variables can't be expanded to see what they contain, and neither variabels located in self.
As stated earlier, it works fine in one project, but not at all in another. I have no idea what I've done, or how to solve it. I asked around with a few coworkers and none has experienced this before. Kind of need to fix this in order to work efficiently.
Here is a screenshot displaying what I mean:
I don't have any variables in self here, but if I add some or store some, it doesn't work anyway. I can't see anything in self since I can't expand it at all.
Help appreciated!
I found the solution for this. Or rather I found the issue. The issue seems to be with either Xcode 6.4 and above, or GoogleMaps in general. When importing GoogleMaps SDK the debugger stops working properly. Simple as that. Comment out your import of GoogleMaps SDK and the debugger will be back to normal.
Another way of solving this is to bridge GoogleMaps SDK from ObjC to Swift rather than importing it in Swift. I didn't try this, but I saw this as a possible solution here: https://code.google.com/p/gmaps-api-issues/issues/detail?id=8524
Hope it helps someone. Took me days to find this information.

UI controls not getting recognized in Swift Playgrounds

I am trying to declare some UI controls in Swift playground but the playground is throwing a error as invalid object.
I think none of the UIKit elements are getting recognized. And I have tried creating a new project and adding the playground file but even this did not work out. The xcode version being used is 6.4.
I have already gone through these(links),
link1 and link2
but didn't really help me to solve this issue.
Can anyone help me out to solve the problem?
Thanks in advance :)

XCode 6.3 autocomplete not working

I'm learning basics of Objective-C and using XCode for writing code.
As you all know autocomplete option is perfect for new users that don't know (or remember) name of functions.
I have a problem with using autocomplete in XCode 6.3 couse its just.. not working - it is not showing anything or showing things that are not connected.
For example I just wrote simple few lines of code gusing NSMutableArray and NSEnumerator, when I'm trying to remind myself function/message 'nextObject' of NSEnumerator, XCode is not suggesting anything.
Here is a pic to show it:
Am I doing sth wrong or there is a way to fix it?
thanks in advance!
It must be a temporary glitch. Happens to me almost all the time while Xcode is "indexing". You might be typing too fast and by the time Xcode gives indexing a break and looks for the auto-completion you might have types something for which there is no method (or something that you expected)
Also, for custom classes & method, make sure you have included the respective header files.
It seems that autocomplete does not work when there is an error in the code.
The reason for autoComplete not working can be anything. Do any one of the following to debug it
Check if there are errors and if so try to solve it and then check autoComplete. If any error is present in any of the line then autoComplete will not work for below code. Try autoComplete above the error incase you want to check.
If debugger does not throw any error then try commenting out the all lines and uncomment it from top to methods to recheck the autoComplete
Quit Xcode and Reopen it
Clear Derived data and then launch Xcode and check

Resources