ios - When i use clang -rewrite-objc main.c.there is "“The current deployment target does not support weak references”" -
int main(int argc, const char * argv[]) { nsmutablearray *a =[[nsmutablearray alloc]init]; @autoreleasepool { id __weak n = a; nslog(@"%@",n); } return 0;} //
go through project settings , check disable weak references. since have been default since 10.7 , ios many versions, must have old , obscure project settings.
Comments
Post a Comment