-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Returns Xcode.Project from generate() #1517
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
Conversation
@ikesyo After discussion with you, I introduce |
Could you review anyone? |
Sources/Xcodeproj/generate().swift
Outdated
/// generated project. All ancillary files will be generated inside of the | ||
/// .xcodeproj wrapper directory. | ||
/// wrapper directory is created to the path specified by `xcodeprojPath` | ||
/// Returns the path of the generated project. All ancillary files will |
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.
I think this comment needs to be updated to say it returns the project object.
This reverts commit 48c5e3d.
33b817d
to
388faab
Compare
@hartbit Sorry for my late response. I've fixed documentation of |
Sources/Xcodeproj/generate().swift
Outdated
@@ -70,10 +72,15 @@ public func generate( | |||
let extraDirs = try findDirectoryReferences(path: srcroot) | |||
|
|||
/// Generate the contents of project.xcodeproj (inside the .xcodeproj). | |||
var project: Xcode.Project! |
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.
The pbxproj
function could be called here to avoid the IUO.
@swift-ci please smoke test |
@aciidb0mb3r This LGTM. |
Thanks!! |
Motivation
I'd like to test generated Xcode Project on XcodeprojTests.
Currently,
Xcodeproj.generate
returns only its path.So we can't investigate contents of the project.
Description
I refactored Xcodeproj related code.
Xcodeproj.generate()
returnsXcode.Project
object.Thanks to this change, we can write tests easily.