Skip to content

SwiftUI Preview Fails #1039

@peck

Description

@peck

I think I've followed the installation instructions on the docs page, https://www.apollographql.com/docs/ios/installation/, and my builds works and runs on the similar just fine, but my swiftui preview breaks with this error in the diagnostics. I'm new to swiftui (though fairly familiar with Apollo/graphql from other projects) and searching didn't find similar issue.

apollo-ios -> 0.23.0
Xcode -> 11.3.1

use of unresolved identifier \'Process\'

----------------------------------------

SchemeBuildError: Failed to build the scheme "practice"

use of unresolved identifier 'Process'

Compile /Users/peck/Library/Developer/Xcode/DerivedData/practice-ffshylstkbdpuwdygwokyrmihofw/SourcePackages/checkouts/apollo-ios/Sources/ApolloCodegenLib/Basher.swift:
/Users/peck/Library/Developer/Xcode/DerivedData/practice-ffshylstkbdpuwdygwokyrmihofw/SourcePackages/checkouts/apollo-ios/Sources/ApolloCodegenLib/Basher.swift:27:16: error: use of unresolved identifier 'Process'
    let task = Process()
               ^~~~~~~

On apollo-ios 0.22.0 I don't see the issue and preview seems to generally work as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    build-issueIssues occurring when attempting to build

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions