error 'autorelease' is unavailable: not available in automatic reference counting mode

前端 未结 2 1916
轻奢々
轻奢々 2020-12-10 02:27

I trying to make a HTTP request and parse JSON using Stig\'s JSON Library. I\'m getting this error \'autorelease\' is unavailable: not available in automatic reference coun

相关标签:
2条回答
  • 2020-12-10 02:58

    The way that you get rid of this error is to go into your projects build settings. Search for automatic reference counting. Once you find it set the value to "NO"

    0 讨论(0)
  • 2020-12-10 03:11

    Change

    SBJSON *json4 = [[SBJSON new] autorelease];

    to

    SBJSON *json4 = [SBJSON new];

    This will allow you to leave automatic reference counting intact.

    0 讨论(0)
提交回复
热议问题