Hi all, I am having issues trying to assemble XCF...
# multiplatform
j
Hi all, I am having issues trying to assemble XCFramework. i am getting the following errors: -
Copy code
ld: warning: Could not find or use auto-linked library 'swiftCore'
ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'
ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find or use auto-linked library 'swift_Concurrency'
ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftCompatibility51'
ld: warning: Could not find or use auto-linked library 'swiftObjectiveC'
ld: warning: Could not find or use auto-linked library 'swiftDispatch'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
ld: warning: Could not find or use auto-linked library 'swiftUIKit'
ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find or use auto-linked library 'swiftCompatibility50'
ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
ld: warning: Could not find or use auto-linked library 'swiftCompatibilityDynamicReplacements'
ld: warning: Could not find or use auto-linked library 'swiftMetal'
ld: warning: Could not find or use auto-linked library 'swiftFileProvider'
ld: warning: Could not find or use auto-linked library 'swiftDataDetection'
ld: warning: Could not find or use auto-linked library 'swiftCompatibilityConcurrency'
I have seen a few bugs in IDEA bug page but nothing I do seems to fix it
d
And just to verify, you do have Xcode or the Apple Developer Tools installed?
j
Yep. I managed to get past it in the end. Had to add:
Copy code
binaries.all {
    linkerOpts("-ObjC")
    linkerOpts(opts)
    linkerOpts("-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/$platform")
    linkerOpts("-L/usr/lib/swift/")
}

binaries.getTest(DEBUG).apply {
    linkerOpts(
        "-rpath",
        "/usr/lib/swift"
    )
}
119 Views