xcode 'SchemaMetadata'不是型别'Self.Schema'的成员型别

9udxz4iz  于 2022-12-14  发布在  其他
关注(0)|答案(1)|浏览(124)

我正在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

zbdgwd5y

zbdgwd5y1#

可能,您将schema命名为“schema”,这会带来冲突。请尝试将其重命名为其他名称

相关问题