Comments (6)
Yes, you're right. The BUILD_LIBRARY_FOR_DISTRIBUTION flag was a red herring. The building failure was due to the missing arm64-simulator binary and the fact that Xcode 13.2.1 would always try to load all supported architectures of the simulator. The issue was resolved by excluding arm64 for simulator. For more details, see this closed issue
from couchbase-lite-ios.
I assume, you have tried the .framework. Could you please try using XCFramework from the Downloads.
from couchbase-lite-ios.
Please feel free to reopen the issue, in case you are still facing the issue
from couchbase-lite-ios.
We encountered the same problem after switching to Xcode 13.2.1
We were trying to build a Flutter plugin using the CouhbaseLiteSwift 2.8.4 pod.
There seems to be something to do with the BUILD_LIBRARY_FOR_DISTRIBUTION flag in Xcode.
See this link in Stack Overflow for more details
from couchbase-lite-ios.
@matsunanaro Could you please elaborate on the issue you faced. Incompatible module will be shown as error for many reasons, like when arm64-simulator arch is missing, or backward incompatibility etc...
-
Are you using cocoapod/carthage/downloads page?
- Cocoapod/Carthage = is a FAT binary without the Apple M1(arm64-simulator) architecture supported.
- Downloads page = there is
.xcframework
and.framework
, similar to cocoapod/carthage.framework
is not including the arm64 arch. But if you use.xcframework
, it should work for Apple M1 machine(we already had tests to validate this).
-
From what I understand from this current issue, they are using
.framework
on Apple M1. Could you please open a new issue, if your issue is different from this one? Also make sure to include all the error you are seeing,(OR a working sample project with error, OR steps to reproduce the same issue). -
About the
BUILD_LIBRARY_FOR_DISTRIBUTION
, we are already setting this
from couchbase-lite-ios.
@matsunanaro Could you please elaborate on the issue you faced. Incompatible module will be shown as error for many reasons, like when arm64-simulator arch is missing, or backward incompatibility etc...
- Are you using cocoapod/carthage/downloads page?
I'm using cocaopod and building on an Intel based MacBook Pro 2019 with Xcode 13..2.1 on Monterey MacOS
- About the
BUILD_LIBRARY_FOR_DISTRIBUTION
, we are already setting this
The flag seems to be still missing in the Debug configuration
from couchbase-lite-ios.
Related Issues (20)
- `valueWouldChange` does not check whether `newValue` is a `CBLDictionary` HOT 1
- `ArrayFunction.contains` does not evaluate to correct result for boolean values HOT 2
- CouchbaseLite-Swift-Enterprise pod produces warning when compiling with Xcode 13 HOT 8
- Sync crashing CB lite 2.8.0 Ios 15.1 HOT 3
- Compiling issue after upgrading to Xcode 13.2.1 HOT 1
- Fleece crash during document retrieval HOT 12
- `ExpressionProtocol.isNotValued` and `isValued` functions are not available HOT 1
- setMapBlock is executing for all CBLView s instead of specific mentioned CBLView HOT 4
- Add Support for Combine Publishers HOT 1
- Add Linux Support HOT 5
- Add Nulls Ordering support HOT 2
- CouchbaseLite includes UIWebView, can it be changed to WKWebView? HOT 2
- Undefined symbol: _CBLVersion HOT 1
- “CouchbaseLiteSwift.framework” cannot be opened because the developer cannot be verified. HOT 3
- 【iOS Swift】CouchbaseLite Replicator ERROR: {Repl#935} Got LiteCore error: WebSocket error 1006, "connection closed abnormally" HOT 2
- Undefined symbols for CBLReplicatedDocument using CBL ObjC HOT 1
- After downloading the demo, it cannot be run. HOT 2
- Crash on `Query.removeChangeListener(withToken:)` HOT 14
- Swift Package Manager version of CouchbaseLiteSwift 3.1.3 crashes on `MutableDocument()` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from couchbase-lite-ios.