release is unavailable not available in automatic reference counting mode
iOS 2015. 7. 10. 01:01//
// 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
'iOS' 카테고리의 다른 글
xcode Home, End key (0) | 2015.07.12 |
---|---|
used as the name of the previous parameter rather than as part of the selector (0) | 2015.07.12 |
Could not find Developer Disk Image - Xcode 7 - iOS 8.4 (0) | 2015.07.08 |
ios AVAudioPlayer ( Audio Play ) (0) | 2013.02.18 |
mac shell commands (0) | 2012.03.09 |