question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: No such module 'Capacitor' for second target on ios bundling (v3)

See original GitHub issue

Bug Report

We have to targets configured in our ios configuration, mainly when we bundle our second target which is not the default we run into this already known error

image

Sometimes it is also happening on our first target but normally not. If we open, clean, polish or recreate the ios structure from scratch sometimes we can get it work. But today we have tried so many times without success.

Not sure if this is coming from v3 or we have this already before, because we used only android on v2, after we have testet v3 which works like a charm on android, we decided some days ago to go also for the ios platform.

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 2.4.6
  @capacitor/core: 2.4.6
  @capacitor/android: 2.4.6
  @capacitor/ios: 2.4.6

Installed Dependencies:

  @capacitor/cli: 3.0.0-beta.1
  @capacitor/core: 3.0.0-beta.1
  @capacitor/android: 3.0.0-beta.1
  @capacitor/ios: 3.0.0-beta.1


[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

ios

Other Technical Details

npm --version output: 6.14.11

node --version output: v14.11.0

pod --version output (iOS issues only): 1.8.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jcesarmobilecommented, Mar 5, 2021

yeah, if you add a new target in the project you also have to add it in the Podfile

0reactions
ionitron-bot[bot]commented, Nov 11, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No such module 'Capacitor' in AppDelegate.swift
I opened the app using this command: ionic cap open ios and got an error: No module Capacitor found , but anyway I...
Read more >
Xcode 12.0.1 "No such module" | Apple Developer Forums
I have the same problem, I can build the project for generic IOS, but when I choose a simulator (Simulator 12.0) it keep...
Read more >
No such module '..Kit' when using Capacitor Plugin - Ionic Forum
I'm building an Capacitor Plugin. To autenticate a user using WebAuthn (since this is not yet suported in WKWebView-based browsers).
Read more >
Troubleshooting iOS - OneSignal Documentation
Common setup issues with iOS. ... Step 3. Check below for common issues and if still not sure, send us a log. ......
Read more >
[Answer]-No such module 'Capacitor' in AppDelegate.swift-swift
score:3. The problem with editing your Podfile directly within the iOS bundle in Xcode is that every time you build your bundle, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found