-
Notifications
You must be signed in to change notification settings - Fork 7
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
Replace "incorrect" types to make project generation work with xcodeproj #8
Conversation
@fdiaz any reason not to contribute this back to |
@fdiaz did you end up submitting this to |
I've been just lazy but I need to do this! I'll do this tomorrow. Thanks for the reminder @donholly ! |
@fdiaz 🙏 awesome news - thank you! We ended up having to fork Buck as well and pulled this change into ours. We also came across a similar issue for |
@donholly we started moving away from |
Upstream PR facebook#2257 |
Summary: Buck currently outputs an XML for `project.pbxproj` where `runOnlyForDeploymentPostprocessing` and `dstSubfolderSpec` are treated as `integer`. ``` <key>runOnlyForDeploymentPostprocessing</key> <integer>1</integer> <key>dstSubfolderSpec</key> <integer>16</integer> ``` When trying to open the `.xcodeproj` file with [xcodeproj](https://github.com/CocoaPods/Xcodeproj) we're getting: > [Xcodeproj] Type checking error: got `Fixnum` for attribute: Attribute `dstSubfolderSpec` (type: `simple`, classes: `[String]`, owner class: `PBXCopyFilesBuildPhase`) This [seems to be a bug](CocoaPods/Xcodeproj#475) in xcodeproj itself. To work around this, I'm forcing these 2 keys to have Strings as values instead of Int. After doing this, `xcodeproj` can succesfully open our project. This was all already done in our [fork of buck here](airbnb#8) --- I'm also including here donholly commit in their fork that adds the same workaround for the same issue in PBXContainerItemProxy Clubroom@8fa5ae5 Pull Request resolved: #2257 Test Plan: Imported from GitHub, without a Test Plan: line. Reviewed By: williamtwilson, v-jizhang Pulled By: v-jizhang shipit-source-id: 90ec5e0dab4922d70b5b01013a548384aa0d0f3b
Buck currently outputs an XML for
project.pbxproj
whererunOnlyForDeploymentPostprocessing
anddstSubfolderSpec
are treated asinteger
.When trying to open the
.xcodeproj
file with xcodeproj we're getting:This seems to be a bug in xcodeproj itself.
To work around this, I'm forcing these 2 keys to have Strings as values instead of Int. After doing this,
xcodeproj
can succesfully open our project.cc @dfed @bachand @shepting