KarthikRIyer / swiftplot

Swift library for Data Visualization :bar_chart:
Apache License 2.0
400 stars 39 forks source link

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

Closed QSmally closed 2 years ago

QSmally commented 2 years ago

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
QSmally commented 2 years ago

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