所以我試圖測試一個PhoneGap應用程序,我一直在努力,並且在我的iPad上測試過一些問題。我有以下作爲該應用程序的方法main
:PhoneGap應用程序的iPad測試 - 主要方法中的問題
//
// main.m
// elog
//
// Created by Ben Potter on 9/08/11.
// Copyright Arden Anglican School 2011. All rights reserved.
//
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
[pool release];
return retVal;
}
,直到你徹底關閉應用程序,然後重新打開它,在它凍結這一切工作正常。我不知道爲什麼。
我用的XCode 4.2
在我的iPad運行iOS5最後,這些都是拿出了錯誤,感謝您的幫助!
XCode 4.2和iOS 5仍處於NDA之下。你的錯誤信息是說btw的音量。看到這裏 - http://stackoverflow.com/questions/6655842/nsautoreleasepool-is-unavailable。 – Perception