realm-swift: Xcode 14 beta fails when archive watchOS Target with Realm v10.28.2
How frequently does the bug occur?
All the time
Description
Hello,
I have a simple test application, in which I have created an iOS target and a watchOS target. There is no implementation, just Realm dependency injection with cocoapods (podfile).
The two targets compile without problems, but when I’m about to make Archive, with the watchOS target it always fails.
Stacktrace & log output
ld: library not found for -lrealm-monorepo
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can you reproduce the bug?
Yes, always
Reproduction Steps
Podfile app sample that archive watch crash:
- Build iOS Target -> OK
- Build watchOS Target -> OK
- Archive watchOS target -> KO
Version
10.28.2
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
watchOS
Build environment
Xcode 14 beta 3 Cocoapods 1.11.3 RealmSwift 10.28.2 macOS Monterey 12.4
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 3
- Comments: 17
Seems like this is not solved in 10.28.7, a new release will be released shortly which includes the xcframework build with Xcode 14 RC
After performing the same test with the new version of RealmSwift 10.28.3 and Xcode 14 beta 4, when performing an Archive with watchOS, the error persists:
ld: library not found for -lrealm-monorepoclang: error: linker command failed with exit code 1 (use -v to see invocation)The Build works correctly, but the Archive process is the one that fails.
Hello,
Is there a solution to the problem in the Archive with watchOS
(library not found for -lrealm-monorepo), Realm 10.28.2 and Xcode 14 beta 3?Thank you