Skip to content

[episode 17] Sample code not working for xcode 16 #159

Description

@Yusuke-Ishihara-sp

Old projects are no longer maintained?

  • I am watching all past episodes and doing experiments in my xcode environment (ver. 16.0).

  • The instruction lies in the README.md, but it seems not valid as it has been over 7 years from the last commit.

Getting Started

  • Clone repo
  • cd into this directory
  • Initialize submodule: git submodule update --init
  • Open ep0017.xcworkspace
  • Build cmd+B
  • Open and run the playground!
  • On following the instruction, I get No such module 'Overture' runtime error
    • after enabling "Build Active Scheme, still get another error: error while processing module import: import may have triggered a dylib import error.

I'd like to know if those old sample codes will no longer be maintained. Personally, as an newbie here in functional programming world, it will be helpful if every sample code works as expected in newer environments.
I am considering to take time to refactor those projects incompatible to latest environments.

Let me know if you would be welcome to the such contributions!

P.S

To make project work (at least make it run, but a few bugs remain...), I did the following.

env settings

  • Apple M2 Pro (Sonoma 14.7.1)
  • xcode ver.16.0

fix

  1. follow the original Getting Started instruction, and open the ep0017.xcworkspace.
  2. go to Overture build setting from xcode left navigator and to General section.
  3. for macOS Minimum Deployments, specified 13.7 both for Debug and Release. (the value is arbitrary for operation check)
  4. add iOS as a Supported Destinations, specify Minimum Deployments to 12.0. Without this setting, an error occurred after run.
  5. due to the minimum deployments change, some error occurred, and fixed them. (Styling-2.swift l.94, l.105, l.161, l.224)
  6. go to Styling-2.playground and in the right navigator, tick the "Build Active Scheme" box, unless Overture is not accessible from playground file.
  7. I had to add statement import Styling_2_Sources. It seems that by ticking "Build Active Scheme" box, import procedures may be settled in unexpected way under the food, which I haven't gone through to detail yet.
  8. Finally, run the playground project. the live view appeared. (done!, but still have view layout problem probably caused by change in procedure 5. .)
after run
Layout broken?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions