You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
swift build fails: CFRRewriter memberwise initializer is inaccessible (private) #787
Building the package fails in H264MatroskaSlotPermutation.swift:
Sources/AetherEngine/Video/H264MatroskaSlotPermutation.swift:624:28: error:
'H264MatroskaSlotPermutation.CFRRewriter' initializer is inaccessible due to 'private' protection level
Swift makes the synthesized memberwise initializer private when any stored property is private. The call site is outside the struct, in the .reconstruct branch of the enclosing class:
Tests/AetherEngineTests/Issue511MatroskaCodingOrderTests.swift calls the same initializer at lines 216, 240 and 267, so the tests should hit the same error.
Result
The AetherEngine target does not compile, so nothing that depends on the package builds, and the CFRRewriter tests cannot compile either.
Suggested fix
Declare the initializer explicitly inside CFRRewriter:
Thank you @ijuniorfu, a precise report with the cause and the fix already worked out. Fixed in #789, merged as 2eb5915, with the initializer written out as suggested.
The reason it slipped through: CI and the release builds run on Xcode 27 (Swift 6.4), which leaves private stored properties with a default out of the memberwise initializer, so the synthesized one stayed internal there. Earlier compilers make it private. A scan of Sources/ and Tests/ found no second struct with that shape.
The README lists Xcode 27 as the tested toolchain, so older ones are not covered by CI. If anything else fails to compile on 6.3, a report like this one is welcome.
The break came in with #762 and was never in a release; the fix ships with it in the next AetherEngine release. I am leaving this open until it builds for you.
Activity
Merge PR #789 'fix/787-cfr-rewriter-init': the CFRRewriter initialize…
superuser404notfound commentedon Oct 15, 2026
Thank you @ijuniorfu, a precise report with the cause and the fix already worked out. Fixed in #789, merged as 2eb5915, with the initializer written out as suggested.
The reason it slipped through: CI and the release builds run on Xcode 27 (Swift 6.4), which leaves private stored properties with a default out of the memberwise initializer, so the synthesized one stayed internal there. Earlier compilers make it private. A scan of
Sources/andTests/found no second struct with that shape.The README lists Xcode 27 as the tested toolchain, so older ones are not covered by CI. If anything else fails to compile on 6.3, a report like this one is welcome.
The break came in with #762 and was never in a release; the fix ships with it in the next AetherEngine release. I am leaving this open until it builds for you.
superuser404notfound commentedon Oct 15, 2026
Released in 7.37.0 (
a3db0d7): theCFRRewriterinitializer is spelled out, so the package builds on toolchains before Swift 6.4 again.fix(build): spell out the CFRRewriter initializer for toolchains befo…