Skip to content

Commit facd511

Browse files
Nikita Patskovfacebook-github-bot
Nikita Patskov
authored andcommitted
Fix grpc-swift source files generation in OSS release builds
Summary: There was an issue that broke the release build compilation of the OSS xcodeproject. Default way to create a build rule in Xcode leads to flag that configures multiple build step invocations. That confuses Xcode build system, because we produce the same files regardless of the architecture we call that step against We do not need multiple calls for each architecture for that build rule, we need to run that command only once Differential Revision: D38535115 fbshipit-source-id: d137c3df2a53f9c09328c218a55765f97c5b1f8f
1 parent f638fbb commit facd511

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

idb_companion.xcodeproj/project.pbxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
"$(DERIVED_FILE_DIR)/$(INPUT_FILE_BASE).pb.swift",
149149
"$(DERIVED_FILE_DIR)/$(INPUT_FILE_BASE).grpc.swift",
150150
);
151+
runOncePerArchitecture = 0;
151152
script = "# Generate grpc code from .proto\nPATH=$PATH:/opt/homebrew/bin/:/usr/local/bin:$HOME/homebrew/bin/\n\nGRPC_PACKAGE_DIR=${BUILD_DIR%Build/*}SourcePackages/checkouts/grpc-swift\n\nprotoc \\\n --proto_path=$INPUT_FILE_DIR \\\n --swift_out=$DERIVED_FILE_DIR \\\n --grpc-swift_out=$DERIVED_FILE_DIR \\\n --grpc-swift_opt=Visibility=Public \\\n --swift_opt=Visibility=Public \\\n --plugin=protoc-gen-grpc-swift=$GRPC_PACKAGE_DIR/.build/release/protoc-gen-grpc-swift \\\n --plugin=protoc-gen-swift=$GRPC_PACKAGE_DIR/.build/release/protoc-gen-swift \\\n $INPUT_FILE_PATH\n";
152153
};
153154
/* End PBXBuildRule section */

0 commit comments

Comments
 (0)