/Users/[username]/Library/Developer/Xcode/DerivedData/MyLibrary-guqxdcvdzivakeakwqoytmpxwgur/Build/Intermediates.noindex/ArchiveIntermediates/MyLibrary/IntermediateBuildFilesPath/swift-markdown.build/Release-iphoneos/Markdown.build/Objects-normal/arm64/Markdown.private.swiftinterface:4:8: error: no such module 'CAtomic'
import CAtomic
^
/Users/[username]/Library/Developer/Xcode/DerivedData/MyLibrary-guqxdcvdzivakeakwqoytmpxwgur/Build/Intermediates.noindex/ArchiveIntermediates/MyLibrary/IntermediateBuildFilesPath/swift-markdown.build/Release-iphoneos/Markdown.build/Objects-normal/arm64/Markdown.private.swiftinterface:1:1: error: failed to verify module interface of 'Markdown' due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^
** ARCHIVE FAILED **
I've created an incredibly simple package with
swift-markdown
as the only dependency.Archiving my package for distribution with the following command fails:
xcodebuild archive -scheme MyLibrary -destination generic/platform=iOS -archivePath /Users/[username]/Desktop/iOS.xcarchive BUILD_LIBRARY_FOR_DISTRIBUTION=YES
Removing
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
succeedsswift-tools-version: 5.10
Xcode + CLI Tools Version 15.4 (15F31d)
Also reported as Apple Feedback FB14954614
Post on forums.swift.org