Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios AFNetworking仅在调试中构建。释放关于丢失IVAR的投诉_Ios_Cocoa_Afnetworking - Fatal编程技术网

Ios AFNetworking仅在调试中构建。释放关于丢失IVAR的投诉

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

获得了一个包含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 same as a compatible ivar or must explicitly name an ivar
那一点

@synthesize baseURL = _baseURL;
@synthesize stringEncoding = _stringEncoding;
等等

跳入,在类(AFHTTPClient)的ivar部分或其他任何地方都没有定义
\u baseURL
。这就是在Dealoc合成和释放的过程

  • 它如何构建(并在调试中工作)良好?它真的不需要那个ivar吗
  • 我应该怎么做才能修复它

  • 可能是您对每个构建使用不同的编译器(LLVM/GCC)吗@属性不再必须声明为iVar。看起来可能是“Build Active Architecture Only=no”使用了另一个未添加这些iVar的编译。更改为
    Yes
    后,它工作了。谢谢