Bug 193799

Summary: Fix XCBuild issue related to codesigning WebContent process
Product: WebKit Reporter: Keith Rollin <krollin>
Component: Tools / TestsAssignee: Keith Rollin <krollin>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, ap, bfulgham, commit-queue, jeffm, lforschler, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=200242
Attachments:
Description Flags
Patch none

Keith Rollin
Reported 2019-01-24 16:39:21 PST
Building with XCBuild enabled results in the following build error: ---------- CodeSign ${HOME}/Library/Developer/Xcode/DerivedData/Safari-djbsfwsxghzlwwevmsfmutmmwqtx/Build/Products/Debug-iphoneos/com.apple.WebKit.WebContent.xpc (in target: WebContent) cd /Volumes/Data/dev/webkit/branches/xcfilelists/OpenSource/Source/WebKit export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/iOS.xctoolchain/usr/bin/codesign_allocate Signing Identity: "-" /usr/bin/codesign --force --sign - --entitlements ${HOME}/Library/Developer/Xcode/DerivedData/Safari-djbsfwsxghzlwwevmsfmutmmwqtx/Build/Intermediates.noindex/WebKit.build/Debug-iphoneos/WebContent.build/com.apple.WebKit.WebContent.xpc.xcent --timestamp=none ${HOME}/Library/Developer/Xcode/DerivedData/Safari-djbsfwsxghzlwwevmsfmutmmwqtx/Build/Products/Debug-iphoneos/com.apple.WebKit.WebContent.xpc ${HOME}/Library/Developer/Xcode/DerivedData/Safari-djbsfwsxghzlwwevmsfmutmmwqtx/Build/Intermediates.noindex/WebKit.build/Debug-iphoneos/WebContent.build/com.apple.WebKit.WebContent.xpc.xcent: cannot read entitlement data Command CodeSign failed with a nonzero exit code ---------- The issue is likely related to re-ordered build steps performed by the new XCBuild rules. The custom step of deleting the .xcent file is probably occurring after Xcode has auto-generated this file for its own purposes. We need to figure out what the appropriate alternative is.
Attachments
Patch (43.25 KB, patch)
2019-02-06 19:14 PST, Keith Rollin
no flags
Radar WebKit Bug Importer
Comment 1 2019-01-24 16:39:46 PST
Keith Rollin
Comment 2 2019-02-06 19:14:03 PST
Brent Fulgham
Comment 3 2019-02-07 10:39:30 PST
Comment on attachment 361368 [details] Patch Wow! This looks much simpler! r=me
WebKit Commit Bot
Comment 4 2019-02-07 11:26:35 PST
Comment on attachment 361368 [details] Patch Clearing flags on attachment: 361368 Committed r241135: <https://trac.webkit.org/changeset/241135>
WebKit Commit Bot
Comment 5 2019-02-07 11:26:37 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.