The 12.5 RC still has deal-breaker problems for our team.. we worked around the 12.4 linker issues by forcing all our SPM products to be .dynamic
and using DISABLE_DIAMOND_PROBLEM_DIAGNOSTIC
.
We had hoped that Xcode 12.5 would be our saviour. When the RC came out we went through all our packages and removed the harcoded .dynamic
from each Package.swift - however when using 12.5 to build we get this error:
The Xcode build system has crashed. Please close and reopen your workspace.
(sometimes the error is prefixed with unexpected service error:
)
The funny thing is.... 12.5's xcodebuild
command works just fine!
DEVELOPER_DIR=/Applications/Xcode12.5.app/Contents/Developer xcodebuild -workspace ./Redacted.xcworkspace -scheme Redacted_iOS\ Prod build
Our package structure is a little complex but we would definitely expect Xcode to handle it. The issue stops happening if we remove the package with the blue background (and therefore packages that it depends on).
The diagram above shows our SPM dependency structure with our app target at the top. Some of these products exist in the same package, others have their own package (there are 8 packages all together). Something else to note that we think may be related is that the package shown in blue has some products that are only used in our unit test targets.
Has anyone else has experienced this in 12.5? For now we are sticking to 12.4 and (again) hoping that the next RC solves all our problems...