2 ; RUN: split-file %s %t
3 ; RUN: sed -e "s|DSTROOT|%/t|g" %t/inputs.json.in > %t/inputs.json
4 ; RUN: yaml2obj %t/Xplatform.yaml -o=%t/Xplatform
6 // Check that in zippered mode, a successful pass runs in both macos & maccatalyst.
7 ; RUN: clang-installapi %t/inputs.json \
8 ; RUN: --target=x86_64-apple-macos10.15 -darwin-target-variant x86_64-apple-ios13.1-macabi \
9 ; RUN: -Xplatform_ios-macabi -iframework %t/System/iOSSupport/System/Library/Frameworks \
10 ; RUN: -install_name /System/Library/Frameworks/Xplatform.framework/Versions/A/Xplatform \
11 ; RUN: -fdefine-target-os-macros --verify-against=%t/Xplatform --verify-mode=Pedantic \
12 ; RUN: -o Xplatform.tbd -F%t/Frameworks \
13 : RUN: -current_version 1 -compatibility_version 1 2>&1 | FileCheck --allow-empty %s\
14 ; RUN: --implicit-check-not warning: --implicit-check-not error:
16 // A missing header error should be invoked in macos pass because it wasn't given the needed search path.
17 ; RUN: mv %t/Xplatform-macosx.h %t/Frameworks/Xplatform.framework/Headers/Xplatform.h
19 ; RUN: not clang-installapi %t/inputs.json \
20 ; RUN: --target=x86_64-apple-macos10.15 -darwin-target-variant x86_64-apple-ios13.1-macabi \
21 ; RUN: -Xplatform_ios-macabi -iframework %t/System/iOSSupport/System/Library/Frameworks \
22 ; RUN: -install_name /System/Library/Frameworks/Xplatform.framework/Versions/A/Xplatform \
23 ; RUN: -fdefine-target-os-macros --verify-against=%t/Xplatform --verify-mode=Pedantic \
24 ; RUN: -o Xplatform.tbd -F%t/Frameworks \
25 : RUN: -current_version 1 -compatibility_version 1 2>&1 | FileCheck -check-prefix=MACOSFAIL %s
27 ; MACOSFAIL: fatal error: 'IOSMac/IOSMac.h' file not found
29 ;--- Frameworks/Xplatform.framework/Headers/Xplatform.h
30 #if TARGET_OS_MACCATALYST
31 #include <IOSMac/IOSMac.h>
36 #if TARGET_OS_MACCATALYST
44 ;--- Xplatform-macosx.h
45 #include <IOSMac/IOSMac.h>
53 ;--- System/iOSSupport/System/Library/Frameworks/IOSMac.framework/Headers/IOSMac.h
92 content: 554889E5B8010000005DC3
93 - sectname: __unwind_info
105 content: 010000001C000000000000001C000000000000001C00000002000000AD4F00003400000034000000B94F00000000000034000000030000000C000100100001000000000000000001
118 - sectname: __objc_imageinfo
130 content: '0000000040000000'
147 current_version: 65536
148 compatibility_version: 65536
149 Content: '/System/Library/Frameworks/Xplatform.framework/Versions/A/Xplatform'
151 - cmd: LC_DYLD_INFO_ONLY
191 uuid: 4AA4F126-BD02-359C-B3EF-E53AD399B590
192 - cmd: LC_BUILD_VERSION
201 - cmd: LC_BUILD_VERSION
210 - cmd: LC_SOURCE_VERSION
213 - cmd: LC_SEGMENT_SPLIT_INFO
222 current_version: 14942208
223 compatibility_version: 65536
224 Content: '/usr/lib/libobjc.A.dylib'
231 current_version: 84687873
232 compatibility_version: 65536
233 Content: '/usr/lib/libSystem.B.dylib'
235 - cmd: LC_FUNCTION_STARTS
239 - cmd: LC_DATA_IN_CODE
281 "path" : "DSTROOT/Frameworks/Xplatform.framework/Headers/Xplatform.h",