Closed fummicc1 closed 2 years ago
Note: I think this error occures when swift toolchain is for Swift 5.7. Because I can generate mock by re-compiling mockolo locally, where Xcode14 beta is installed.
Tips: I can avoid this error by the following way.
swift build -c release
with current directory mockolo
. (Notice that xcodebuild -p
shows Xcode14 beta path.)This should be fixed by mint.
mockolo has dependency of @rpath/lib_InternalSwiftSyntaxParser.dylib
(you can check this by otool -L <your/mockolo/path>
) , and swift build
puts lib_InternalSwiftSyntaxParser.dylib
to the same directory to mockolo
.
mint copies mockolo
to mint's cache directory but doesn't copy lib_InternalSwiftSyntaxParser.dylib
. so lib_InternalSwiftSyntaxParser.dylib
cannot found with @rpath
.
Thank you, sidepelican, for your reply.
Actually I am not familiar with dylib, so I am probing the origin of that problem. (I think install_name_tool
may be helpful 👀 to overwrite rpath
of dylib... or I have mint directly copy all files in @executable_path
to .mint/packages/.../build
folder.)
I think this comment on Mint may be related with this issue.
This codes is where copying executables of target-package(like mockolo, LicensePlist and so on) to .mint/packages
. Because only copying executable ones, This problem may occure, I think.
What Happened
Hello, I am new to mockolo but this library is very great as a mock generator. After I installed mockolo via Mint, I ran the following run comamnd from Terminal and got the error log.
Environments
Run Command
Log
Working Directory