SDK가 베타라서 그런지 해당 기능이 동작하지 않는다.
해결방법은 adt로 한번더 패키징
adt -package -target native myApp.dmg myApp.air
myApp.dmg 로 설치, myApp.air는 못쓰는거
끝.
adt -package -target native myApp.dmg myApp.air
myApp.dmg 로 설치, myApp.air는 못쓰는거
끝.
$(SDKROOT)/ResourceRules.plist 이거만 Code Signing Resource Rules Path에 넣어주면
해결이 되었다...
자세히 보고 써야 하는데
설마 저런 이슈가 있을줄야 애꿎은 인증서랑 Xcode 만 못살게 굴었네
누군가 도움이 되시길
command line Tool 로 이미지 캡쳐기 만들던 중
결론을 내려준 코드 ... 2박3일 삽질한 원인 두가지
1. __NSAutoreleaseNoPool(): Object 0x100306530 of class NSCFString autoreleased with no pool in place - just leaking
해결 : NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[pool release];
2. CGDataProviderRelease(dataProvider);
-(void)saveJPEGImage:(CGImageRef)imageRef path:(NSString *)path {
CFMutableDictionaryRef mSaveMetaAndOpts = CFDictionaryCreateMutable(nil, 0,
&kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
CFDictionarySetValue(mSaveMetaAndOpts, kCGImageDestinationLossyCompressionQuality,
[NSNumber numberWithFloat:1.0]); // set the compression quality here
NSURL *outURL = [[NSURL alloc] initFileURLWithPath:path];
CGImageDestinationRef dr = CGImageDestinationCreateWithURL ((CFURLRef)outURL, (CFStringRef)@"public.jpeg" , 1, NULL);
CGImageDestinationAddImage(dr, imageRef, mSaveMetaAndOpts);
CGImageDestinationFinalize(dr);
}
-(void)savePNGImage:(CGImageRef)imageRef path:(NSString *)path {
NSURL *outURL = [[NSURL alloc] initFileURLWithPath:path];
CGImageDestinationRef dr = CGImageDestinationCreateWithURL ((CFURLRef)outURL, (CFStringRef)@"public.png" , 1, NULL);
CGImageDestinationAddImage(dr, imageRef, NULL);
CGImageDestinationFinalize(dr);
}
-(void)saveTIFFImage:(CGImageRef)imageRef path:(NSString *)path {
int compression = NSTIFFCompressionLZW; // non-lossy LZW compression
CFMutableDictionaryRef mSaveMetaAndOpts = CFDictionaryCreateMutable(nil, 0,
&kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
CFMutableDictionaryRef tiffProfsMut = CFDictionaryCreateMutable(nil, 0,
&kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
CFDictionarySetValue(tiffProfsMut, kCGImagePropertyTIFFCompression, CFNumberCreate(NULL, kCFNumberIntType, &compression));
CFDictionarySetValue(mSaveMetaAndOpts, kCGImagePropertyTIFFDictionary, tiffProfsMut);
NSURL *outURL = [[NSURL alloc] initFileURLWithPath:path];
CGImageDestinationRef dr = CGImageDestinationCreateWithURL ((CFURLRef)outURL, (CFStringRef)@"public.tiff" , 1, NULL);
CGImageDestinationAddImage(dr, imageRef, mSaveMetaAndOpts);
CGImageDestinationFinalize(dr);
}
If this information were included here, I could have saved a week of frustration. Thanks