【问题标题】:Application rejected for crashing on an iPad 3rd Generation应用程序因在第三代 iPad 上崩溃而被拒绝
【发布时间】:2012-06-26 19:39:17
【问题描述】:

我的应用被 Apple 拒绝,因为它在 iPad 3rd Gen 上崩溃了。 拒绝原因:

我们发现您的应用在运行 iOS 5.1.1 的第三代 iPad 上崩溃,这不符合 App Store 审核指南。

您的应用在启动时在 Wi-Fi 和蜂窝网络上都崩溃了。

我在 iPhone 4 模拟器和设备上测试了我的应用程序,它工作正常,我还在 iPad 模拟器上测试了我的应用程序,iPad 和 iPad 视网膜模拟器,它工作正常。 但我没有真正的 iPad 3rd Gen 设备。 这是应用程序的代码:didFinishLaunchingWithOptions:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

//Piracy Check
iShmoopi *PiracyCheck = [[[iShmoopi alloc] init] autorelease];
if ([PiracyCheck isPirated] == KAPPLICATIONNOTPIRATED || [PiracyCheck isPirated] == KNOTPIRATED) {
    //Do Nothing, Not Pirated
} else {
    //Do Something, Pirated
    
    //Hostile Exit 
    iShmoopi *HostileExit = [[[iShmoopi alloc] init] autorelease];
    [HostileExit Hostile];
}


NSString *gameDataPath = pathInDocumentDirectory(@"gameDataPath.data");
if (gameDataPath != nil) {
    
    NSDictionary *gameDataDictionary = [NSKeyedUnarchiver unarchiveObjectWithFile:gameDataPath];
    
    if  (gameDataDictionary != nil) {
    
        smartEasyBestTime = [[gameDataDictionary objectForKey:@"smartEasyBestTimeKey"] intValue];
        smartEasyBestPoint = [[gameDataDictionary objectForKey:@"smartEasyBestPointKey"] intValue];
        smartNormalIsPlayable = [[gameDataDictionary objectForKey:@"smartNormalIsPalyableKey"] boolValue];
        smartNormalBestTime = [[gameDataDictionary objectForKey:@"smartNormalBestTimeKey"] intValue];
        smartNormalBestPoint = [[gameDataDictionary objectForKey:@"smartNormalBestpointKey"] intValue];
        smartHardIsPlayable = [[gameDataDictionary objectForKey:@"smartHardIsPalyableKey"] boolValue];
        smartHardBestTime = [[gameDataDictionary objectForKey:@"smartHardBestTimeKey"] intValue];
        smartHardBestPoint = [[gameDataDictionary objectForKey:@"smartHardBestPointKey"] intValue];
        
        focusEasyBestTime = [[gameDataDictionary objectForKey:@"focusEasyBestTimeKey"] intValue];
        focusEasyBestPoint = [[gameDataDictionary objectForKey:@"focusEasyBestPointKey"] intValue];
        focusNormalIsPlayable = [[gameDataDictionary objectForKey:@"focusNormalIsPalyableKey"] boolValue];
        focusNormalBestTime = [[gameDataDictionary objectForKey:@"focusNormalBestTimeKey"] intValue];
        focusNormalBestPoint = [[gameDataDictionary objectForKey:@"focusNormalBestpointKey"] intValue];
        focusHardIsPlayable = [[gameDataDictionary objectForKey:@"focusHardIsPalyableKey"] boolValue];
        focusHardBestTime = [[gameDataDictionary objectForKey:@"focusHardBestTimeKey"] intValue];
        focusHardBestPoint = [[gameDataDictionary objectForKey:@"focusHardBestPointKey"] intValue];
        
        logicEasyBestTime = [[gameDataDictionary objectForKey:@"logicEasyBestTimeKey"] intValue];
        logicEasyBestPoint = [[gameDataDictionary objectForKey:@"logicEasyBestPointKey"] intValue];
        logicNormalIsPlayable = [[gameDataDictionary objectForKey:@"logicNormalIsPalyableKey"] boolValue];
        logicNormalBestTime = [[gameDataDictionary objectForKey:@"logicNormalBestTimeKey"] intValue];
        logicNormalBestPoint = [[gameDataDictionary objectForKey:@"logicNormalBestpointKey"] intValue];
        logicHardIsPlayable = [[gameDataDictionary objectForKey:@"logicHardIsPalyableKey"] boolValue];
        logicHardBestTime = [[gameDataDictionary objectForKey:@"logicHardBestTimeKey"] intValue];
        logicHardBestPoint = [[gameDataDictionary objectForKey:@"logicHardBestPointKey"] intValue];
        
        speedEasyBestTime = [[gameDataDictionary objectForKey:@"speedEasyBestTimeKey"] intValue];
        speedEasyBestPoint = [[gameDataDictionary objectForKey:@"speedEasyBestPointKey"] intValue];
        speedNormalIsPlayable = [[gameDataDictionary objectForKey:@"speedNormalIsPalyableKey"] boolValue];
        speedNormalBestTime = [[gameDataDictionary objectForKey:@"speedNormalBestTimeKey"] intValue];
        speedNormalBestPoint = [[gameDataDictionary objectForKey:@"speedNormalBestpointKey"] intValue];
        speedHardIsPlayable = [[gameDataDictionary objectForKey:@"speedHardIsPalyableKey"] boolValue];
        speedHardBestTime = [[gameDataDictionary objectForKey:@"speedHardBestTimeKey"] intValue];
        speedHardBestPoint = [[gameDataDictionary objectForKey:@"speedHardBestPointKey"] intValue];
    }
}

