Or the only way is to include the python distribution under my App, somewhere in Framework or Helpers?
Or the only way is to include the python distribution under my App, somewhere in Framework or Helpers?
Swift/Objc with NSRegularExpression
Go (that was easy, considering I can build a CLI and just embed it in the Helpers as CLI tool)
JavaScript (with WebKit embedded)
Code Block let task = Process() task.executableURL = "/usr/bin/python3" task.arguments = [[URL(fileURLWithPath: "python.py", relativeTo: Bundle.main.resourceURL).path]] ...
Code Block xcrun: error: cannot be used within an App Sandbox
give some additional capabilities?
maybe ask user to point to the Python and have "read-only" access to the file (but that would not give execution permission on the file)
For me I have to use the USDZ Tools written in python 3.7 on the x86 architecture.
I could not find any alternatives that converts USDC binary file into USDA Ascii format.
I tried PythonKit which require you to remove the sandbox.
I tried portable-python which always results in errors, possibly due their build script.
To conclude, I would love to use an USDZ Tools built for Swift or even C, but it simply does not exist. So I had to resort to trying to have a python environment in Swit, eventhough it sounds unreasonable and should be avoided.