-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Can't Inspect WebView on iOS when setup with SPM #7406
Comments
ref ionic-team/capacitor#7406 ➜ capacitor-sample git:(main) ✗ rm -rd ios ➜ capacitor-sample git:(main) ✗ npx cap add ios --packagemanager SPM
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. So, if you want to inspect the WebView you'll have to set |
Thank you for explaining, @jcesarmobile! I opened a PR on the docs repo to add a note on this: ionic-team/capacitor-docs#299 |
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. |
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 6.0.0
@capacitor/core: 6.0.0
@capacitor/android: 6.0.0
@capacitor/ios: 6.0.0
Installed Dependencies:
@capacitor/android: not installed
@capacitor/cli: 6.0.0
@capacitor/core: 6.0.0
@capacitor/ios: 6.0.0
[success] iOS looking great! 👌
Other API Details
Platforms Affected
Current Behavior
"No inspectable applications." on Safari for iOS projects setup with SPM (
npx cap add ios --packagemanager SPM
).Expected Behavior
I'd expect to inspect the web view through Safari.
Project Reproduction
https://github.com/abegehr/capacitor-sample
Additional Information
When I delete the
ios
folder and re-init without SPM (npx cap add iOS
), the web view is inspectable in safari as expected. Therefore I think it is a problem with the SPM setup.The text was updated successfully, but these errors were encountered: