Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Jun 20, 2017 · 7 comments
Open

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

ghost opened this issue Jun 20, 2017 · 7 comments

Comments

@ghost
Copy link

ghost commented Jun 20, 2017

Hi,

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

@tomaz
Copy link
Owner

tomaz commented Jun 20, 2017

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

@ghost
Copy link
Author

ghost commented Jun 20, 2017

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
Copy link
Author

ghost commented Jun 20, 2017

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
Copy link
Author

ghost commented Jun 20, 2017

my folder is not created for doc

@ghost
Copy link
Author

ghost commented Jun 20, 2017

@tomaz

@tomaz
Copy link
Owner

tomaz commented Jun 20, 2017

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
Copy link

Try
brew upgrade swiftlint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants