Git Product home page Git Product logo

Comments (3)

jcesarmobile avatar jcesarmobile commented on June 4, 2024 1

Sadly on iOS the xcframeworks are always in Release mode, and for SPM we have to create .xcframeworks because Capacitor is mixed Objective-C and Swift source, which prevents from building a regular SPM.
Since xcframeworks are in Release mode, by default WebView inspection doesn't work because the default value is to check if it's in DEBUG mode, which is always false for xcframeworks.

So, if you want to inspect the WebView you'll have to set ios.webContentsDebuggingEnabled to true in your capacitor config file, that makes the WebView inspectable even in production builds, but you have to remember to remove it before you publish the actual production build.

from capacitor.

abegehr avatar abegehr commented on June 4, 2024

Thank you for explaining, @jcesarmobile! I opened a PR on the docs repo to add a note on this: ionic-team/capacitor-docs#299

from capacitor.

ionitron-bot avatar ionitron-bot commented on June 4, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

from capacitor.

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.