KarthikRIyer/swiftplot

Compilation error: could not build Objective-C module 'SwiftPlot'

QSmally opened this issue · 1 comments

Having just imported the library and compiling it using the CLI (not Xcode build). Processor is the M1, is it compatible with this library?

/Users/pathtoproject/.build/arm64-apple-macosx/debug/SwiftPlot.build/module.modulemap:2:12: error: header '/Users/pathtoproject/.build/arm64-apple-macosx/debug/SwiftPlot.build/SwiftPlot-Swift.h' not found
    header "/Users/pathtoproject/.build/arm64-apple-macosx/debug/SwiftPlot.build/SwiftPlot-Swift.h"
           ^
/Users/pathtoproject/Sources/Model/Renderer/GraphRenderer.swift:9:8: error: could not build Objective-C module 'SwiftPlot'
import SwiftPlot
       ^
[1/2] Compiling Model GraphRenderer.swift

I realised I've been a dummy and not adding it to the target dependencies - works totally fine.