Skip to content

Commit 89ca697

Browse files
committed
Remove underscores from CFBundleIdentifier of libraries.
Underscores aren't permitted in these identifiers. Fixes rdar://84645973.
1 parent 2a460ca commit 89ca697

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
@@ -1201,7 +1201,9 @@ function(_add_swift_target_library_single target name)
12011201
set(PLIST_INFO_PLIST "Info.plist" CACHE STRING "Plist name")
12021202
if("${SWIFTLIB_SINGLE_SDK}" IN_LIST SWIFT_APPLE_PLATFORMS AND SWIFTLIB_SINGLE_IS_STDLIB)
12031203
set(PLIST_INFO_NAME ${name})
1204-
set(PLIST_INFO_UTI "com.apple.dt.runtime.${name}")
1204+
1205+
# Underscores aren't permitted in the bundle identifier.
1206+
string(REPLACE "_" "" PLIST_INFO_UTI "com.apple.dt.runtime.${name}")
12051207
set(PLIST_INFO_VERSION "${SWIFT_VERSION}")
12061208
if (SWIFT_COMPILER_VERSION)
12071209
set(PLIST_INFO_BUILD_VERSION

0 commit comments

Comments
 (0)