Post

Replies

Boosts

Views

Activity

Reply to MacOS cli program permission denied
Error: Missing expected argument '<input-folder>' OVERVIEW: Reconstructs 3D USDZ model from a folder of images. USAGE: hello-photogrammetry <input-folder> <output-filename> [--detail <detail>] [--sample-ordering <sample-ordering>] [--feature-sensitivity <feature-sensitivity>] ARGUMENTS:  <input-folder>     The local input file folder of images.  <output-filename>    Full path to the USDZ output file. OPTIONS:  -d, --detail <detail>  detail {preview, reduced, medium, full, raw} Detail              of output model in terms of mesh size and texture              size . (default: nil)  -o, --sample-ordering <sample-ordering>              sampleOrdering {unordered, sequential} Setting to              sequential may speed up computation if images are              captured in a spatially sequential pattern.  -f, --feature-sensitivity <feature-sensitivity>              featureSensitivity {normal, high} Set to high if the              scanned object does not contain a lot of discernible              structures, edges or textures.  -h, --help       Show help information. Program ended with exit code: 64 The point is that the command line app is supposed to be used by typing the arguments in the command prompt. The "./HelloPhotogrammetry" is the way to initiate the application because the main.swift is inside the directory. And the rest of the arguments follow suits. Here is an example: ./HelloPhotogrammetry ./Wooden_bike_photos ./Wooden_bike_model -d full -o sequential -f normal The ./HelloPhotogrammetry is used as the command, just like the ls command or ipconfig command. And the rest of the stuff are the arguments, just like the -l in ls -l. I have found a pretty stupid and dumb way to work around if I absolutely want the output so bad. In Xcode, I click Product in the menu bar, select scheme -> edit scheme . To use this method I have to put the input folder and the output folder in the debug folder corresponding to the project. And every time I need to use the app I will have to make manual input in the scheme to pass the arguments to the app. This way it works but this is obviously never meant to be the normal way to use a cli app. A command-line application is meant to be used just like the way we use brew . There is absolutely no way that a user needs to build the app in Xcode every time he uses it. I don't necessarily need the 3d model right now. I just want to know why I can't use it. Like, I have all the permissions. I checked in and out, day and night, I chmod 777 everything from top to bottom, every file every folder and every subfolder. It should works as intended but it doesn't. No matter how many times I double-checked the rwx capabilities in ls -l , I always get yelled zsh: permission denied: ./HelloPhotogrammetry. Like why? Why does it behave like this? I have all the permissions, why can't I use it???
Aug ’22