It's really weird for Xcode (Version 8.1 (8B62)) to act like this, not helping me to auto complete the callbacks, let me give you a specific example:
See the photo, when I double click or enter in that suggested call back, which is the SingleRequestCallBack, Xcode should give me a block. But it's not. Instead Xcode just completing that statement which is FirebaseSingleRequest.SingleRequestCallBack, and if you double click on the suggested call back, Xcode would give you a bug report in your editor and making all the codes white.
That happens too in the Firebase library and even in the UIViewController functions (such as dismiss). See the second screenshot.
Steps I already made:
Clean and Clean the Build of the project.
Restart Xcode
Shut down the machine.
So the question is: How to fix this? What causes this issue?
Related
When I run the project and add the app in simulator for the first time, everything is okay. But when I run it again, Xcode prompts this message as a pop-up window at the end of compilation:
This app could not be installed at this time.
I already checked the relevant question, and tried all the advised ways to solve this issue; checking mentioned logs, cleaning project, restarting simulator, changing it, erasing all content and settings in it. Nothing works. I must erase the app and recompile it every time to open the app. Did you get the same message before? Is there any way to detect problem and resolve it? Btw, I use Xcode 9.2 at High Sierra.
This error pop-up may come up for different reasons. There is no specific reason to see it for now. In my case, a JSON file that I added to Bundle in order to provide mock data triggered this issue. This file was containing a Turkish letter in one of the keys. After I fix it, the pop-up is gone. Interestingly, earlier simulators (<=9.1) work properly if JSON file contains Turkish letter but 9.2 simulators cannot tolerate it.
Worked for me when I rebuild the project after deleting the derived data folder.
I think I may have found a solution. This all started a short time after I let Xcode update my project settings. Specifically on my CocoaPod-Subproject. I removed the pods and reinstalled them and now I am no longer getting the pop-up.
I am not experiencing the autocomplete problem described in every other post. Normal function autocomplete works just fine. My issue is the version of Xcode I am running (6.1, Swift) will not autocomplete / auto-suggest any basic program statement (if, for, switch, do, etc.). If I type "if" for example, after a few seconds the suggestion menu pops up; however, there is no documentation in the window which would normally describe a statement's function (while at the same time presenting an auto laid-out example to fill in).
If I try a project in the same version of Xcode in Objective-C, these basic program statements complete just fine.
I have already:
1) Make sure my Settings are set to auto-suggest completions
2) Make sure I have cleared DerivedData and everything else suggested in previous posts
3) Reinstalled Xcode & restarted Mac countless times
4) Downloaded all latest "iOS 8.1, Xcode 6.1" documentation from "Xcode -> Preferences -> Documentation"
This used to work!! Arrgh. Any suggestions? Thank you.
Upgrade to Xcode 6.2 and clear your derived data. It should fix the problem.
The topic has raised several times within the last weeks. Till now I haven't found a proper solution. Is it just a momentary Xcode bug or is there more behind it?
Scenario:
In one of my projects autocompletion has stopped working when I last opened it. Other projects are not affected. It looks kind of reasonable that once this problem is around, I also can't cmd+click the different classes imported by UIKit anymore like UIViewController or protocols like UITableViewDataSource within this particular project. An error pops up "Symbol Not Found". So in a way, even though it is working fine when running the app, it is just not available from inside the files.
Restarting Xcode, deleting derived data etc. hasn't brought me any further so far.
Any ideas? Or - like mentioned - really nothing else than just a bug?
I don't know which part exactly was the key issue but
Installing Xcode 6.1
Downloading iOS 8 libraries & Xcode 6 libraries within Preferences
solved the problem.
Setting active scheme works for me.
You have to select proper device corresponding to your installed components.
XCode 6.1 has iOS8 primary, so you have to select iPhone6 or Resizable iPhone, if you select iPhone5 it couldn't find it.
(project name>device) on the right of the 'Stop running' button
I just set up a new PhoneGap project for android, which worked perfectly fine without any problems, there were almost no changes to the template project.
Then I wanted to move that exact project to iOS, and the woes began.
When I start the project, suddenly a bunch of alter dialogs pop up, with device information, network status. Each offer me "ok" and "cancel". When I press "ok" on any of them, execution is halted, and nothing happens further.
When I cancel them all, I get to the project screen, where it says "connecting to device". Obviously, deviceready is never fired on this.
Since this project is merely the template offered by Cordova themselves, I find it hard to believe it is not supposed to run. I suspect the console.log messages get popped up on screen rather than the XCode debug window.
I am completely new to XCode or any iOS programming (hence PhoneGap), and I would appreciate any help.
Using Cordova 2.8.1.
Reason was I mistakenly copies the cordova.js for android into the ios project, see here.
I've recently updated my XCode from 4.2 to 4.6 as I had an outdated iOS SDK.
However, after performing the update, When I try to run the app and press buttons, the iPhone app freezes, and returns me back to the XCode window with the errors. These are errors I have never seen before, as the App was working perfectly fine before the update. As I have never seen these errors before, I do not know what Information is needed for this error to be fixed. If I need more than these screenshots, please do tell.
What can I do to fix these errors?
I don't have the rep to post pictures, this is why I am just posting the links.
http://imgur.com/DIorBXp
http://imgur.com/t7DrRwA (One of the threads)
If the app freezes after you try to press a button then I would assume it's a problem with the linking between your an IBAction function and the onclick event of the button.
Unless I'm misunderstanding the issue, try setting a breakpoint in the function that's called when the button is cliked.
Beside suggestions of nchinda Check "Enable Zombie Objects" under Edit Scheme as this will report issues caused by bad excess or pre-releasing of an object, and check the Logs for issues. Also set break points on your IBAction to inspect more.