xcode 26 compile error
ld: warning: ignoring duplicate libraries: '-lc++' ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found ld: warning: Could not find or use auto-linked framework 'UIUtilities': framework 'UIUtilities' not found ld: warning: Could not parse or use implicit file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore.tbd': cannot link directly with 'SwiftUICore' because product being built is not an allowed client of it Undefined symbols for architecture arm64: "_swift_coroFrameAlloc", referenced from: ___swift_coroFrameAllocStub in libDGCharts.a6 ___swift_coroFrameAllocStub in libDGCharts.a6 ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Showing Recent Errors Only Undefined symbol: _swift_coroFrameAlloc
Linker command failed with exit code 1 (use -v to see invocation)
I have the same problem when building a swift project. It only appears on XCode+cmake builds, not with SPM (swift test).
Undefined symbols for architecture arm64:
"_swift_coroFrameAlloc", referenced from:
FrontEnd.GenericArguments.subscript.modify : (FrontEnd.NodeID<FrontEnd.GenericParameterDecl>) -> FrontEnd.CompileTimeValue? in libFrontEnd.a[138](GenericArguments.o)
FrontEnd.GenericArguments.subscript.modify : (FrontEnd.NodeID<FrontEnd.GenericParameterDecl>) -> FrontEnd.CompileTimeValue? in libFrontEnd.a[138](GenericArguments.o)
protocol witness for Swift.Collection.subscript.read : (A.Index) -> A.Element in conformance FrontEnd.GenericArguments : Swift.Collection in FrontEnd in libFrontEnd.a[138](GenericArguments.o)
protocol witness for Swift.Collection.subscript.read : (A.Index) -> A.Element in conformance FrontEnd.GenericArguments : Swift.Collection in FrontEnd in libFrontEnd.a[138](GenericArguments.o)
generic specialization <Swift.ObjectIdentifier, (id: Swift.Int, storage: FrontEnd.SourceFile.Storage)> of Swift.Dictionary._Variant.subscript.modify : (A) -> B? in libFrontEnd.a[162](SourceFile.o)
generic specialization <Swift.ObjectIdentifier, (id: Swift.Int, storage: FrontEnd.SourceFile.Storage)> of Swift.Dictionary._Variant.subscript.modify : (A) -> B? in libFrontEnd.a[162](SourceFile.o)
generic specialization <Foundation.URL, FrontEnd.SourceFile.Storage> of Swift.Dictionary._Variant.subscript.modify : (A) -> B? in libFrontEnd.a[162](SourceFile.o)
generic specialization <Foundation.URL, FrontEnd.SourceFile.Storage> of Swift.Dictionary._Variant.subscript.modify : (A) -> B? in libFrontEnd.a[162](SourceFile.o)
generic specialization <Foundation.URL, FrontEnd.SourceFile.Storage> of Swift.Dictionary._Variant.subscript.modify : (A) -> B? in libFrontEnd.a[162](SourceFile.o)
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)