self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
// Override point for customization after application launch.
self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil] autorelease];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];


return YES;

}

这是第一个加载的视图控制器的代码

- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.

//Piracy Check
iShmoopi *PiracyCheck = [[[iShmoopi alloc] init] autorelease];
if ([PiracyCheck isPirated] == KAPPLICATIONNOTPIRATED || [PiracyCheck isPirated] == KNOTPIRATED) {
    //Do Nothing, Not Pirated
    NSLog(@"not pirated");
} 
else 
{
    //Do Something, Pirated
    
    //Hostile Exit 
    iShmoopi *HostileExit = [[[iShmoopi alloc] init] autorelease];
    [HostileExit Hostile];
}

[titleImageView setImage:[UIImage imageNamed:@"gameTitleImage.png"]];

NSTimer *t;
t = [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(tEnd) userInfo:nil repeats:YES];

}

顺便说一句,我使用上面代码中显示的Shmoopi Anti-Piracy Library

有什么建议吗?

【问题讨论】:

  • 建议:通过网络寻找设备的测试人员并分析崩溃日志。在我工作的公司中,我们从 iOS 2.2.1 开始就一直在处理设备和模拟器,我向您保证,模拟器测试还不够。曾经。还要确保您的 iPhone 4 设备使用 iOS 5.1.1,并且不会崩溃。
  • 我在运行 iOS 5.1.1 的 iPhone 4 上测试了我的应用程序,并且运行良好。我也会考虑在互联网上找一个测试员。感谢重播。
  • 解决方案:花更少的时间防止盗版,而花更多的时间制作高质量的应用程序。
  • 是否有可能是苹果测试设备上的某些东西触发了您的盗版对策?
  • 谢谢大家的回复,我会尝试更改盗版代码并再次提交我的应用程序

标签: iphone objective-c ios ipad crash


【解决方案1】:

找到一种在真实设备中进行测试的方法。借用、租用或购买。

【讨论】:

  • 不酷的答案。我有一台 iPad 1 和 2。购买第三台 iPad 只是为了发布我的 iPhone 应用程序。快点。有人可以通过说明一些差异以及为什么 sim 工作设备不工作来真正回答这个问题吗?为什么苹果测试中心不给我们崩溃日志。
  • 是的,很臭。我明白。但实际上,唯一确定的方法是在该设备上进行测试。有没有你认识的人可以借用或至少坐一会儿,这样你就可以做一些测试?
  • 那么出售旧款 iPad 并购买第三代是否安全?
【解决方案2】:

我的应用已获得批准。 我删除了 Shmoopi 反盗版库代码并编写了自己的代码。 所以问题是 Shmoopi Anti-Piracy Library 与 iPad 3rd Gen 不兼容。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-07
    • 1970-01-01
    • 2017-07-01
    • 1970-01-01
    • 2023-03-25
    相关资源
    最近更新 更多