release is unavailable not available in automatic reference counting mode
//
// main.m
// helloworld
//
// Created by Jangsang wook on 2015. 7. 8..
// Copyright (c) 2015년 smilejsu. All rights reserved.
//
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
NSMutableString *myString = [ [NSMutableString alloc] init ];
[ myString appendString:@"Objective-c is cool!" ];
NSMutableString *anotherString = [ NSMutableString stringWithString:@"Objective-c is Cool!"];
NSString *staticString = @"Objective-c is Cool!";
NSArray *anArray = @[@"One", @"Two", @"Three"];
NSDictionary *aDictionary = @{ @"One":@"A", @"Two":@"B" };
NSLog(@"%@", myString);
NSLog(@"%@", anotherString);
NSLog(@"%@", staticString);
NSLog(@"%@", anArray);
NSLog(@"%@", aDictionary);
[myString release];
}
return 0;
}
"release is unavailable not available in automatic reference counting mode"
해결 방법 : Apple LLVM 6.1 - Language - Objective C 에서 Objective-C Automatic Reference Counting Yes -> No