iPad测试PhoneGap应用程序 - 主要方法中的问题 [英] iPad testing of PhoneGap application - issues in main method

查看:178
本文介绍了iPad测试PhoneGap应用程序 - 主要方法中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我试图测试我一直在努力的

解决方案

您的应用程序正在使用自动引用计数(这是新的),Phonegap不支持它。转到项目的构建设置,并将自动参考计数关闭。


So I was attempting to test a PhoneGap application I've been working on, and had some issues with the test on my iPad. I have the following as the main method for this application:

//
//  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;
}

It all works fine until you close the app completely and then reopen it, upon which it freezes. And I have no idea why.

I am running ios5 on my ipad with XCode 4.2

Finally, these are the errors which come up, thanks for the help!

Direct link here

解决方案

Your application is using Automatic Reference Counting (which is new) and Phonegap doesn't support it yet. Go to your project's build settings and turn Automatic Reference Counting to off.

这篇关于iPad测试PhoneGap应用程序 - 主要方法中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