yonaskolb / yonaskolb/XcodeGen
Xcode removing Package.resolved
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
- Specify
CleverTapGeofencepackage in the.ymlconfiguration file forxcodegen. - Generate the Xcode project using
xcodegen. - Observe that the
CleverTapGeofencepackage is missing fromPackage.resolvedin 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
.ymlConfiguration Snippet forCleverTapGeofence:packages: CleverTapGeofence: url: https://github.com/CleverTap/clevertap-geofence-ios.git from: 1.0.4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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