It seems that the UE-34257 BUG has been fixed and I can now package the game for ios with no error.However,after I install the app to ios manually,if I run the app,it will crash after a while.I have tested my project for iPhone 6 plus(ios10 public beta6) and iPhone 6s(ios9.3.2).All fail to run successfully.
After further investigation,I have found something in the device’s output log:
[2016.08.24-06.22.29:540][ 0]LogOutputDevice:Error: === Handled ensure: ===
[2016.08.24-06.22.29:540][ 0]LogOutputDevice:Error:
[2016.08.24-06.22.29:540][ 0]LogOutputDevice:Error: Ensure condition failed: MaterialInterfacesByLOD.Num() > 0 [File:/Users/build/Build/++UE4+Release-4.13+Compile/Sync/Engine/Source/Runtime/Landscape/Private/LandscapeRender.cpp] [Line: 646]
[2016.08.24-06.22.29:541][ 0]LogOutputDevice:Error:
[2016.08.24-06.22.29:541][ 0]LogOutputDevice:Error: Stack:
[2016.08.24-06.22.29:541][ 0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay<1>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int*, physx::Gu::RTree::CallbackRaycast*, physx::PxVec3 const*, float) const Address = 0x27e6cc9 (filename not found) [in UE4Game]
[2016.08.24-06.22.29:554][ 0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay<1>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int*, physx::Gu::RTree::CallbackRaycast*, physx::PxVec3 const*, float) const Address = 0x2dce1d7 (filename not found) [in UE4Game]
[2016.08.24-06.22.29:554][ 0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay<1>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int*, physx::Gu::RTree::CallbackRaycast*, physx::PxVec3 const*, float) const Address = 0xdc3c49 (filename not found) [in UE4Game]
[2016.08.24-06.22.29:555][ 0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay<1>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int*, physx::Gu::RTree::CallbackRaycast*, physx::PxVec3 const*, float) const Address = 0x117be65 (filename not found) [in UE4Game]
[2016.08.24-06.22.29:555][ 0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay<1>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int*, physx::Gu::RTree::CallbackRaycast*, physx::PxVec3 const*, float) const Address = 0x192c43b (filename not found) [in UE4Game]
[2016.08.24-06.22.29:555][ 0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay<1>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int*, physx::Gu::RTree::CallbackRaycast*, physx::PxVec3 const*, float) const Address = 0x1818b35 (filename not found) [in UE4Game]
[2016.08.24-06.22.29:555][ 0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay<1>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int*, physx::Gu::RTree::CallbackRaycast*, physx::PxVec3 const*, float) const Address = 0xfdafb5 (filename not found) [in UE4Game]
[2016.08.24-06.22.29:556][ 0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay<1>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int*, physx::Gu::RTree::CallbackRaycast*, physx::PxVec3 const*, float) const Address = 0x4eef8d (filename not found) [in UE4Game]
[2016.08.24-06.22.29:556][ 0]LogOutputDevice:Error: () Address = 0x23cd264d (filename not found) [in Foundation]
[2016.08.24-06.22.29:557][ 0]LogOutputDevice:Error: _pthread_start() Address = 0x231d8bf3 (filename not found) [in libsystem_pthread.dylib]
[2016.08.24-06.22.29:557][ 0]LogOutputDevice:Error:
It seems that the main cause still has something to do with the landscape.And I’m sure my project can be successfully packaged and run with 4.10.
To reproduce this,simply create a new project, and then add a landscape to the scene,then package it for ios.When you run the project on iPhone,the game will crash finally.
Please fix that!Thanks a lot!