apollo-ios: /bin/sh emitted errors but did not return a nonzero exit code to indicate failure
I add this run script on my swift3 project
`APOLLO_FRAMEWORK_PATH=“$(eval find $FRAMEWORK_SEARCH_PATHS -name “Apollo.framework” -maxdepth 1)”
if [ -z “$APOLLO_FRAMEWORK_PATH” ]; then echo “error: Couldn’t find Apollo.framework in FRAMEWORK_SEARCH_PATHS; make sure to add the framework to your project.” exit 1 fi
cd “${SRCROOT}/${TARGET_NAME}” $APOLLO_FRAMEWORK_PATH/check-and-run-apollo-codegen.sh generate ‘/*.graphql’ --schema schema.json --output API.swift ` When I build I look this error: find: /Users/userName/Documents/Swift: No such file or directory find: Apps/appName/appName: No such file or directory find: /Users/userName/Documents/Swift: No such file or directory find: Apps/appName/Carthage/Build/iOS: No such file or directory ++ exec apollo-codegen generate '/*.graphql’ --schema schema.json --output API.swift Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure
Thanks
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (9 by maintainers)
It looks like your
$FRAMEWORK_SEARCH_PATHS
contains non-existing directories, like/Users/userName/Documents/Swift
orApps/appName/appName
?Also,
'/*.graphql'
is probably not what you mean, because it would only select.graphql
files in your root directory.