File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,32 @@ xcodebuild:
48
48
fi ;
49
49
50
50
xcodebuild-test :
51
- $(MAKE ) xcodebuild -testPlan " $( TEST_PLAN) "
51
+ if test " $( PLATFORM) " = " iOS" ; \
52
+ then $(XCODEBUILD ) \
53
+ -testPlan " $( TEST_PLAN) " \
54
+ -destination platform=" $( PLATFORM_IOS) " ; \
55
+ elif test " $( PLATFORM) " = " macOS" ; \
56
+ then $(XCODEBUILD ) \
57
+ -testPlan " $( TEST_PLAN) " \
58
+ -destination platform=" $( PLATFORM_MACOS) " ; \
59
+ elif test " $( PLATFORM) " = " tvOS" ; \
60
+ then $(XCODEBUILD ) \
61
+ -testPlan " $( TEST_PLAN) " \
62
+ -destination platform=" $( PLATFORM_TVOS) " ; \
63
+ elif test " $( PLATFORM) " = " watchOS" ; \
64
+ then $(XCODEBUILD ) \
65
+ -testPlan " $( TEST_PLAN) " \
66
+ -destination platform=" $( PLATFORM_WATCHOS) " ; \
67
+ elif test " $( PLATFORM) " = " visionOS" ; \
68
+ then $(XCODEBUILD ) \
69
+ -testPlan " $( TEST_PLAN) " \
70
+ -destination platform=" $( PLATFORM_VISIONOS) " ; \
71
+ elif test " $( PLATFORM) " = " macCatalyst" ; \
72
+ then $(XCODEBUILD ) \
73
+ -testPlan " $( TEST_PLAN) " \
74
+ -destination platform=" $( PLATFORM_MAC_CATALYST) " ; \
75
+ else exit 1; \
76
+ fi ;
52
77
53
78
build-for-library-evolution :
54
79
swift build \
You can’t perform that action at this time.
0 commit comments