nerdsupremacist / Graphaello

A Tool for Writing Declarative, Type-Safe and Data-Driven Applications in SwiftUI using GraphQL

Home Page:https://graphaello.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix warnings from json files in target

nonfungibletunji opened this issue · comments

while working on creating a sample application, using the apollographl tutorial endpoint, https://apollo-fullstack-tutorial.herokuapp.com/

I am getting errors and warnings.

Showing Recent Issues
no rule to process file '/Users/stunjiturner/Downloads/CodeReviewRepos/OutOfThisWorld-Graphaello/ApolloFullstackTutorialHerokuappCom.graphql.json' of type 'text.json' for architecture 'x86_64'

Showing Recent Issues
/Users/stunjiturner/Downloads/CodeReviewRepos/OutOfThisWorld-Graphaello/Graphaello.swift:564:23: 'ApolloFullstackTutorialHerokuappCom' is ambiguous for type lookup in this context

This is a bug referring to how the json file is being added to the target

The issue is in this line:

_ = try buildPhase.add(file: file)

It it adding the json file as if it were a swift file.
We will need to check what it should be added as instead, and add an option to createFile to define the option

Oh forgot to write here that this issue was fixed with: 0.1.0-alpha.11