@@ -146,6 +146,15 @@ def configure_cocoapods
146
146
</ script >
147
147
HTML
148
148
149
+ realm_jazzy_yaml = <<-YAML
150
+ build_tool_arguments:
151
+ - "-scheme"
152
+ - "RealmSwift"
153
+ - "SWIFT_VERSION=4.2"
154
+ - "-destination"
155
+ - "platform=OS X,arch=x86_64"
156
+ YAML
157
+
149
158
spec_subset = ENV . fetch ( 'JAZZY_SPEC_SUBSET' , nil )
150
159
151
160
# rubocop:disable Style/MultilineIfModifier
@@ -208,9 +217,15 @@ def configure_cocoapods
208
217
209
218
describe 'Creates Realm Swift docs' do
210
219
realm_version = ''
211
- Dir . chdir ( ROOT + 'spec/integration_specs/document_realm_swift/before' ) do
220
+ realm_path = ROOT + 'spec/integration_specs/document_realm_swift/before'
221
+ realm_jazzy_path = realm_path + '.jazzy.yaml'
222
+
223
+ Dir . chdir ( realm_path ) do
212
224
realm_version = `./build.sh get-version` . chomp
213
225
end
226
+ # Xcode 16 workaround
227
+ File . write ( realm_jazzy_path , realm_jazzy_yaml )
228
+
214
229
behaves_like cli_spec 'document_realm_swift' ,
215
230
'--author Realm ' \
216
231
'--author_url "https://realm.io" ' \
@@ -222,10 +237,8 @@ def configure_cocoapods
222
237
"--module-version #{ realm_version } " \
223
238
'--root-url https://realm.io/docs/swift/' \
224
239
"#{ realm_version } /api/ " \
225
- '--xcodebuild-arguments ' \
226
- '-scheme,RealmSwift,SWIFT_VERSION=4.2,' \
227
- "-destination,'platform=OS X' " \
228
240
"--head #{ realm_head . shellescape } "
241
+ FileUtils . rm_rf realm_jazzy_path
229
242
end
230
243
231
244
describe 'Creates Siesta docs' do
@@ -249,7 +262,8 @@ def configure_cocoapods
249
262
behaves_like cli_spec 'misc_jazzy_symgraph_features' ,
250
263
'--swift-build-tool symbolgraph ' \
251
264
'--build-tool-arguments ' \
252
- "-emit-extension-block-symbols,-I,#{ module_path } "
265
+ '-emit-extension-block-symbols,-I,' \
266
+ "#{ module_path . chomp } /Modules"
253
267
end
254
268
255
269
describe 'Creates docs for a multiple-module project' do
0 commit comments