-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
This allows both SPM and Cocoapods can use `import Knit`
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.
098f348
to
8250ac5
Compare
@@ -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>"; }; |
There was a problem hiding this comment.
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
/* Begin XCLocalSwiftPackageReference section */ | ||
2C360AE82B4E1A2B00C88B99 /* XCLocalSwiftPackageReference ".." */ = { | ||
isa = XCLocalSwiftPackageReference; | ||
relativePath = ..; | ||
}; | ||
/* End XCLocalSwiftPackageReference section */ |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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
Fixes #102 |
Needed to update path after previous PR #105
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.