I was using shilo's extension SPViewController+Transparency ( http://goo.gl/DKH76B ) with Sparrow 2.0.1 (with cocoapods), and everything was working fine. Now I'm trying to use Sparrow 2.1, then I eliminated the sparrow entry from my podfile, re-installed my pods and imported Sparrow 2.1 framework. Everything is compiling with no problems but I keep getting this linking error with the extension:
Undefined symbols for architecture armv7:
"_OBJC_IVAR_$_SPViewController._statsDisplay", referenced from:
-[SPViewController(Transparency) statsDisplay] in SPStage+Transparency.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The problem doesn't seem to be in the extension source code to me because nothing changed from 2.0.1 I guess...
any ideas?
edit:
-the SPStage+Transparency.m is in my "Compile Sources" list in build phases, in fact the SPStage+Transparency.o seems to be created.
-the project builds correctly if I remove the extension.
-if I comment the declaration
@interface SPViewController ()
{
// SPStatsDisplay *_statsDisplay;
}
@end
and substitute in code with self.statsDisplay it builds but crashes.
This is the line that prevents the linking
@implementation SPViewController (Transparency)
- (SPStatsDisplay *)statsDisplay
{
return _statsDisplay;
}
@end
anyone can guess why?
PARTIALLY SOLVED:
I made it work by commenting all the statsDisplay related code, but I'm still trying to understand why.
thanks