Skip to content

Build succeeds only on every 2nd run #20

@paladincorners

Description

@paladincorners

Currently, the build for this project succeeds only on every second run and fails on other runs (first, third, etc).

The error given is:
Build input file cannot be found: '...SwiftAuthorizationSampleHelperTool/launchd.plist'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

It seems like the launchd.plist is created by the script, but not recognised by Xcode as it is not listed as an output file of the Run Script build phase. The build fails, but since the file now exists, it succeeds on the second run where it is subsequently deleted again after compilation by the last build phase Run Script step.

I tried adding it as an output file after the run script build phase, but not sure how to reference a file in the source directory. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions