couchbase-lite-ios: failed to build module 'CouchbaseLiteSwift' from its module interface

Describe the bug On Xcode 12.2,using cocoapods push to trunk, validating can’t pass.

Error message:

    - ERROR | [iOS] xcodebuild:  XX/Couchbase/CBDatabase.swift:10:8: 
error: failed to build module 'CouchbaseLiteSwift' from its module interface; 
the compiler that produced it, 'Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)', 
may have used features that aren't supported by this compiler, 'Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)'

Platform (please complete the following information):

  • OS: [macOS 11.0.1]
  • Couchbase Version [2.8.1]

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 15 (9 by maintainers)

Most upvoted comments

@jayahariv I realize that this issue was originally opened against Cocoapods, but I hope that won’t be the only means for this fix. We are actually pulling down couchbase through Swift Package Manager and need the fix through there as well. Thank you for your help.

To clarify things, are you getting the error, unable to load standard library for target 'arm64-apple-ios14.0-simulator' when include via Swift Package Manager(SPM)?

Yes that is the error we get when trying to build for profiling.

It looks like if I add arm64 to the excluded architectures list on the host app, as well as the framework that links against Couchbase then I’m able to build for profiling. It looks like when I profile in Instruments that its not symbolicating everything though. This is decent workaround for the moment, but this issue really needs to be resolved so we can profile without changing project architecture settings.

We are also experiencing this bug when trying to build for profiling in Xcode, so we cannot initiate profiling our app in Instruments, because the framework it is in stops the build process.