Fuse 1.2.1 (build 13974).
Mac OS Sierra.
Xcode Version 9.0 (9A235).
When building a preview for iOS from the Fuse GUI the following error occurs when using -DCOCOAPODS:
Fuse 1.2.1 (build 13974)
Configuring (1.1 s)
Compiling syntax tree (2.8 s)
Generating code and data (7.4 s)
Build completed in 11.37 seconds
/Users/username/MyApp/build/iOS/Preview/run.sh: line 9: pod: command not found
fuse: iOS run failed
Workaround:
Running ./build/iOS/Preview/build.sh from a terminal works and opening the generated .xcworkspace also works.
@booster: Thanks I have replicated this and am 90% sure this is a tool issue. On my machine I’m getting the issue in fuse GUI and not in command line builds. I’ve passed this issue along to people in the know.
@prince: That seems different. Please try running pod from the terminal and see what the result is.
Where is the pod located (run which pod)? I suspect that the bash_profile used in the terminal, exports a custom PATH environment variable, and this customization isn’t picked up by the launch services on macOS. Follow https://stackoverflow.com/questions/603785/environment-variables-in-mac-os-x, to set the PATH environment correctly when using launch services.
I will play around with the environment vars and see if I can make it work. There is nothing in my .bash_profile setting the PATH variable. /usr/local/bin is in the PATH variable.
Interesting, looks like launch services are setting its path to sysctl user.cs_path = /usr/bin:/bin:/usr/sbin:/sbin, so the Terminal.app probably adds /usr/local/bin itself. I’ll update the ticket so that we can fix it on our side. The workaround is to start fuse from terminal.