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

Rename module target to Knit and fix example project #105

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

bradfol
Copy link
Collaborator

@bradfol bradfol commented Jan 10, 2024

This allows both SPM and Cocoapods can use import Knit

I am now adding Knit as an SPM package dependency to the Example project, and I removed the previous reference that pulled in all of Knit’s files into the project.

Also added a readme and a bootstrap script that creates the CLI executable.

This allows both SPM and Cocoapods can use `import Knit`
@bradfol bradfol requested a review from a team January 10, 2024 00:10
I am now adding Knit as an SPM package dependency, and I removed the previous reference that pulled in all of Knit’s files into the project.

Also added a readme and a bootstrap script that creates the CLI executable.
@bradfol bradfol force-pushed the bradfol/fix-example branch from 098f348 to 8250ac5 Compare January 10, 2024 00:26
@@ -36,7 +36,6 @@
C43334F42A3FDD43003BA9E3 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
C43334F62A3FDD44003BA9E3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
C43334F92A3FDD44003BA9E3 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
C43335042A3FDD78003BA9E3 /* knit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = knit; path = ..; sourceTree = "<group>"; };
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No longer pulling in the parent directory into the project as a folder reference

Comment on lines +527 to +532
/* Begin XCLocalSwiftPackageReference section */
2C360AE82B4E1A2B00C88B99 /* XCLocalSwiftPackageReference ".." */ = {
isa = XCLocalSwiftPackageReference;
relativePath = ..;
};
/* End XCLocalSwiftPackageReference section */
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now using an SPM local package reference

@@ -230,6 +233,7 @@
);
inputPaths = (
"$(SRCROOT)/KnitExample/KnitExampleAssembly.swift",
"$(SRCROOT)/KnitExample/KnitExampleUserAssembly.swift",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Was getting a sandbox error so added the additional input assembly path

@bradfol bradfol marked this pull request as ready for review January 10, 2024 00:44
@bradfol bradfol merged commit 3be5b90 into main Jan 10, 2024
2 checks passed
@bradfol bradfol deleted the bradfol/fix-example branch January 10, 2024 00:44
@bradfol
Copy link
Collaborator Author

bradfol commented Jan 10, 2024

Fixes #102

@bradfol bradfol linked an issue Jan 10, 2024 that may be closed by this pull request
bradfol added a commit that referenced this pull request Jan 24, 2024
Needed to update path after previous PR #105
@bradfol bradfol mentioned this pull request Jan 24, 2024
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.

Module name differs between podspec and SPM
2 participants