realm-swift
realm-swift copied to clipboard
The v10.28.2 release does not contain an Xcode 14 build asset despite claiming compatibility in the notes
How frequently does the bug occur?
All the time
Description
The release notes for v10.28.2 claim that the release is compatible with Xcode 14 beta 2, but the realm-swift-10.28.2.zip
asset does not contain an XCFramework that is compatible with Xcode 14.
Stacktrace & log output
No response
Can you reproduce the bug?
Yes, always
Reproduction Steps
No response
Version
v10.28.2
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
iOS, tvOS, watchOS
Build environment
Xcode 14 beta 2 (and beta 3)
Hi @daltonclaybrook,
You can build XCFramework for beta version from the source code using build.sh
. You can find the script in the realm-swift
root.
@pavel-ship-it Unfortunately, it looks like the Realm target does not build for watchOS device on Xcode 14. It seems to build fine for watch simulator, but building for device reports many linker errors like:
Undefined symbol: realm::ArrayMixed::init_from_mem(realm::MemRef)
Undefined symbol: realm::ArrayMixed::move(realm::ArrayMixed&, unsigned long)
Undefined symbol: realm::ArrayMixed::create()
Undefined symbol: realm::ArrayMixed::ArrayMixed(realm::Allocator&)
Undefined symbol: realm::ArrayMixed::ArrayMixed(realm::Allocator&)
Undefined symbol: realm::Decimal128::is_valid_str(realm::StringData)
etc
Digging in, it looks like realm-monorepo.xcframework
does not contain an arm64
slice for watchos. Just armv7k
and arm64_32
. When I list arm64
as an excluded architecture for watch device, the build succeeds.
Thank's for the update @daltonclaybrook. I'll look into that
Still waiting for the next version of realm-core. I did not succeed in building the realm-core myself. 😢