Search Unity

Semantic issues in latest EveryplayUnity.mm (iOS)

Discussion in 'Unity Everyplay' started by efge, Mar 26, 2015.

  1. efge

    efge

    Joined:
    Dec 13, 2007
    Posts:
    62
    Just updated to "1950-1310 - Mar 24th 2015" and now got 2 semantic issues in Xcode:
    Cast from pointer to smaller type 'int' loses information
    (EveryplayFaceCamSetTargetTexture and EveryplaySetThumbnailTargetTexture)

    Thanks,
    FF
     
  2. surathunity3d

    surathunity3d

    Moderator

    Joined:
    Sep 30, 2014
    Posts:
    128
    Hi @efge and others,

    Known issues, we will fix this as soon as we are ready to push the next update.
    This issue only happens when building with x64 binary, so when building 32bit + IL2CPP doesn't trigger the build error.
    In the meanwhile, please follow the following steps.

    1. Open Assets/Plugins/Everyplay/iOS/EveryplayUnity.mm
    2. Search for "reinterpret_cast" (There should be 2 instances: Line #439 and Line #495)
    3. Replace those 2 lines ...
    From:
    [[[EveryplaysharedInstance] capture] setThumbnailTargetTextureId: reinterpret_cast<int>(texturePtr)];
    To:
    [[[Everyplay sharedInstance] faceCam] setTargetTextureId: static_cast<int>(reinterpret_cast<uintptr_t>(texturePtr))];
    4. Build your awesome game.

    Hope this helps!

    Cheers
    Surath
     
  3. infosekr

    infosekr

    Joined:
    Jul 12, 2013
    Posts:
    46
    It took a while to find this blog post. It would be nice if important issues like this were listed somewhere on the Everyplay site.
     
  4. surathunity3d

    surathunity3d

    Moderator

    Joined:
    Sep 30, 2014
    Posts:
    128
    Hi @infosekr

    Thanks for your feedback.
    We will addressing such ongoing known issues in a separate section in the Documentation in the future.

    This is a temp. issue which will be fixed in the following SDK update.
    To keep this thread visible, I have pinned it so that it is the 1st thread in Everyplay section.

    I hope the solution helped you in resolving the issue.

    Cheers
    Surath
     
    infosekr likes this.
  5. surathunity3d

    surathunity3d

    Moderator

    Joined:
    Sep 30, 2014
    Posts:
    128
    The fix for this is now released: Unity SDK version 1960-1320 on Apr 16th 2015