realm-swift icon indicating copy to clipboard operation
realm-swift copied to clipboard

The v10.28.2 release does not contain an Xcode 14 build asset despite claiming compatibility in the notes

Open daltonclaybrook opened this issue 2 years ago • 5 comments

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)

daltonclaybrook avatar Jul 14 '22 21:07 daltonclaybrook

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 avatar Jul 15 '22 13:07 pavel-ship-it

@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

daltonclaybrook avatar Jul 15 '22 17:07 daltonclaybrook

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.

daltonclaybrook avatar Jul 15 '22 17:07 daltonclaybrook

Thank's for the update @daltonclaybrook. I'll look into that

pavel-ship-it avatar Jul 18 '22 08:07 pavel-ship-it

Still waiting for the next version of realm-core. I did not succeed in building the realm-core myself. 😢

gongzhang avatar Jul 27 '22 14:07 gongzhang