I'm struggling for 2 days to solve a build error in Microsoft Azure's CI using my local machine (MBP M1 Max, Xcode 15) as a run agent for my project that uses MetaCodable macro after adding it as a Swift package, it builds locally without problems, but in the CI I got the error: "External macro implementation couldn't be found"
I've tried the following 4 flags in Other Swift Flags build setting:
-plugin-path
-load-plugin-library
-load-plugin-executable
-external-plugin-path (mentioned here)
with the following value:
$(BUILT_PRODUCTS_DIR)#MetaCodable
It turned out to be an XCode 15 problem with CI providers (Microsoft Azure and Fastlane) and it's not related to Swift Macros, a Microsoft engineer pointed that out in this thread that I recently opened on their developer community, he also pointed me to a hot discussion on Apple Developers Forums to keep track of the updates regarding this issue.
Please note that if you are using xcframeworks (e.g. link with SwiftSyntax that was built as an xcframework), you also need to specify the option "-disable-sandbox"