fix(ffi): Fix xcframework release script, add missing module map

This commit is contained in:
Stefan Ceriu
2022-11-22 10:55:46 +02:00
committed by GitHub
parent fcb37b6962
commit 1025d42624
+7
View File
@@ -179,6 +179,13 @@ fn build_xcframework(
rename(generated_dir.join("matrix_sdk_ffiFFI.h"), headers_dir.join("matrix_sdk_ffiFFI.h"))?;
// Move and rename the module map to `module.modulemap` to match what
// the xcframework expects
rename(
generated_dir.join("matrix_sdk_ffiFFI.modulemap"),
headers_dir.join("module.modulemap"),
)?;
rename(generated_dir.join("matrix_sdk_ffi.swift"), swift_dir.join("matrix_sdk_ffi.swift"))?;
println!("-- Generate MatrixSDKFFI.xcframework framework");