Hi Guys,
I have a call that is connecting to an external server and parsing information. The call is working fine in the webplayer and IOS within the editor. However when I deploy out to IOS I get the following crash in XCode.
System.Linq.Enumerable.c__Iterator1> doesn’t implement interface System.Collections.Generic.IEnumerable>
- Assertion: should not be reached at mini-trampolines.c:183
The code that makes the call looks like the following:
public void GetAcceptChallengeCount()
{
Debug.Log("GetAcceptChallengeCount");
var query = new ParseQuery<Game>()
.WhereEqualTo("challengeeFBId", _fbUserID)
.WhereEqualTo("status", CHALLENGE_CHALLENGED)
.WhereGreaterThan("challengerScore", -1);
StartCoroutine (WaitTaskAndDoAction (query.CountAsync(), OnAcceptChallengeCount));
}
public static IEnumerator WaitAndDoAction(float secconds, Action action)
{
yield return new WaitForSeconds(secconds);
action();
}
No idea why this would be crashing my IOS device. Any thoughts appreciated.
I'd love to see the full and and corrected example of the code (and errors), because it would help me solve a similar problem. The errors are truncated and the function is called with the wrong parameters. Did you ever solve this?
– lh