Did you read my post? I was able to exactly duplicate what you are seeing and what you are experiencing when you try to drag in the storyboard.
That isn’t the issue I had originally pointed out to him that he might have the wrong class name but when I checked his project it was fine. Everything was where it was supposed to be and the same project which doesn’t work for him worked fine for me. So there appears to be an issue with his Xcode set up … At least, that’s the best guess I can take since only @anthonyverco seems to see this issue on his machine.
Sorry, I missed that.
Since you see the exclamation marks and I don’t when I open the same project, that is not the root cause. Plus, the exclamation marks simply indicate that there are outlets defined which are no longer there. But unless you somehow change the class for the view controller before you run the project, that should not happen since when I checked the copy of your project you uploaded, everything was fine and there were no exclamation marks.
If you do have access to another machine with Xcode, I would suggest trying to run the same project on that machine to see what is going on.
If that is not possible, can you please let me know which version of macOS and which version of Xcode that you’re using on your machine?
Unfortunately, I don’t have an access to another machine with Xcode. My macOS version is mac Os High Sierra 10.13.1 and my Xcode version is 9.2 (9C40b). I am doomed ! I will try to reinstall Xcode tomorrow.
Oh, I wouldn’t say you’re doomed The first thing to try would of course be to re-install Xcode.
Your Xcode version is the latest version though your macOS version is a little behind. So if re-installing Xcode doesn’t fix things, I would try updating macOS to 10.13.3 - just in case. If things still are broken at that point, do let me know and I’ll see if I can think of anything else to try.
I’m on OSX 10.13.2 using Xcode version 9.2 (9C40b).
Hi, I re-installed Xcode and updated my macOS to 10.13.3 but it’s still not working , those same exclamation marks are still there and I can’t drag the 100 Label to define a new outlet.
It’s strange because the last time everything was working but the problem appeared when I re-opened the project the next day.
I believe you already created a new project and it showed the same issue, right? Can you do a second brand new project? No need to go through all the steps in the tutorial. Just add one @IBOutlet to the view controller class for something like a button, set up an action to display a message in the console when the button is tapped, and then hook up the button to the outlet and the action.
Then, run the project to make sure everything works and then close Xcode and re-open it again and see if you have the same issue that you saw with this project.
This way, you can quickly identify if this is a continuing issue with every new project or if that particular project gets corrupted for some reason …
That’s just not fair. I have a couple of questions:
- Did you name your second app the same name as the first app?
- Did you create your second app in the same directory as your first app? If so, how did you delete your first app?
You might consider removing all remnants of Xcode before trying to reinstall Xcode.
fahim : I did a second brand new project and add one @IBOutlet to the view controller class for a slider. It worked but when I closed the app and re-opened it, an exclamation point appeared and I couldn’t drag any new outlet from the view controller to the slider or even a button ! I tried to remove the outlet of the slider to drag it again but it didn’t work.
7stud : I did not give a specific name to the new Xcode I installed. I installed it in the default directory as my first app. How should I remove all the remnants ?
OK, you definitely appear to have a problem with your Xcode installation. The problem is that I don’t know what the issue is.
@7stud linked to a StackOverflow question in his lat reply. That post details how to remove all vestiges of Xcode from your machine. Take a look at that thread on StackOverflow. Before you do anything though, read through the whole thread. Some of the actions listed are pretty drastic - so be sure you know what you are doing (and the consequences) before you do anything. Unless of course, you have a backup and can restore easily
This topic was automatically closed after 166 days. New replies are no longer allowed.