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

Swift packge manager support #52

Open
CrazyFanFan opened this issue Dec 4, 2019 · 3 comments · May be fixed by #59
Open

Swift packge manager support #52

CrazyFanFan opened this issue Dec 4, 2019 · 3 comments · May be fixed by #59

Comments

@CrazyFanFan
Copy link

Uniquify done
Following lines were deleted because of invalid format or no longer being used:
		636D7944239107EC005672E7 /* Yams in Frameworks */ = {isa = PBXBuildFile; productRef = 636D7943239107EC005672E7 /* Yams */; };
 				636D7944239107EC005672E7 /* Yams in Frameworks */,
 				636D7943239107EC005672E7 /* Yams */,
 				636D7942239107EC005672E7 /* XCRemoteSwiftPackageReference "Yams" */,
 		636D7942239107EC005672E7 /* XCRemoteSwiftPackageReference "Yams" */ = {
 		636D7943239107EC005672E7 /* Yams */ = {
 			package = 636D7942239107EC005672E7 /* XCRemoteSwiftPackageReference "Yams" */;
Sort done
Uniquify and Sort done
@truebit
Copy link
Owner

truebit commented Dec 6, 2019

More details, please

@CrazyFanFan
Copy link
Author

  • Create a project with Xcode which version >= 11.0
  • Project ==> Swift Packages ==> +,
  • Add an arbitrary dependency
  • run xunique Name.xcodeproj on your terminal
    Here's a Demo
    xUniqueDemo.zip

@andrassomogyi
Copy link

andrassomogyi commented May 21, 2020

I can assure. xUnique breaks SwiftPM related nodes like the following:

/* Begin XCRemoteSwiftPackageReference section */
		D6B1CDCF2476BE73007A80F8 /* XCRemoteSwiftPackageReference "MBProgressHUD" */ = {
			isa = XCRemoteSwiftPackageReference;
			repositoryURL = "https://github.com/jdg/MBProgressHUD";
			requirement = {
				kind = upToNextMajorVersion;
				minimumVersion = 1.2.0;
			};
		};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
		D6B1CDD02476BE73007A80F8 /* MBProgressHUD */ = {
			isa = XCSwiftPackageProductDependency;
			package = D6B1CDCF2476BE73007A80F8 /* XCRemoteSwiftPackageReference "MBProgressHUD" */;
			productName = MBProgressHUD;
		};
/* End XCSwiftPackageProductDependency section */

And removes all the lines related to that dependency you try to use with SwiftPM.

Here is a the output:

Uniquify...
Uniquify done
Following lines were deleted because of invalid format or no longer being used:
		D6B1CDD12476BE73007A80F8 /* MBProgressHUD in Frameworks */ = {isa = PBXBuildFile; productRef = D6B1CDD02476BE73007A80F8 /* MBProgressHUD */; };
 				D6B1CDD12476BE73007A80F8 /* MBProgressHUD in Frameworks */,
 				D6B1CDD02476BE73007A80F8 /* MBProgressHUD */,
 				D6B1CDCF2476BE73007A80F8 /* XCRemoteSwiftPackageReference "MBProgressHUD" */,
 		D6B1CDCF2476BE73007A80F8 /* XCRemoteSwiftPackageReference "MBProgressHUD" */ = {
 		D6B1CDD02476BE73007A80F8 /* MBProgressHUD */ = {
 			package = D6B1CDCF2476BE73007A80F8 /* XCRemoteSwiftPackageReference "MBProgressHUD" */;
Sort...
Sort done
File 'project.pbxproj' was modified, please add it and then commit.

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