Friday, 24 January 2020

Exclude Xcode header search path

I am using Carthage and as part of that have the following structure:

$SRCROOT
  -Code
  -Carthage
    -Build
    -Checkouts

Everything runs fine, but upon a crash, I get errors like these in debug console.

error: /Users/alex/Desktop/x/Carthage/Build/iOS/CocoaLumberjack.framework/Headers/DDAbstractDatabaseLogger.h:30:1: error: duplicate interface definition for class 'DDAbstractDatabaseLogger'
@interface DDAbstractDatabaseLogger : DDAbstractLogger {
^

/Users/alex/Desktop/x/Carthage/Checkouts/FewPods/Pods/CocoaLumberjack/Classes/DDAbstractDatabaseLogger.h:30:12: note: previous definition is here
@interface DDAbstractDatabaseLogger : DDAbstractLogger {

I am able to resolve by moving the Checkouts folder elsewhere, but that makes things somewhat inconvenient.

Any other way I can make Xcode ignore everything under Checkouts?



from Exclude Xcode header search path

No comments:

Post a Comment