I don't know what's wrong with my xcode. My project could run on my iphone properly (so I guess there is nothing wrong with my project). But in the Xcode editor, I couldn't "jump" to function or variables definition. it shows
this could be fixed by just restarting Xcode.However, after about a few minutes, it doesn't work again...
I already check Xcode 6 Swift code completion not working
But no luck..
my swift version is 1.2, and Xcode version is Version 6.4 (6E35b)
any one help?
Unfortunately the Swift support in XCode is still very buggy. It gets better with every release, but it's far away from perfect.
For me, the only thing that seems to help is to delete DerivedData and restart Xcode.
Related
I have two Xcode in my computer. Xcode 7 and Xcode 8. I work with Xcode 7 a lot because some projects cannot be migrated successfully into Swift 3, and I don't have enough time to go over every errors. But when I have new project, I use Xcode 8.
I remember that I have successfully using Xcode 8 to create a project without problem in the past. Today, I create open that project again in Xcode 8, but there are hundreds of errors. I tried to create new project, and compile. I also get lots of errors. Why is this happened?
EDIT: Anyway, it's resolved now, after I reinstall the Xcode. But that doesn't addressing the problem at all. But I can't reproduce it again now.
Your project is successfully running in my x-code.
Sometimes, x-code issues may be you face like this one. Now you re-installed the x-code so your project is running properly.
When you want to migrate project from swift old version to updated then you face this kind of issues.
I installed Xcode 7.2.1 and it crashes every time I try to type some code, then a box titled "Xcode quite unexpectedly" containing details appears. I uploaded the whole details here:
http://pastebin.com/KZCRntiT
I also installed and older version of Xcode (7.1.1) to see if the problem is due to the version or not, and found that the older version also keeps crashing every time I write some code.
This is not the case for a specific project, it crashes on both current and new projects.
If the other answer doesn't solve your problems, delete the file of ~/Library/Cache/com.apple.dt.Xcode and nuke in ~/Library/Developer/Xcode/ at least DerivedData if not the rest of the files as well. Have Xcode closed when you do it.
I had the same issue. I unplugged all of my devices, opened XCode, and close all tabs individually. I think there was an issue with one of my tabs. Everything is working now.
THIS QUESTION HAS BEEN RESOLVED,CHECK OUT THE RESOLUTION AT THE BOTTOM OF THIS QUESTION IN "UPDATE #5"
I built a rather big form for my iPad application. Up until recently, I did not have any issues. However, for no valid reason (at least, none that I could think of), a big part of my table is blank. The elements are still there, they can be seen in the Document Outline pane.
When I run the application in the simulator and on my iPad, everything shows up. However, I need to modify the contents of the table (adding and editing cells) but I cannot now.
Here's what I see in Xcode:
The elements are clearly there, but I cannot access them.
When running the app, this is the screen I get:
I am working with a team on this, using Github to sync our code.
I have a small feeling that it might have something to do with a corrupt Xcode installation, but I would really like your opinion on this one.
I am running Xcode Version 7.1 (7B91b) Xcode Version 7.2 (7C68).
Thank you for your help.
Update #1
Forgot to mention I'm running OSX El Capitan 10.11.1 on a Macbook Pro mid-2014.
Update #2
I should let you know I started this project on Xcode 6 and it worked well with Xcode 7. Could this be an issue going from Xcode 7 to 7.1?
Update #3
I finally opened a bug with Apple concerning this situation. Their response was that the bug was fixed in Xcode 7.3 beta 1. I replied that it wasn't fixed, and they ended the conversation by claiming this was a duplicate of another bug. I would only hope that they fix this in 7.3, it's really getting annoying having to cycle through Xcode versions.
Update #4
Apple released the latest beta of Xcode 7.3. In the release notes, they say "UITableViewCell objects that extend below the bounds of a UITableView now draw correctly when scrolled. (23242098)". So let's see if this is the case. I will update accordingly.
Update #5
I just tested out the latest Xcode 7.3 beta, and the bug has FINALLY been fixed! Thanks to anyone who helped in this matter, truly appreciated!
Is it working with an older version of XCode ?
Have you tried to clean your project (Cmd + k) ?
There are recent updates for Xcode 7.1, maybe try to do it.. (or 7.2)
My temporal solution :
In your storyboard
open the left panel component
Pick the last section and put it
on the top
close Xcode
now you can edit
reverse the
process
:X
I just tested out the latest Xcode 7.3 beta, and the bug has FINALLY been fixed! Thanks to anyone who helped in this matter, truly appreciated!
Hopefully it stays this way.
xCode 7.2 has fixed the issue.
I've been running Xcode with no issues, and all of a sudden playground sticks on Running Second, as seen in the image. Occasionally Xcode "stops" responding upon the launch of the project.
This takes forever and it's very hard to get a project going due to the time it takes to get start. Any ideas? I've spent hours trying to figure things out. I'm running Xcode 7 with Swift 2.0
It's a beta version of Xcode. The syntax checker crashed a lot on both Yosemite and El Capitan, for both beta 1 and 2. Compiler sometimes works, sometimes don't, and code works in Xcode 6 might not work correctly in Xcode 7 beta.
In the past, when Swift 1.0 beta just out, there were lots of issues like this, and some of them didn't get fixed till 1.2.
If this happens everytime, consider file a bug report to Apple so they could look into it. (I do!) Or you can provide some code you were testing so we can all have a look.
So, I've been updating this app that has a BaseSDK of 6.1.
So far it has been fine, until this afternoon. I ran it once on my iPhone 5 and it was fine (but crashed). It was running with the iOS6 look and feel like I wanted.
Fixed the bug (just a simple index out of bounds bug) and ran it again and now it runs with the iOS7 look and feel.
I've checked the deployment target and the Base SDK and I have no idea why it's doing this.
Can anyone point me in the right direction?
SOLVED
OK, so I managed to fix it.
I had to...
Quit Xcode.
Delete Derived Data.
Delete the app from my phone.
Restart my Mac and Xcode.
Rerun "pod update" for my cocoapods. (I tried this before with no luck).
Then start it all up again.
Now it's fine.
I haven't changed any code and all the Base SDKs and deployment targets are the same.
Oh well...???
Xcode 5 does not support SDK 6.1.
You can trick it to use it, but the behaviour is undefined.
If you have multiple SDKs installed, then Xcode 5 has a bug (or undefined behaviour, whatever) where it shows the connected devices twice (or N times for N SDKs installed) in the drop down where you select simulator/device.
Each of these icons will access the connected device using one of the SDKs you have installed, so even though they look the same, they'll have some odd side effects.
I always use the top one.. (better ideas welcome)