CocoaPods / CocoaPods/Xcodeproj

Incorrect name of SPM package

Open
#936 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
2.4k
Forks
488
PR merge metrics
No merged PRs in 30d

Description

I've added a SPM package dependency called `JWTDecode.swift`. In Xcode it appears as `JWTDecode` and that's what is set in the project.

However, if I change anything in the project (i.e. add/delete file) using Xcodeproj, the newly saved file adds a `.swift` suffix to the package name.

I guess it should be consistent with Xcode, otherwise opening the project removes `.swift` and using Xcodeproj brings `.swift` back :). I tested it with Xcode 15.3.

image

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the package-name change in Xcodeproj with the `JWTDecode.swift` dependency and Xcode 15.3, then inspect how the project serializes Swift package dependencies when saving. Done means saving a project with Xcodeproj preserves the package name as `JWTDecode`, without adding the `.swift` suffix.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.