Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue that it is not possible to remove a remote package #803

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

kevin-kp
Copy link
Contributor

Resolves #802

Implementation πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

It checks that only the references are kept that are not part of the current type.
This is done by getting the object of the reference and checking the type of this reference.

  • [ x] Fix issue
  • [ x] Add unit test

Copy link

netlify bot commented Nov 13, 2023

βœ… Deploy Preview for xcodeproj ready!

Name Link
πŸ”¨ Latest commit e9785f5
πŸ” Latest deploy log https://app.netlify.com/sites/xcodeproj/deploys/6553356ea7a0290008e38d96
😎 Deploy Preview https://deploy-preview-803--xcodeproj.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@art-divin
Copy link
Contributor

A bit shame that this PR did not make it into 8.16.0 release 😒

@luispadron
Copy link
Collaborator

I dont have ability to merge. @pepicrft, @danyf90 @fortmarek could one of you take a look?

Copy link
Collaborator

@kwridan kwridan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this @kevin-kp

small note, to correctly remove a package, there's a few other objects and references that need to be removed (not just from packageReferences, see https://github.com/tuist/XcodeProj/blob/main/Sources/XcodeProj/Objects/Project/PBXProject.swift#L207)

@kwridan kwridan merged commit 338e983 into tuist:main Nov 27, 2023
@kevin-kp kevin-kp deleted the bugfix/cannot-remove-remote-package branch November 27, 2023 19:52
@kevin-kp
Copy link
Contributor Author

@kwridan
Thank you, I noticed when there were indeed other things still present in the pbxproj and I indeed used that method for the reverse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot remove remotePackage
4 participants