# Studio Niantic: Error on IOS browser

**URL:** <https://forum.8thwall.com/t/studio-niantic-error-on-ios-browser/3185>\
**Category:** Technical Support\
**Tags:** FAQ, general\
**Created:** [October 16, 2024, 4:56am UTC](https://forum.8thwall.com/t/studio-niantic-error-on-ios-browser/3185 "2024-10-16T04:56:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitri](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@amitri](https://forum.8thwall.com/u/amitri)\
**Post date:** [October 16, 2024, 4:56am UTC](https://forum.8thwall.com/t/studio-niantic-error-on-ios-browser/3185/1 "2024-10-16T04:56:55Z")

</div>

Hi everyone!  
I run the game on android device fine but on IOS browser I get this error:

_TypeError: world.getChildren(topRow).forEach is not a function. (In 'world.getChildren(topRow).forEach(function (childBlock) {_  
_blockInTopRow = childBlock;_  
_})', ‘world.getChildren(topRow).forEach’ is undefined)_  
_BlockController.ts:44:36_

My code

> …  
> const topRow = BlockRows[BlockRows.length - 1]  
> let blockInTopRow  
> world.getChildren(topRow).forEach((childBlock) =\> {  
> blockInTopRow = childBlock  
> …  
> })

It seems **world.getChildren(topRow) does not return an array on IOS browser?**. How to solve it?

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [October 16, 2024, 3:47pm UTC](https://forum.8thwall.com/t/studio-niantic-error-on-ios-browser/3185/2 "2024-10-16T15:47:53Z")

</div>

`world.getChildren(eid)` doesn’t return an array it returns a [Generator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator).

If you convert it to a standard array using Array.from(), you can work with it in a more familiar way:

`Array.from(world.getChildren(eid))`

---

<div class="post-metadata">

**Author:** ![amitri](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@amitri](https://forum.8thwall.com/u/amitri)\
**Post date:** [October 17, 2024, 5:31am UTC](https://forum.8thwall.com/t/studio-niantic-error-on-ios-browser/3185/3 "2024-10-17T05:31:33Z")

</div>

Thanks for your support!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/2X/9/9212a857458f1b03a6accb129e0f8cbea408e3e5.png) [@system](https://forum.8thwall.com/u/system)\
**Post date:** [October 21, 2024, 5:31am UTC](https://forum.8thwall.com/t/studio-niantic-error-on-ios-browser/3185/4 "2024-10-21T05:31:46Z")

</div>

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.
