Skip to content

Commit c9e1032

Browse files
committed
Remove underscores from CFBundleIdentifier of libraries.
Underscores aren't permitted in these identifiers. Fixes rdar://84645973.
1 parent 889d65d commit c9e1032

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,9 @@ function(add_swift_target_library_single target name)
12631263
set(PLIST_INFO_PLIST "Info.plist" CACHE STRING "Plist name")
12641264
if("${SWIFTLIB_SINGLE_SDK}" IN_LIST SWIFT_DARWIN_PLATFORMS AND SWIFTLIB_SINGLE_IS_STDLIB)
12651265
set(PLIST_INFO_NAME ${name})
1266-
set(PLIST_INFO_UTI "com.apple.dt.runtime.${name}")
1266+
1267+
# Underscores aren't permitted in the bundle identifier.
1268+
string(REPLACE "_" "" PLIST_INFO_UTI "com.apple.dt.runtime.${name}")
12671269
set(PLIST_INFO_VERSION "${SWIFT_VERSION}")
12681270
if (SWIFT_COMPILER_VERSION)
12691271
set(PLIST_INFO_BUILD_VERSION

0 commit comments

Comments
 (0)