GithubHelp home page GithubHelp logo

Comments (6)

matsunanaro avatar matsunanaro commented on May 25, 2024 1

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.

jayahariv avatar jayahariv commented on May 25, 2024

I assume, you have tried the .framework. Could you please try using XCFramework from the Downloads.

from couchbase-lite-ios.

jayahariv avatar jayahariv commented on May 25, 2024

Please feel free to reopen the issue, in case you are still facing the issue

from couchbase-lite-ios.

matsunanaro avatar matsunanaro commented on May 25, 2024

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.

jayahariv avatar jayahariv commented on May 25, 2024

@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 avatar matsunanaro commented on May 25, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.