ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.26k stars 1.01k forks source link

[Bug]: Double-quoted include “<something.h>” in framework header, expected angle-bracketed instead — Error #7727

Open ellinorlindstrom opened 1 month ago

ellinorlindstrom commented 1 month ago

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

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

Installed Dependencies:

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

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

Other API Details

npm version: 10.5.0
node version: v20.12.0
1.15.2

Platforms Affected

Current Behavior

Keep getting error: Double-quoted include “” in framework header, expected angle-bracketed instead — Error

I've tried every solution I found this weekend but nothing has solved the issue. It is related to cordova in the project. This is my podfile: require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers'

platform :ios, '13.0' use_frameworks!

Requires CocoaPods 1.6 or newer

install! 'cocoapods', :disable_input_output_paths => true

def capacitor_pods pod 'Capacitor', :path => '../../node_modules/@capacitor/ios' pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios' pod 'CapacitorCamera', :path => '../../node_modules/@capacitor/camera' pod 'CapacitorGeolocation', :path => '../../node_modules/@capacitor/geolocation' end

target 'App' do capacitor_pods

Add your Pods here

end

post_install do |installer| assertDeploymentTarget(installer)

end

Expected Behavior

I expect the app to build in xcode but my builds fail every time. The errors in the images is what it always circles back to but sometimes I changed something and I get diffrent errors, but end up back here even though I set "quoted include in Framework Header" to "no" in pods. under build settings. Screenshot 2024-10-20 at 18 37 26

Project Reproduction

https://github.com/ellinorlindstrom/stride-quest

Additional Information

Please get back to me if you need any other information, thanks!

ellinorlindstrom commented 1 month ago

CocoaPods version: 1.15.2

markemer commented 2 weeks ago

What Xcode are you building with?

markemer commented 2 weeks ago

Could be a recurrence of this bug https://github.com/CocoaPods/CocoaPods/issues/9902

Maybe try:

rm -rf ~/Library/Developer/Xcode/DerivedData/
pod deintegrate
pod update

in the directory with your Podfile. This might mess things up, so be sure that everything you have now is checked into source control or backed up in some way.

ellinorlindstrom commented 1 week ago

I fixed it at last, it might have been something iffy with the file structure because I had to remake the whole project. Thanks for the response @markemer =)