# Problem with Chap 10

**URL:** <https://forums.kodeco.com/t/problem-with-chap-10/136146>\
**Category:** SwiftUI by Tutorials\
**Created:** [March 25, 2021, 11:31pm UTC](https://forums.kodeco.com/t/problem-with-chap-10/136146 "2021-03-25T23:31:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marvmax](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/marvmax/32/107222_2.png) [@marvmax](https://forums.kodeco.com/u/marvmax)\
**Post date:** [March 25, 2021, 11:31pm UTC](https://forums.kodeco.com/t/problem-with-chap-10/136146/1 "2021-03-25T23:31:08Z")

</div>

When I started using the starter for Chap 10 it get 18 error messages like ‘Scene’ is only available in macOS 11.0 or newer’. I get 18 messages like this. I opened Chap 11 and get the same messages. I think it is obvious that earlier chapters worked.

---

<div class="post-metadata">

**Author:** ![jeden](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jeden/32/110971_2.png) [@jeden](https://forums.kodeco.com/u/jeden)\
**Post date:** [March 26, 2021, 10:29am UTC](https://forums.kodeco.com/t/problem-with-chap-10/136146/2 "2021-03-26T10:29:58Z")

</div>

Hi @marvmax , make sure you’ve selected the iOS target ![image](https://files.chunter.kodeco.com/original/3X/a/3/a31788baad23cbdcfd853db12a1874be3501fe1b.png)

---

<div class="post-metadata">

**Author:** ![marvmax](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/marvmax/32/107222_2.png) [@marvmax](https://forums.kodeco.com/u/marvmax)\
**Post date:** [March 26, 2021, 8:34pm UTC](https://forums.kodeco.com/t/problem-with-chap-10/136146/3 "2021-03-26T20:34:57Z")

</div>

That screen shot looks like it comes from my computer because I’m having trouble with WelcomeView() as well. On my computer it looks like the iOS target is chosen. I do go in and choose it again and do a build and all the error messages go away. Then I commented out WelcomeView() and tried to see a preview then all of the errors came back.

---

<div class="post-metadata">

**Author:** ![jeden](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jeden/32/110971_2.png) [@jeden](https://forums.kodeco.com/u/jeden)\
**Post date:** [March 29, 2021, 7:53am UTC](https://forums.kodeco.com/t/problem-with-chap-10/136146/4 "2021-03-29T07:53:35Z")

</div>

So you’re saying that after building it resets to the macOS target?

---

<div class="post-metadata">

**Author:** ![marvmax](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/marvmax/32/107222_2.png) [@marvmax](https://forums.kodeco.com/u/marvmax)\
**Post date:** [March 30, 2021, 8:07pm UTC](https://forums.kodeco.com/t/problem-with-chap-10/136146/5 "2021-03-30T20:07:52Z")

</div>

I’ve take some screen shots. It looks like the iOS target is picked in all cases, unless I’m missing something. When I highlight the iOS, instead of assuming that it is picked, and do a build the error messages go away. When I try to preview a view, in this case settings, all the errors came back ![Screen Shot 2021-03-30 at 2.00.05 PM](https://files.chunter.kodeco.com/original/3X/9/0/90df882e00466078d8d681161dcf1f50bdf5970b.jpeg) ![Screen Shot 2021-03-30 at 2.01.16 PM](https://files.chunter.kodeco.com/original/3X/a/9/a9f324f9538bea9dce87c7d8531e21ae70efe7ab.png) ![Screen Shot 2021-03-30 at 2.01.35 PM](https://files.chunter.kodeco.com/original/3X/a/d/ade7f008c5c32e029cc0b9e2a6f66251285bd3b4.png) ![Screen Shot 2021-03-30 at 2.02.01 PM](https://files.chunter.kodeco.com/original/3X/b/d/bd9055c41cc66a713eb475d23aaf5a1c26b1a104.png)

---

<div class="post-metadata">

**Author:** ![jeden](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jeden/32/110971_2.png) [@jeden](https://forums.kodeco.com/u/jeden)\
**Post date:** [March 31, 2021, 8:38am UTC](https://forums.kodeco.com/t/problem-with-chap-10/136146/6 "2021-03-31T08:38:13Z")

</div>

It looks like you’re still using the macOS target

![image](https://files.chunter.kodeco.com/original/3X/f/1/f1f4f1ce7be490e94ec8debad2c48cbe119e2554.png)  
 ![image](https://files.chunter.kodeco.com/original/3X/0/a/0a0f9fdee82ead165ab0d0b690bd3b6000af102b.jpeg)

Make sure you select the iOS target from the scheme selector

![image](https://files.chunter.kodeco.com/original/3X/9/a/9a2223ea4ff6f479787cf0eb36ec6324014fe65a.png)  
 ![image](https://files.chunter.kodeco.com/original/3X/5/f/5fe722bef829ac65885da82f842603607283775c.jpeg)
