Open swift-ci opened 2 years ago
Issue Description:
While building ios app with:
$ clang -v Apple clang version 13.0.0 (clang-1300.0.29.30)
The following command invocation fails:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool --copy --verbose --strip-bitcode --platform iphonesimulator --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --source-libraries /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator --scan-executable buck-out/gen/Apps/My/My#dwarf,no-include-frameworks,strip-debug/My.app/My --scan-folder buck-out/gen/Apps/My/My#dwarf,no-include-frameworks,strip-debug/My.app/Frameworks --scan-folder buck-out/gen/Apps/My/My#dwarf,no-include-frameworks,strip-debug/My.app/PlugIns --destination /Users/ak/My/buck-out/bin/Apps/My/__swift_temp__My#dwarf,no-include-frameworks,strip-debug --sign
swift-stdlib-tool*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSString stringWithUTF8String:]: NULL cString' *** First throw call stack: ( 0 CoreFoundation 0x00007fff2055a1db __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff20293d92 objc_exception_throw + 48 2 Foundation 0x00007fff21234118 __destroy_helper_block_e8_32o40r + 0 3 swift-stdlib-tool 0x0000000108cebe19 main + 873 4 libdyld.dylib 0x00007fff20403f3d start + 1 5 ??? 0x0000000000000013 0x0 + 19 )
(
0 CoreFoundation 0x00007fff2055a1db __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20293d92 objc_exception_throw + 48
2 Foundation 0x00007fff21234118 __destroy_helper_block_e8_32o40r + 0
3 swift-stdlib-tool 0x0000000108cebe19 main + 873
4 libdyld.dylib 0x00007fff20403f3d start + 1
5 ??? 0x0000000000000013 0x0 + 19
)
Comment by Aditya (JIRA)
$ xcodebuild -version
Xcode 13.2 Build version 13C90
Environment
MacOS Big Sur 11.6.1Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | swift | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: c1fc19d2a1d6b8e3ef73638f12996e62Issue Description:
While building ios app with:
$ clang -v Apple clang version 13.0.0 (clang-1300.0.29.30)
The following command invocation fails:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool --copy --verbose --strip-bitcode --platform iphonesimulator --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --source-libraries /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator --scan-executable buck-out/gen/Apps/My/My#dwarf,no-include-frameworks,strip-debug/My.app/My --scan-folder buck-out/gen/Apps/My/My#dwarf,no-include-frameworks,strip-debug/My.app/Frameworks --scan-folder buck-out/gen/Apps/My/My#dwarf,no-include-frameworks,strip-debug/My.app/PlugIns --destination /Users/ak/My/buck-out/bin/Apps/My/__swift_temp__My#dwarf,no-include-frameworks,strip-debug --sign
swift-stdlib-tool*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSString stringWithUTF8String:]: NULL cString' *** First throw call stack:
(
0 CoreFoundation 0x00007fff2055a1db __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20293d92 objc_exception_throw + 48
2 Foundation 0x00007fff21234118 __destroy_helper_block_e8_32o40r + 0
3 swift-stdlib-tool 0x0000000108cebe19 main + 873
4 libdyld.dylib 0x00007fff20403f3d start + 1
5 ??? 0x0000000000000013 0x0 + 19
)