Xcode9のArchiveでipaファイルを作成しているのですが、
iPhone5sでの実機確認をすると落ちてしまいます。
ですがiPhone7で実機の確認はできます。
ちなみにiPhone5sのシミュレーターでは確認できました。
Xcode9は5sまで対応していると聞いたのですが何か設定が必要でしょうか?
端末情報は
iPhone5s iOS11.1.2
iPhone7 iOS11.4です。
Xcode9のiOSDeploymentTargetはiOS8.0で設定しています。
下記にクラッシュログとdidFinishLaunchingWithOptionsの処理を書いています。
Incident Identifier: 43E8015D-9BF8-4128-841C-9B7D5AC2F8E1 CrashReporter Key: 916fc5e60ceb5c11b042eca748d4521249d5b115 Hardware Model: iPhone,1 Process: MyApp [1377] Path: /private/var/containers/Bundle/Application/D9C036AE-937E-42A9-AF8A-70EC3BC3E949/MyApp.app/MyApp Identifier: Version: 1.0.0 (999.0.17) Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: [1351] Date/Time: 2018-07-03 11:38:55.8189 +0900 Launch Time: 2018-07-03 11:38:35.5416 +0900 OS Version: iPhone OS 11.4 (15F79) Baseband Version: 8.55.00 Report Version: 104 Exception Type: EXC_CRASH (SIGKILL) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d Termination Description: SPRINGBOARD, scene-create watchdog transgression: exhausted real (wall clock) time allowance of 19.81 seconds | | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 35.710 (user 35.710, system 0.000), 89% CPU", | "Elapsed application CPU time (seconds): 18.055, 45% CPU" | ) Triggered by Thread: 0 Filtered syslog: None found Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 MyApp 0x00000001007cfd08 lj_str_new + 260 1 MyApp 0x00000001007d2534 lj_meta_cat + 392 2 MyApp 0x00000001007ca568 lj_BC_CAT + 32 3 MyApp 0x00000001007de3b4 lua_pcall + 164 4 MyApp 0x000000010063bfac cocos2d::LuaStack::executeFunction+ 769964 (int) + 172 5 MyApp 0x000000010063c0a4 cocos2d::LuaStack::executeFunctionByHandler+ 770212 (int, int) + 76 6 MyApp 0x0000000100638e30 cocos2d::LuaEngine::handleNodeEvent+ 757296 (void*) + 268 7 MyApp 0x0000000100c021b8 cocos2d::ScriptEngineManager::sendNodeEventToLua+ 6824376 (cocos2d::Node*, int) + 104 8 MyApp 0x00000001009469b0 cocos2d::Director::setNextScene+ 3959216 () + 236 9 MyApp 0x00000001009466e4 cocos2d::Director::drawScene+ 3958500 () + 112 10 MyApp 0x0000000100c09ac4 -[CCEAGLView layoutSubviews] + 172 11 UIKit 0x000000018da976f4 -[UIView+ 308980 (CALayerDelegate) layoutSublayersOfLayer:] + 1420 12 QuartzCore 0x000000018800dfec -[CALayer layoutSublayers] + 184 13 QuartzCore 0x000000018801217c CA::Layer::layout_if_needed+ 1208700 (CA::Transaction*) + 324 14 QuartzCore 0x0000000187f7e830 CA::Context::commit_transaction+ 604208 (CA::Transaction*) + 320 15 QuartzCore 0x0000000187fa6364 CA::Transaction::commit+ 766820 () + 580 16 UIKit 0x000000018de81680 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 140 17 CoreFoundation 0x0000000183e2f2bc __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20 18 CoreFoundation 0x0000000183e2ea7c __CFRunLoopDoBlocks + 264 19 CoreFoundation 0x0000000183e2c7b0 __CFRunLoopRun + 1224 20 CoreFoundation 0x0000000183d4cda8 CFRunLoopRunSpecific + 552 21 GraphicsServices 0x0000000185d31020 GSEventRunModal + 100 22 UIKit 0x000000018dd69758 UIApplicationMain + 236 23 MyApp 0x00000001005d4de4 main + 347620 (main.m:13) 24 libdyld.dylib 0x00000001837ddfc0 start + 4
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { cocos2d::Application *app = cocos2d::Application::getInstance(); // Initialize the GLView attributes app->initGLContextAttrs(); cocos2d::GLViewImpl::convertAttrs(); // Override point for customization after application launch. // Add the view controller's view to the window and display. window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]]; // Use RootViewController to manage CCEAGLView _viewController = [[RootViewController alloc]init]; //_viewController.wantsFullScreenLayout = YES; _viewController.extendedLayoutIncludesOpaqueBars = YES; // Set RootViewController to window if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0) { // warning: addSubView doesn't work on iOS6 [window addSubview: _viewController.view]; } else { // use this method on ios6 [window setRootViewController:_viewController]; } [window makeKeyAndVisible]; [[UIApplication sharedApplication] setStatusBarHidden:true]; // IMPORTANT: Setting the GLView should be done after creating the RootViewController cocos2d::GLView *glview = cocos2d::GLViewImpl::createWithEAGLView((__bridge void *)_viewController.view); cocos2d::Director::getInstance()->setOpenGLView(glview); //run the cocos2d-x game scene app->run(); return YES; }

回答3件
あなたの回答
tips
プレビュー