我正在xcode项目(xcode --版本14 && swift --版本5.7)中工作,并构建一个apollo客户端项目,在其中生成query.graphql文件后,我在Schema Package中得到此错误,这是在执行以下命令后生成的:-
to build apollo-io-cli
git clone https://github.com/apollographql/apollo-ios.git
cd apollo-ios
make build-cli
find . -name apollo-ios-cli
copy the found apollo-io-cli to your directory where you have schema.json file
run from that directory
./apollo-ios-cli generate
this will generate the swift files for graphql
这里我使用apollo-ios版本1.0.2
here is the screen shot of error
1条答案
按热度按时间zbdgwd5y1#
可能,您将schema命名为“schema”,这会带来冲突。请尝试将其重命名为其他名称