Cocoanetics/DTCoreText — Issue #99: Can't compile DTFoundation and DTCoreText together in pch file
Author: BrianDoig
Created: 2012-01-06 00:58:50+00:00
State: open

DTFoundation and DTCoreText both declare a data type DTVersion that are different. If you use both in your projects PCH file you will get the following error:

UIDevice+DTVersion.h:17:3: error: redefinition of 'DTVersion' as different kind of symbol [2]
} DTVersion;
^

note: previous definition is here
@interface DTVersion : NSObject
^

UIDevice+DTVersion.h:21:1: error: interface type 'DTVersion' cannot be returned by value; did you forget * in 'DTVersion' [2]
- (DTVersion) osVersion;
^