作者執(zhí)行下列步驟解決了 Kill xcode Then completely remove the derived data directory (empty trash just to be absolutely sure). Restart Xcode Reset Swift package cache 第四步驟 圖.png 傳送門 https://forums.swift.org/t/missing-package-product-error-for-all-local-swift-packages-when-switching-git-branches/38041