The download instructions for the HubEvent starter project say to unzip it, but this appears not to be necessary; I can see the contents of the HubEvent folder in my Downloads folder without doing anything else.
When updating the AppIcon, the tutorial says to use Finder to locate rw_icon.png in the unzipped directory you downloaded. Then drag this from Finder into the Mac 512pt 2x cell in the AppIcon asset. Problem is, the “rw_icon.png” was not included in the download.
I then attempted to create my own icon at 1024x1024 by using Shift+Clover+4 on a desktop image and inserted it as directed in the tutorial, but when I ran the app, it still showed the default app icon instead of the one I created. Is there something else I’m supposed to do? I have some experience in MS Visual Studio, and adding an icon there involves a couple of steps, so I’m wondering if there’s something else that needs to be done in Xcode?
Having a more fundamental problem with the HubEvent_7.1 - opening it in Xcode Version 8.0 beta 2 (8S162m) and letting it convert to Swift 3 gives the error:
Swift stdlib tool Error Group
(null): The file “HubEvent” couldn’t be opened because there is no such file.Can’t get it to build. Is there an updated version somewhere?
Hi, I have a real newbie question from almost the beginning of “Hello World”: When I try the step of adding a label, my object library shows “no matches” and that doesn’t change when I try typing “label.” What am I doing wrong?
If you use Safari then it’ll automatically unzip ZIP files when you download them. This isn’t true of other browsers (and not necessarily true of Safari).
I’m not sure why that’s not in there - sorry about that. I’ll ask the macOS team lead to take a look at making sure that the start and end projects for this tutorial are updated. In the meantime, here’s the logo file you need:
You shouldn’t have to do anything other that what was specified in the tutorial. Give it a try with this logo and hopefully it’ll work. It might be the strict requirements on image sizes that’s causing the problem.
I’ve just tried the Swift migrator in Xcode 8β6 and it doesn’t seem to suffer from this problem.
It has many, many errors in SwiftyJSON post-migration, but only a couple in the project code. I’d suggest waiting for Swift 3 to become GM with a later seed of Xcode 8, and then go and grab the updated version of SwiftyJSON from the project’s GitHub page.
I’ll also suggest to the macOS team lead that this tutorial is put on the list of ones to get updated once macOS Sierra is released.
Not entirely sure what to suggest. Maybe you can provide a screenshot of what you’re seeing?
The only thing I can think of is that you need to ensure you’ve selected the Object Library from the panel on the right hand side. That’s the third tab across - and look like a square in a circle. If you search for label in any of the other tabs then you’ll get a “not found” message.
Hrm - how come it says “No Editor”. I’ve never seen that before, and it explains why you can’t find a label. When the storyboard is open it should show you a menu bar, window and view controller. Then you can find a label in the object library and drag it to the view controller’s canvas.
There’s something weird going on with your project - you seem to have a HelloWorldc.xcodeproj inside the project. I wouldn’t surprise me if Xcode refuses to start IB because the project is open twice.
Since this is the hello world project, I’d suggest you start again. Close that project, and start over. Create a new macOS app and go straight to the storyboard. You should be able to see some content then, which will allow you to drag a label on.
Ah - that’s odd. Try closing that window, and then (single) clicking on the storyboard in the project navigator. That should open IB in the same window, at which point the object library should work. You might need to select the view controller within the IB window.
OK, started again and got farther this time. But at the step of realigning the label, I got as far as opening the attribute window, then adding the constraints and “Update frames,” but then the “Add constraints” button remains blanked out and I’m unable to click it. (Not sure how to get a screen shot of that because as soon as I go over to the app I use to get screen shots that dialog box closes itself.) I was able to move and resize the label by hand, but I couldn’t follow the method suggested.
Hi @samdavies, thanks for your tutorial! I am using Xcode 8 + Swift 3. When I opened the project I got a prompt to convert to Swift 2.3 or 3 and I chose 3. But when I try to run it I get build errors (20 issues) in GitHubData. What do I do?
Alternatively, if you wait a while, this tutorial will soon be updated for Swift 3 by the macOS team. I’m not entirely sure on the schedule though, so if you’re in a rush, the best hope is to import the updated SwiftyJSON and fix any related errors.