SwiftGen: IB: generated code doesn't compile

Using the new 6.0.0 release when using the IB templates to build a macOS project the files output by the segues template and scenes template don’t compile.

Command used it this:

swiftgen ib "${PROJECT_DIR}/XcodeProject/Base.lproj/Main.storyboard" -output "${PROJECT_DIR}/XcodeProject/SwiftGenGenerated/StoryboardScenes.swift" -t scenes-swift4
swiftgen ib "${PROJECT_DIR}/XcodeProject/Base.lproj/Main.storyboard" -output "${PROJECT_DIR}/XcodeProject/SwiftGenGenerated/StoryboardSegues.swift" -t segues-swift4

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 20 (1 by maintainers)

Most upvoted comments

FYI just switched my project’s Swift version to Swift 4.0 and the guard let identifier = segue.identifier?.rawValue else { return nil } problem went away.