'SwiftUI Canvas won't build with modulization

Recently I started working on a project that is modularized and the project builds fine for the simulator and device, but the canvas fails with the errors below.

  • no such file or directory: '/Users/profileName/Library/Developer/Xcode/DerivedData/
  • LinkDylibError: Failed to build SurveyResultsView.swift
  • Linking failed: no such file or directory:
  • clang: error: no such file or directory: '
  • BuildInvocationError

I tried updating the Framework Search Paths to $(PROJECT_DIR)/../path/to/my/framework



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source