Tearing my hair out!

Ok guys, here’s what’s happening. :face_with_spiral_eyes:
My game I am making randomly generates a terrain out of blocks.
In the editor the game runs perfectly.
On the xcode simulator my game runs perfectly.
When I build it with XCode and run it on my device, the ground does not generate, and my player just falls and falls.

Does anyone know what could possibly be wrong? If someone could help me I would offer a paypal reward!

Thankyou so much for reading.

Could you share us the problematic code part?

I seen this issue before also with a code template from the net.
I cannot remember the solution to the issue, it was some missing files or so…
But yes without the code how can anyone help, be realistic here - you need provide more info…

Thanks guys, here’s some more info.

XCode Simulator Debug:

XCode Simulator Picture:

Iphone 5 Build and Run Debug:

Image of game running on iPhone
(Same as Simulator picture, without the ground below)

Any help is appreciated! :smile:

Your logs look fine to me.

I have never run into an instance where code would run int he editor, without error, but then would completely fail on the iPad. Some really funky function must be in use. I would really like to know what it is when you figure it out.

Just as a means to make sure, build your project with API Compatibility Level: .NET 2.0 and Stripping Level: Disabled. These are under the Player Settings, the iOS tab.

Hey there! I’m using “Net 2.0 Subset” not “Net 2.0” could that be a problem?

.Net 2.0 subset is desirable if you aren’t using the APIs that require .Net 2.0 full.

You should connect to your iOS device and check your logs for a out of memory / …

My guess is that the device simply doesn’t have the power to keep up with the procedural level generation (I’m assuming it’s happening at run-time), so it doesn’t have the time to create the ground before the player falls through. It’s working in the editor and the simulator because your Mac is much more powerful.

Just a guess without seeing the code of course.

If you’re doing the voxel stuff that’s a good point. Remove your character from scene and retest on your iPhone 5.

Hey guys, thanks for the help, but still no success.
I setup the main camera in a stationary position pointing down at the map.
On the computer and simulator the world loads up perfectly.
I built it and ran it on my iPad, with “Net 2.0” not “Net 2.0 Subset” and there is still no map being generated.
The map is generated using perlin noise, is that even possible on iOS?

Thankyou