swiftdocorg / graphviz Goto Github PK
View Code? Open in Web Editor NEWA Swift package for working with GraphViz
License: MIT License
A Swift package for working with GraphViz
License: MIT License
On Xcode 12.2 (didn't try on other version), when importing GraphViz from a module (framework target, not app target)
I got the this very weird build error :
Graph+Rendering.swift:7:16: error: cannot find 'Process' in scope
let task = Process()
I attached a very small Xcode project reproducing the issue :
GraphViz_In_Module_Issue.zip
Perhaps I'm missing something, but is there a specific reason why there's no Edge.Attribute.label
property? The closest that I can see is exteriorLabel
(= xlabel), however from my testing this appears to behave differently from label
.
If the addition of label
on Edge
would be a welcome change, I'd be happy to submit a small PR to add it.
A cairn for anyone else using in macOS app on Big Sur, with graphviz installed via brew
: you may encounter code signing warnings, and an error that dependencies of pango cannot be loaded. ("it could load, so perhaps one of its dependents was not. Try ldd."
).
A solution appears to be to manually sign the dependencies. Probably do a better job of scoping to just the affected dirs, than this, but this pair should get you there:
codesign -f -s "Apple Development: MyName (MyTeam)" /usr/local/opt/*/lib/*.dylib
codesign -f -s "Apple Development: MyName (MyTeam)" /usr/local/Cellar/*/*/lib/*.dylib
Got this error when trying to run the target with the GraphViz package
GraphViz installed with Homebrew, works perfectly as cli in terminal
The issue is with M1 Macs only.
ld: warning: Could not find or use auto-linked library 'gvc'
ld: warning: Could not find or use auto-linked library 'cgraph'
Undefined symbols for architecture arm64:
"_agerrors", referenced from:
GraphViz.attempt<A>(throwing: () -> A) throws -> A in GraphViz.o
"_aglasterr", referenced from:
static GraphViz.Error.(lastErrorMessage in _24C6592C881063ABBFDC7A6D4D4AA881).getter : Swift.String? in GraphViz.o
"_agmemread", referenced from:
closure #1 () -> Swift.UnsafeMutablePointer<__C.Agraph_s>? in closure #1 (Swift.UnsafePointer<Swift.Int8>) throws -> Swift.UnsafeMutablePointer<__C.Agraph_s>? in closure #1 () throws -> Foundation.Data in closure #1 () -> () in GraphViz.Renderer.render(dot: Swift.String, to: GraphViz.Format, on: __C.OS_dispatch_queue, completion: (Swift.Result<Foundation.Data, Swift.Error>) -> ()) -> () in GraphViz.o
"_gvContext", referenced from:
closure #1 () throws -> Foundation.Data in closure #1 () -> () in GraphViz.Renderer.render(dot: Swift.String, to: GraphViz.Format, on: __C.OS_dispatch_queue, completion: (Swift.Result<Foundation.Data, Swift.Error>) -> ()) -> () in GraphViz.o
"_gvFreeContext", referenced from:
$defer #1 () -> () in closure #1 () throws -> Foundation.Data in closure #1 () -> () in GraphViz.Renderer.render(dot: Swift.String, to: GraphViz.Format, on: __C.OS_dispatch_queue, completion: (Swift.Result<Foundation.Data, Swift.Error>) -> ()) -> () in GraphViz.o
"_gvFreeLayout", referenced from:
$defer #2 () -> () in closure #1 () throws -> Foundation.Data in closure #1 () -> () in GraphViz.Renderer.render(dot: Swift.String, to: GraphViz.Format, on: __C.OS_dispatch_queue, completion: (Swift.Result<Foundation.Data, Swift.Error>) -> ()) -> () in GraphViz.o
"_gvFreeRenderData", referenced from:
$defer #3 () -> () in closure #1 () throws -> Foundation.Data in closure #1 () -> () in GraphViz.Renderer.render(dot: Swift.String, to: GraphViz.Format, on: __C.OS_dispatch_queue, completion: (Swift.Result<Foundation.Data, Swift.Error>) -> ()) -> () in GraphViz.o
"_gvLayout", referenced from:
closure #1 () -> Swift.Int32 in closure #3 (Swift.UnsafePointer<Swift.Int8>) throws -> () in closure #1 () throws -> Foundation.Data in closure #1 () -> () in GraphViz.Renderer.render(dot: Swift.String, to: GraphViz.Format, on: __C.OS_dispatch_queue, completion: (Swift.Result<Foundation.Data, Swift.Error>) -> ()) -> () in GraphViz.o
"_gvRenderData", referenced from:
closure #1 () -> Swift.Int32 in closure #4 (Swift.UnsafePointer<Swift.Int8>) throws -> () in closure #1 () throws -> Foundation.Data in closure #1 () -> () in GraphViz.Renderer.render(dot: Swift.String, to: GraphViz.Format, on: __C.OS_dispatch_queue, completion: (Swift.Result<Foundation.Data, Swift.Error>) -> ()) -> () in GraphViz.o
"_gvToolTred", referenced from:
closure #2 () -> Swift.Int32 in closure #1 () throws -> Foundation.Data in closure #1 () -> () in GraphViz.Renderer.render(dot: Swift.String, to: GraphViz.Format, on: __C.OS_dispatch_queue, completion: (Swift.Result<Foundation.Data, Swift.Error>) -> ()) -> () in GraphViz.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Not iOS or no text file in and graphic file out?
Tracking the GraphViz-specific work for SwiftDocOrg/swift-doc#254
Title says is all !?
PS : really enjoying this project
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.