Skip to content

Unable to transition from CocoaPods to Swift Package #3

@Ali-Pourasad

Description

@Ali-Pourasad

The BundleFileUpdater uses a Run Script the user has to configure in the project's Build Phases settings (cf. README).

The following part of this script gets the file 'BundleFileUpdater.swift' from the disk:
cat "$PODS_ROOT/BundleFileUpdater/BundleFileUpdater/BundleFileUpdater.swift"

Then environment variable $PODS_ROOT is used here to get the path to the directory of this library. There is no Swift Package equivalent environment variable to get the path to the directory of the packages.

A possible solution:
Users have to copy the file 'BundleFileUpdater.swift' into their project and enter the path into the script using the environment variable $SRCROOT, which is the path to the project directory.

@tinora and I discussed this solution and came to the conclusion that the BundleFileUpdater will currently not be updated to a Swift Package since the solution is not good enough. The BundleFileUpdater will be updated once there is a proper solution for this problem is found, or it remains as one of the only used intern libraries using CocoaPods.

In Apple's Swift feedback forum I have created an associated task & I asked on Stackoverflow an according question to this problem

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