realm-swift: Archive with Xcode 14.1 RC fails
How frequently does the bug occur?
All the time
Description
Archive fails with:

xcrun swift-demangle s10RealmSwift0A14CollectionImplPAAE12makeIteratorAA11RLMIteratorVy7ElementQzGyF
returns:
$s10RealmSwift0A14CollectionImplPAAE12makeIteratorAA11RLMIteratorVy7ElementQzGyF ---> (extension in RealmSwift):RealmSwift.RealmCollectionImpl.makeIterator() -> RealmSwift.RLMIterator<A.Element>
Stacktrace & log output
No response
Can you reproduce the bug?
Yes, always
Reproduction Steps
- Start Xcode
- Wait for dependency resolving and indexing
- Select Any iOS Device (arm64) (optional if already selected)
- Try to Archive the app
Version
10.31.0
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
iOS 16 (Build Target is iOS 14)
Build environment
Xcode version: 14.1 RC (released on 18.10.2022) Link Dependency manager and version: 14.1 RC
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 28
- Comments: 31 (3 by maintainers)
Realm 10.32.3 fixed the issue for me. I can build xCode Version 14.1 (14B47b) without issues
I can confirm that 10.32.3 fixes issue for me.
10.32.1 does not include the fix for this.
Same issue here using:
Same issues running Realm
10.32.0A potential temporary workaround, I was able to build using
10.20.0I can confirm that 10.32.3 fixes issue for me.
@faizaan123 Could you please create a new issue and can you attach a sample app that reproduces the problem?
As a very temporary workaround until the next release, in SPM I’ve updated my dependency to be tgoyne’s fix as it’s the only commit since Realm 10.32.1
.package(name: "Realm", url: "https://github.com/realm/realm-swift", revision: "cedc1c8b0b2ab8506dd15703c36f8c0660774b18"),I’ve tested it from a dev build and it works. My TestFlight build from fastlane is uploading ok now but un-tested at the minute.
Now I can reproduce this with CocoaPods
I use SPM. I rolled back to Xcode 14.0.1 for store submissions.
Same story here. Everything works fine in Debug configuration, but fails to archive the Release.
Xcode 14.1 RC (14B47) Realm 10.32.0