-
Notifications
You must be signed in to change notification settings - Fork 458
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
Support for Xcode 11 attributes and objects. #687
Conversation
from SPM
|
@dnkoutso is SPM a tool that shows that information? Can you link me to it? |
SPM = Swift Package Manager. |
PR still WIP but added all SPM references. |
27670f1
to
f818c06
Compare
@segiddins ready for review. Uncertain on how to update test fixtures. |
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.
Should we add a fixture project to make sure we can load these new objects properly?
464703b
to
b9366d0
Compare
@@ -76,9 +80,19 @@ def ascii_plist_annotation | |||
' Project object ' | |||
end | |||
|
|||
def to_hash_as(method = :to_hash) | |||
hash_as = super | |||
if !hash_as['packageReferences'].nil? && hash_as['packageReferences'].empty? |
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.
@segiddins these values are "optional" as in a default Xcode 11 project will not include them in its plist unless at least one SPM package is added. Is there a better way in Xcodeproj to handle this?
The way I have it here is passing all tests but felt its a bit ugly. Alternatively, we can update all tests to ensure packageReferences => []
is taken into consideration even though they are none in the actual .pbxproj.
b9366d0
to
598cf59
Compare
There's also a new one called |
if !plist.value['packageProductDependencies'].nil? && plist.value['packageProductDependencies'].empty? | ||
plist.value.delete('packageProductDependencies') | ||
end | ||
plist |
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.
is this covered by any tests?
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.
it is already covered by existing tests but I might add an explicit one.
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.
added explicit tests.
@benasher44 will update. |
598cf59
to
6732e9b
Compare
Added missing |
input_files lg2m |
6732e9b
to
e127f14
Compare
e127f14
to
43adc38
Compare
Will release 1.10.0 |
Shipped. |
Closes CocoaPods/CocoaPods#8871
Closes #688