Ios AFNetworking仅在调试中构建。释放关于丢失IVAR的投诉
获得了一个包含AFNetworking lib(最新源代码)的Mac OS X项目。 内置调试运行正常。但是,内置版本会引发很多这样的错误:Ios AFNetworking仅在调试中构建。释放关于丢失IVAR的投诉,ios,cocoa,afnetworking,Ios,Cocoa,Afnetworking,获得了一个包含AFNetworking lib(最新源代码)的Mac OS X项目。 内置调试运行正常。但是,内置版本会引发很多这样的错误: Synthesized property 'baseURL' must either be named the same as a compatible ivar or must explicitly name an ivar Synthesized property 'stringEncoding' must either be named the s
Synthesized property 'baseURL' must either be named the same as a compatible ivar or must explicitly name an ivar
Synthesized property 'stringEncoding' must either be named the same as a compatible ivar or must explicitly name an ivar
那一点
@synthesize baseURL = _baseURL;
@synthesize stringEncoding = _stringEncoding;
等等
跳入,在类(AFHTTPClient)的ivar部分或其他任何地方都没有定义\u baseURL
。这就是在Dealoc合成和释放的过程
可能是您对每个构建使用不同的编译器(LLVM/GCC)吗@属性不再必须声明为iVar。看起来可能是“Build Active Architecture Only=no”使用了另一个未添加这些iVar的编译。更改为
Yes
后,它工作了。谢谢