【问题标题】:Apollo GraphQL iOSApollo GraphQL iOS
【发布时间】:2018-03-20 16:46:54
【问题描述】:

我在我的 swift3 项目中添加了这个运行脚本

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

cd "${SRCROOT}/${TARGET_NAME}"
$APOLLO_FRAMEWORK_PATH/check-and-run-apollo-codegen.sh generate '/*.graphql' --schema schema.json --output API.swift

当我构建时出现此错误:

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

【问题讨论】:

    标签: apollo apollo-client apollo-ios


    【解决方案1】:

    有以下版本

    - Apollo (0.8.0):
        - Apollo/Core (= 0.8.0)
    - Apollo/Core (0.8.0)
    

    我必须改变

    $APOLLO_FRAMEWORK_PATH/check-and-run-apollo-codegen.sh

    到:

    $APOLLO_FRAMEWORK_PATH/Resources/check-and-run-apollo-codegen.sh

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-14
      • 2018-02-14
      • 2020-07-22
      • 2019-08-19
      • 2020-10-05
      • 2020-12-14
      • 2019-07-23
      • 2020-04-22
      相关资源
      最近更新 更多