@@ -119,7 +119,7 @@ targets:
119
119
type : bundle.unit-test
120
120
supportedDestinations : [iOS, macOS]
121
121
settings :
122
- PRODUCT_BUNDLE_IDENTIFIER : org .kiwix.Tests
122
+ PRODUCT_BUNDLE_IDENTIFIER : self .kiwix.Tests
123
123
TEST_HOST : $(BUILT_PRODUCTS_DIR)/Kiwix.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Kiwix
124
124
BUNDLE_LOADER : $(TEST_HOST)
125
125
entitlements :
@@ -138,7 +138,7 @@ targets:
138
138
type : bundle.ui-testing
139
139
supportedDestinations : [macOS]
140
140
settings :
141
- PRODUCT_BUNDLE_IDENTIFIER : org.kiwix .UITests
141
+ PRODUCT_BUNDLE_IDENTIFIER : self.Kiwix .UITests.macOS
142
142
# TEST_HOST: $(BUILT_PRODUCTS_DIR)/Kiwix.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Kiwix
143
143
BUNDLE_LOADER : $(TEST_HOST)
144
144
entitlements :
@@ -157,8 +157,11 @@ targets:
157
157
type : bundle.ui-testing
158
158
supportedDestinations : [iOS]
159
159
settings :
160
- PRODUCT_BUNDLE_IDENTIFIER : org.kiwix.UITests
161
- # TEST_HOST: $(BUILT_PRODUCTS_DIR)/Kiwix.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Kiwix
160
+ # https://developer.apple.com/documentation/xcode/build-settings-reference#Targeted-Device-Families
161
+ TARGETED_DEVICE_FAMILY : 1
162
+ SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD : NO
163
+ SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD : NO
164
+ PRODUCT_BUNDLE_IDENTIFIER : self.Kiwix.UITests.iPhone
162
165
BUNDLE_LOADER : $(TEST_HOST)
163
166
entitlements :
164
167
path : Support/Kiwix-unitTest.entitlements
@@ -172,8 +175,11 @@ targets:
172
175
type : bundle.ui-testing
173
176
supportedDestinations : [iOS]
174
177
settings :
175
- PRODUCT_BUNDLE_IDENTIFIER : org.kiwix.UITests
176
- # TEST_HOST: $(BUILT_PRODUCTS_DIR)/Kiwix.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Kiwix
178
+ SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD : NO
179
+ SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD : NO
180
+ # https://developer.apple.com/documentation/xcode/build-settings-reference#Targeted-Device-Families
181
+ TARGETED_DEVICE_FAMILY : 2
182
+ PRODUCT_BUNDLE_IDENTIFIER : self.Kiwix.UITests.iPad
177
183
BUNDLE_LOADER : $(TEST_HOST)
178
184
entitlements :
179
185
path : Support/Kiwix-unitTest.entitlements
@@ -196,6 +202,9 @@ schemes:
196
202
gatherCoverageData : true
197
203
coverageTargets :
198
204
- Kiwix
205
+ preActions :
206
+ - script : xcrun simctl uninstall booted self.Kiwix
207
+ settingsTarget : Kiwix
199
208
UITests_macOS :
200
209
build :
201
210
targets :
@@ -214,6 +223,9 @@ schemes:
214
223
- UITests_iPhone
215
224
commandLineArguments :
216
225
testing : true
226
+ preActions :
227
+ - script : xcrun simctl uninstall booted self.Kiwix
228
+ settingsTarget : Kiwix
217
229
UITests_iPad :
218
230
build :
219
231
targets :
@@ -223,3 +235,6 @@ schemes:
223
235
- UITests_iPad
224
236
commandLineArguments :
225
237
testing : true
238
+ preActions :
239
+ - script : xcrun simctl uninstall booted self.Kiwix
240
+ settingsTarget : Kiwix
0 commit comments