Hi. Thanks for the great article. I have a question. I saw the Process() inside of shell function. I tried using this function in my project but it says āCannot find āProcessā in scopeā. I tried finding in the HelloXcode project, but canāt find it in there. What do I have to do?
Hello @jamesryu108,
the function shell
is intended to be used under macOS only, you canāt use it in an iOS project because there is no shell
This file is compiled against the macOS sdk with the commands:
xcrun --sdk macosx swiftc -parse-as-library $SCRIPT_INPUT_FILE_0 Scripts/Shell.swift Scripts/OverlayLabel.swift Scripts/ImageOverlay.swift -o CompiledScript