3

I've imported Three20 into my new project with the Terminal. When I build the project, I've get 13 errors, semantic issues. How to fix this or any other ideas?

Screenshot:

Thanks!

Community
  • 1
  • 1
Rick de Jong
  • 237
  • 1
  • 4
  • 12

3 Answers3

2

This framework is no longer maintained. However, if you want to get a version that doesn't have any xcode 4.5 issues, download the development branch of the project https://github.com/facebook/three20/tree/development.

That should include the fixes you're looking for.

aporat
  • 5,922
  • 5
  • 32
  • 54
1

From what I've heard, that library is a mess.

As for the errors:

Which complier are you using? New compiler (Apple LLVM 4.1, if I am correct), automatically creates those "underscore ivars" without you needing to synthesize them:

e.g. (before new compiler):

@property (nonatomic) NSObjectTypeOrWhatever *tapCount

@synthesize tapCount=_tapCount

With new compiler, you only need to declare property and "underscore ivars" are generated for you.

So I suppose you have two options,

  1. change your compiler to match a new one (LLVM 4.1)
  2. Manually synthesize those properties

(first one is faster)

vale4674
  • 4,161
  • 13
  • 47
  • 72
0

Just throw self. In front of everything, for example, the first line should be self.tapCount instead of _tapCount.

Kris Gellci
  • 9,539
  • 6
  • 40
  • 47