HackPlan / quark-shell-mac

Quark Shell for Mac helps web developers to create native-like Mac menubar app using HTML and JavaScript without writing any native code.
MIT License
910 stars 42 forks source link

Build error when folder has spaces, solution included #26

Closed codewise-nicolas closed 9 years ago

codewise-nicolas commented 9 years ago

I can now build it, with SDK 10.10 but I had a build error due to spaces in my folder name.

Your custom scrip that cleans out the 'app' folder did not account for spaces in the build tree structure. Solution add quotes in the proper place to the "Run Script" for the "Build Phases"

Change it to:

echo "rm -rf \"${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Resources/app\"" rm -rf "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Resources/app"

echo "cp -RL \"${SRCROOT}/app\" \"${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Resources/app\"" cp -RL "${SRCROOT}/app" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Resources/app"

xhacker commented 9 years ago

Thanks! I will fix it when I get home.