BigZaphod / Chameleon

Chameleon is a port of Apple's UIKit for iOS (and some minimal related frameworks) to Mac OS X.
http://chameleonproject.org/
BSD 3-Clause "New" or "Revised" License
3.45k stars 572 forks source link

__unsafe_unretained and __bridge not available in Xcode 4.1 #56

Open 191919 opened 13 years ago

191919 commented 13 years ago

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'

maxfell commented 13 years ago

+1

BigZaphod commented 13 years ago

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.