File tree 2 files changed +13
-6
lines changed
tools/generators/pbxnativetargets/src/Generator
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -186,11 +186,15 @@ extension Generator.CalculatePlatformVariantBuildSettings {
186
186
buildSettings. append (
187
187
. init(
188
188
key: " LIBRARY_SEARCH_PATHS " ,
189
- value: platformVariant. librarySearchPaths
190
- . map {
191
- let path = $0. path. split ( separator: " / " ) . dropFirst ( ) . joined ( separator: " / " )
192
- return " \" $(BAZEL_OUT)/ \( path) \" "
193
- }
189
+ value: (
190
+ platformVariant. librarySearchPaths
191
+ . map {
192
+ let path = $0. path. split ( separator: " / " ) . dropFirst ( ) . joined ( separator: " / " )
193
+ return " \" $(BAZEL_OUT)/ \( path) \" "
194
+ } + [
195
+ " \" /Applications/Xcode_16.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/16/lib/darwin \" "
196
+ ]
197
+ )
194
198
. sorted ( )
195
199
. joined ( separator: " " )
196
200
. pbxProjEscaped
Original file line number Diff line number Diff line change @@ -281,7 +281,10 @@ extension Generator.CreateBuildPhases {
281
281
)
282
282
}
283
283
284
- let librariesToLinkSubIdentifiers = consolidatedInputs. librariesToLinkPaths. map { bazelPath in
284
+ let libs = consolidatedInputs. librariesToLinkPaths + [
285
+ " /Applications/Xcode_16.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/16/lib/darwin/libclang_rt.iossim.a "
286
+ ]
287
+ let librariesToLinkSubIdentifiers = libs. map { bazelPath in
285
288
return (
286
289
bazelPath,
287
290
createBuildFileSubIdentifier (
You can’t perform that action at this time.
0 commit comments