Compatible teaching book with Xcode

I'm trying to go through the exercises in "Develop in Swift Fundamentals", 12/27/2020, but the exercises aren't compatible with the three versions of Xcode I've tried.

For example, on page 79, the instructions are to “In ViewController.swift, add the following lines of code below super.viewDidLoad():" But super.viewDidLoad () isn't to be found in the contents area.

I started with the latest version of Xcode, 12.7. Then I noticed that the book was using a version 11 of Xcode, so I tried versions 11.7 and 11.2.1, but they weren't compatible either.

Can someone tell me what version of Xcode is compatible with the book I'm using?

Thank you
Answered by OOPer in 655001022

You are correct. I'm using Xcode version 12.3 Sorry.

No worries. Everyone might make some mistakes. I first wrote "There is no Xcode 11.7", but actually there is, and I fixed it later.

I wasn't sure how to describe the listing of app steps, but I should have said "editor page".

It is hard to tell everything using sort of correct terms.
When you feel you could not tell what you intended correctly, choosing terms from Xcode help page would help.

Seems I should use Editor area.


Here is what I see

Seems you have created your project in a wrong way.
And I have noticed that the book does not illustrate how to create a project precisely.
A very bad description, especially for beginners -- the main target of the book.
You can send a feedback about the book being so unkind using Apples Feedback Assistant.

When you create a new project of iOS App, you see a sheet to input Product Name, and a few input items.
You need to choose the right options for each item to go on with the book.
  • Interface: Storyboard

  • Life Cycle: UIKit App Delegate (This is the only option when you choose Interface as Storyboard.)

  • Language: Swift

Please try.
Is this the book you are using?
Develop in Swift Fundamentals

For example, on page 79, the instructions are to “In ViewController.swift, add the following lines of code below super.viewDidLoad():" But super.viewDidLoad () isn't to be found in the contents area.

I'm afraid you are mistaking something. I do not understand what you mean by the contents area, but super.viewDidLoad() in the instruction is not a thing you find in Xcode, but it is you that type in as to make super.viewDidLoad() in the editor page.

I started with the latest version of Xcode, 12.7. Then I noticed that the book was using a version 11 of Xcode, so I tried versions 11.7 and 11.2.1, but they weren't compatible either.

There is no Xcode of version 12.7. I think minor version may not affect significantly, but you should better check the right version when you talk about version compatibilities.
Thank very much you for your response.

The book I am using is the one you listed.

You are correct. I'm using Xcode version 12.3 Sorry.

I wasn't sure how to describe the listing of app steps, but I should have said "editor page".

Here is what I see in the contents page when I start Xcode and click Create a New Xcode Project:

//
// ContentView.swift
// testphone
//
// Created by Swans on 1/1/2021.
//

import SwiftUI

struct ContentView: View {
var body: some View {
Text("Hello, world!")
.padding()
}
}

struct ContentView
Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
_

"super.viewDidLoad" isn't there.

I guess the best way to put my question might be : What version of Xcode should I use with the latest Apple Education book for learning Xcode and Swift.
Accepted Answer

You are correct. I'm using Xcode version 12.3 Sorry.

No worries. Everyone might make some mistakes. I first wrote "There is no Xcode 11.7", but actually there is, and I fixed it later.

I wasn't sure how to describe the listing of app steps, but I should have said "editor page".

It is hard to tell everything using sort of correct terms.
When you feel you could not tell what you intended correctly, choosing terms from Xcode help page would help.

Seems I should use Editor area.


Here is what I see

Seems you have created your project in a wrong way.
And I have noticed that the book does not illustrate how to create a project precisely.
A very bad description, especially for beginners -- the main target of the book.
You can send a feedback about the book being so unkind using Apples Feedback Assistant.

When you create a new project of iOS App, you see a sheet to input Product Name, and a few input items.
You need to choose the right options for each item to go on with the book.
  • Interface: Storyboard

  • Life Cycle: UIKit App Delegate (This is the only option when you choose Interface as Storyboard.)

  • Language: Swift

Please try.
Thank you VERY much. Your reply got me going again.

Seems you have created your project in a wrong way.
And I have noticed that the book does not illustrate how to create a project precisely.
A very bad description, especially for beginners -- the main target of the book.

It turns out that the book does illustrate how to create the project precisely, but it was cleverly hidden. On page 61 there are three thumbnails (?) at the bottom of the page. If you click on the rightmost thumbnail, the field labeled User Interface contains Storyboard. I missed seeing that, and had no idea that it mattered.

I When you create a new project of iOS App, you see a sheet to input Product Name, and a few input items.
You need to choose the right options for each item to go on with the book.
• Interface: Storyboard
• Life Cycle: UIKit App Delegate (This is the only option when you choose Interface as Storyboard.)
• Language: Swift
Please try.

I tried using your instructions, and they worked perfectly. I can now find the text where I must type in the changes detailed in the book.

I am. now using the latest version of Xcode, 12.3. I tried using 11.7 again because I thought I had noticed some inconsistencies, but I could not run my app, only build it. There were no other targets devices available.

Thank you again.

On page 61 there are three thumbnails (?) at the bottom of the page. If you click on the rightmost thumbnail, the field labeled User Interface contains Storyboard. 

Thanks for telling me that. In fact, I hadn't noticed it. How clever iBook is!

I am. now using the latest version of Xcode, 12.3. I tried using 11.7 again because I thought I had noticed some inconsistencies, but I could not run my app, only build it. There were no other targets devices available.

There are some changes between 12.3 and 11.7, but not many. You know you can ask another question (or many other) if you cannot resolve by yourself.

You can send a feedback about the book being so unkind using Apples Feedback Assistant.

Done. Thanks again OOPer.


Compatible teaching book with Xcode
 
 
Q