yonaskolb / yonaskolb/XcodeGen

Xcode removing Package.resolved

Open
#1,460 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
8.8k
Forks
908
Avg merge
17d 14h
Merged PRs (30d)
2

Description

Environment

  • xcodegen version: 2.39.1
  • Xcode version: 15.3

Description

I've encountered an issue where xcodegen fails to retain the CleverTapGeofence Swift Package Manager (SPM) dependency in the Package.resolved file of the generated Xcode project. The dependency is correctly specified in the .yml configuration file, and when dependencies are resolved directly through Xcode, the CleverTapGeofence package is successfully added. However, upon generating the project with xcodegen, this particular package is missing from Package.resolved.

Steps to Reproduce

  1. Specify CleverTapGeofence package in the .yml configuration file for xcodegen.
  2. Generate the Xcode project using xcodegen.
  3. Observe that the CleverTapGeofence package is missing from Package.resolved in the generated project.

Expected Behavior

The CleverTapGeofence package, as specified in the .yml file, should be retained in the Package.resolved file of the generated project, similar to how it is retained when adding the package directly through Xcode's SPM integration.

Actual Behavior

The CleverTapGeofence package is missing from the Package.resolved file in the generated Xcode project, despite being specified in the .yml configuration file for xcodegen.

Additional Information

  • .yml Configuration Snippet for CleverTapGeofence:
    packages:
       CleverTapGeofence:
          url: https://github.com/CleverTap/clevertap-geofence-ios.git
          from: 1.0.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the provided .yml configuration and inspect the generated Xcode project's Package.resolved file. Compare the generated result with Xcode's direct SPM resolution; done means the CleverTapGeofence dependency specified in the configuration is retained.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.