Possible to use workbench with iCloud?

I would like to keep some workbench projects in my iCloud folder.

The path for that folder is something like: /Users/sam/Library/Mobile Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/
There is always whitespace between Mobile and Documents.

I know workbench does not like whitespaces in a path, but I can create a project there if I create a shortcut from my Documents folder to the iCloud folder.

However once I try to compile some code, I will always get something like:

../../../build/module.mk:224: warning: overriding commands for target `/Users/sam/Library/Mobile'
../../../build/module.mk:217: warning: ignoring old commands for target `/Users/sam/Library/Mobile'
../../../build/module.mk:224: warning: overriding commands for target `/Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile'
../../../build/module.mk:217: warning: ignoring old commands for target `/Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile'
../../../build/module.mk:233: warning: overriding commands for target `/Users/sam/Library/Mobile'
../../../build/module.mk:224: warning: ignoring old commands for target `/Users/sam/Library/Mobile'
../../../build/module.mk:233: warning: overriding commands for target `/Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile'
../../../build/module.mk:224: warning: ignoring old commands for target `/Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile'
../../../build/module.mk:257: warning: overriding commands for target `/Users/sam/Library/Mobile'
../../../build/module.mk:233: warning: ignoring old commands for target `/Users/sam/Library/Mobile'
../../../build/module.mk:262: warning: overriding commands for target `/Users/sam/Library/Mobile'
../../../build/module.mk:257: warning: ignoring old commands for target `/Users/sam/Library/Mobile'
../../../build/module.mk:278: warning: overriding commands for target `/Users/sam/Library/Mobile'
../../../build/module.mk:262: warning: ignoring old commands for target `/Users/sam/Library/Mobile'
makefile:47: warning: overriding commands for target `/Users/sam/Library/Mobile'
../../../build/module.mk:278: warning: ignoring old commands for target `/Users/sam/Library/Mobile'
makefile:47: warning: overriding commands for target `/Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile'
../../../build/module.mk:233: warning: ignoring old commands for target `/Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile'
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile dependency dropped.
make[2]: Circular workbench-icloud-test-feb16.elf <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular workbench-icloud-test-feb16.elf <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular workbench-icloud-test-feb16.elf <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular workbench-icloud-test-feb16.elf <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
make[2]: Circular /Users/sam/Library/Mobile <- /Users/sam/Library/Mobile dependency dropped.
/bin/bash: /Users/sam/Library/Mobile /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//platform_user_ram.ld: No such file or directory
Creating /Users/sam/Library/Mobile /Users/sam/.particle/toolchains/deviceOS/4.0.2/main/Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/target/4.0.2/argon//platform_user_ram.ld ...
build.mk:67: *** "No sources found in /Users/sam/Library/Mobile Documents/com~apple~CloudDocs/workbench-icloud-test-feb16/".  Stop.
make[2]: *** [user] Error 2
make[1]: *** [modules/argon/user-part] Error 2
make: *** [compile-user] Error 2

I am pretty sure workbench is just cutting off the path where it finds that whitespace in /Mobile Documents/ and cannot find any of the dependencies because it is no longer looking in the correct place.

Is there any way to remedy this so that I can keep my workbench projects on iCloud?

Does it work if you make a symbolic link?

ln -s '/Users/sam/Library/Mobile Documents/com~apple~CloudDocs' ~/icloud

Your project would then be accessible via:

/Users/sam/icloud/workbench-icloud-test-feb16/
1 Like

Thank you for the suggestion. I was using a symlink before, but I just created a new one with a different name and the result is the same. It seems like workbench knows where the symbolic link points and just goes there…

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.