capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

bug: Enabling Apple Clang Module Verifier

Open qliqdev opened this issue 1 year ago • 8 comments

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

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

Installed Dependencies:

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

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

Platform(s)

  • [ ] ios

Current Behavior

Xcode build fails with error

double-quoted include "CDVViewController.h" in framework header, expected angle-bracketed instead
double-quoted include "CDVPlugin.h" in framework header, expected angle-bracketed instead
double-quoted include "CDVConfigParser.h" in framework header, expected angle-bracketed instead
......
and all Capacitor ios files

where code written like

#import "CDVPlugin.h"
#import "CDVConfigParser.h"
#import "CDVCommandDelegate.h"

Expected Behavior

Build should successfully pass

Code Reproduction

Other Technical Details

npm --version output: 9.2.0

node --version output: v18.12.1

pod --version output (iOS issues only): 1.12.0 XCode version output (iOS issues only): Version 14.3 (14E222b)

Additional Context

Enabling Apple Clang Module Verifier is Xcode recommendation

image image

qliqdev avatar Apr 06 '23 12:04 qliqdev

Hi, i have the same problem. Have you find a solution? thx

ohlive avatar Jun 13 '23 08:06 ohlive

@ohlive No, I'm just skipping Xcode recommendations. It always staying recommeded

just rebuild ionic app again and do not apply Xcode recommendations.

qliqdev avatar Jun 13 '23 16:06 qliqdev

To my side, i cant ignore this. I disabled "Quoted include in framework" to xcode settings, my build failed anyway. I don't know what I should do

ohlive avatar Jun 15 '23 08:06 ohlive

image

try to disable it

qliqdev avatar Jun 15 '23 08:06 qliqdev

@qliqdev Really thanks you, its ok now. Im not really familiar to Xcode so thanks again.

I find your recommendation here : Capture d’écran 2023-06-15 à 11 14 21

ohlive avatar Jun 15 '23 09:06 ohlive

Same here when attempting to perform changes, I rebuilt the project and skipped this to bypass the issue

khaelou avatar Aug 18 '23 03:08 khaelou

I deleted my ios folder, did npm cap add ios again, then npm cap open ios, ignored the "Recommended setting updates" and it built successfully 🥳

mledwards avatar Oct 19 '23 16:10 mledwards

Yes, I had to do this for all of the Capacitor "targets". Annoying, but it builds and runs again in the emulator.

@qliqdev Really thanks you, its ok now. Im not really familiar to Xcode so thanks again.

I find your recommendation here : Capture d’écran 2023-06-15 à 11 14 21

vrdriver avatar Dec 26 '23 13:12 vrdriver