You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an Xcode project for an iOS app which imports the product from the package.
Add code-signing for your app
Build and Archive from Xcode Product menu (or using 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.
Showing All Issues
sandbox-exec: execvp() of '//Users/daniel/Library/Developer/Xcode/DerivedData/Posts-aaxhnzolyyfxrgcsibzfeeijakbj/Build/Intermediates.noindex/ArchiveIntermediates/Posts/BuildProductsPath/Release/ProtocolGen' failed: No such file or directory
Screenshots
Environment (please complete the following information, remove ones not applicable):
OS: macOS
Version 14.4.1 (23E224)
Xcode Version 15.3 (15E204a)
Swift $ swift -version
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
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.
The text was updated successfully, but these errors were encountered:
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):
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
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.The text was updated successfully, but these errors were encountered: