Chameleon icon indicating copy to clipboard operation
Chameleon copied to clipboard

__unsafe_unretained and __bridge not available in Xcode 4.1

Open 191919 opened this issue 13 years ago • 2 comments

When compiling Chameleon in Lion + Xcode 4.1, there are tens of errors like this:

file://localhost/Users/191919/Desktop/cocoa/Chameleon/UIKit/Classes/NSFetchedResultsController.h: error: Parse Issue: Unknown type name '__unsafe_unretained'

191919 avatar Aug 02 '11 07:08 191919

+1

maxfell avatar Aug 04 '11 15:08 maxfell

If you use Xcode 4.2 it should work. (They are ARC annotations causing this problem.) In the meantime, you should be able to just #define them away from somewhere global:

#define __unsafe_unretained #define __bridge

Or just go through the source and delete the instances of those annotations in your branch. Whatever works best for you.

BigZaphod avatar Aug 04 '11 19:08 BigZaphod