Open danthorpe opened 6 months ago
@danthorpe this seems more like a bug in Xcode as mentioned here.
i got the same warnngs in xcode 15.4, macbook pro M3, swift version 5.10, i search a workaround is
#if compiler(>= 5.10)
private import XXX
#else
@_implementationOnly import XXX
#endif
so when i can resolve these warnings in future release versions of the MetaCodable?
What warnings are you getting @913868456?
Describe the bug
xcodebuild archive
fails in the following scenario.To Reproduce Steps to reproduce the behavior:
MetaCodable
,HelperCoders
and uses theMetaProtocolCodable
plugin.xcodebuild archive
)Expected behavior I should be able to archive the product.
Actual behaviour Build script fails because build tools cannot find the executable tool
ProtocolGen
.Screenshots
Environment (please complete the following information, remove ones not applicable):
Additional context I have created a small project to demonstrate this issue: https://github.com/danthorpe/metacodable_demo
A possible solution, would be to export
ProtocolGen
as a Swift artefact bundle, and reference this as a binary target in your Package.swift. e.g. how SwiftLint is packaged. In this project, on macOS, the dependency is a binary target instead of the source code executable.