tomaz / appledoc

Objective-c code Apple style documentation set generator.
http://gentlebytes.com
4.19k stars 645 forks source link

Command /bin/sh failed with exit code 126 #617

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi,

Not working for XCode 8.3.1. Returning the following error: Command /bin/sh failed with exit code 126

tomaz commented 7 years ago

You mean appledoc doesn't compile on Xcode 8.3.1, or build script that collects documentation in your project doesn't work?

ghost commented 7 years ago

We are not able to create html file. Following is the script, I am using:

/usr/local/bin/appledoc --project-name "${PROJECT_NAME}" --project-company "AltCalulator" --company-id "com.app" --output "~/Projects/Help/${PROJECT_NAME}" --install-docset --logformat xcode --keep-undocumented-objects --keep-undocumented-members --keep-intermediate-files --no-repeat-first-par --no-warn-invalid-crossref --merge-categories --exit-threshold 2 --docset-platform-family iphoneos --ignore "*.m" --include "${PROJECT_DIR}/${PROJECT_NAME}/Documentation/Images" --ignore "LoadableCategory.h" --index-desc "${PROJECT_DIR}/readme.markdown" "${PROJECT_DIR}/${PROJECT_NAME}"

ghost commented 7 years ago

objc[5942]: Objective-C garbage collection is no longer supported.

/Users/deepakbhagat/Library/Developer/Xcode/DerivedData/Event_App-atwqjvhlbijrpoepegofhjqpnhnf/Build/Intermediates/Event App.build/Debug-iphonesimulator/Event App.build/Script-316D6F041EF91BF600C6CE3C.sh: line 17: 5942 Abort trap: 6 $APPLEDOC_PATH --project-name ${PRODUCT_NAME} --project-company "Your Name" --company-id "com.yourcompany" --output ${PRODUCT_NAME}Docs --keep-undocumented-objects --keep-undocumented-members --keep-intermediate-files --no-repeat-first-par --no-warn-invalid-crossref --exit-threshold 2 ${PROJECT_DIR}/${PRODUCT_NAME}

Command /bin/sh failed with exit code 134

ghost commented 7 years ago

my folder is not created for doc

ghost commented 7 years ago

@tomaz

tomaz commented 7 years ago

Try with higher --verbose setting, it'll give you more information as to why exactly it fails. Start with --verbose 3 and gradually increase until you get useful info

tanyaberezovsky commented 6 years ago

Try brew upgrade swiftlint