Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Your app contains non-public API usage ?? (Validation Fails)

Discussion in 'iOS and tvOS' started by awitte, Oct 21, 2014.

  1. awitte

    awitte

    Joined:
    Oct 21, 2014
    Posts:
    8
    Why is Apple now failing to validate Unity builds?
    I built and published the same app Using Unity4.5.4 a couple weeks ago with no issues.

    Now after making some code changes, nothing else was change and i'm not using any plugins.
    I built the new app version with Unity4.5.5 then build with xCode 6.1 and run Validation on the Archive.
    I get the errors below:


    NOTE: I'm on OSX 10.10
     
  2. RSH1

    RSH1

    Joined:
    Jul 9, 2012
    Posts:
    250
  3. Aslan85

    Aslan85

    Joined:
    Feb 24, 2014
    Posts:
    14
    Me too.

    Who can help us ?
     
  4. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
  5. ababab5

    ababab5

    Joined:
    Apr 15, 2014
    Posts:
    508
    Exactly the same here .. damn !
     
  6. RSH1

    RSH1

    Joined:
    Jul 9, 2012
    Posts:
    250
    Thanks, downgrading to 6.0.1 worked. Hopefully this gets resolved soon. It would be nice to have a dedicated "is it safe to upgrade" page for these kinds of issues.
     
  7. awitte

    awitte

    Joined:
    Oct 21, 2014
    Posts:
    8
    Downgrading to xCode6.0.1 works, thanks for the workaround.
    I don't understand apple and all there artificial limitations, like this one and Mono being forced into AOT ect ect... its ridiculous if you ask me.
     
  8. r618

    r618

    Joined:
    Jan 19, 2009
    Posts:
    1,270
    mono scripts being AOT compiled is a security thing - Apple does not want any script/s downloaded to the device from the internets to be executable and it is right thing to require

    this one is because latest Xcode has a bug and sometimes similar issue pops up because between you as a developer and Apple there is another third party so to speak - Unity
     
  9. awitte

    awitte

    Joined:
    Oct 21, 2014
    Posts:
    8
    What difference would that make when I can just download a compiled native lib instead and invoke the native methods? Also this would be irreverent if the app was sandboxed with app permissions like WP8, Android, BB10 ect...
    So I disagree as I think they are trying to force people into using battery saving code... which is a artificial limitation. But if i'm wrong, i'd like to know how?

    Also on top of the native lib invoke method I could just embed a language script engine that executes code downloaded from a text file. Sandboxing is the only real way to protect a system.
     
    Last edited: Oct 23, 2014
  10. r618

    r618

    Joined:
    Jan 19, 2009
    Posts:
    1,270
    you can't

    every app on iOS *is* sandboxed

    you can't; any app using runtime code generation and invocation wouldn't pass automatic screening / review process


    Edit: for the sake of being quasi correct on the internet:

    it is very likely possible to obfuscate syscall/s and private API/s calls to hide them and pass the review despite having e.g. downloading and executing / interpreting code at runtime

    it was not the original question though - downloading and invoking external code is not *straightforwardly* possible and is in fact prohibited and restricted by the system and the review process

    But I think it's better to point out that no sandboxing and security measures can assure any platform to be 100% secure, rather than pretending it is.
     
    Last edited: Oct 23, 2014
  11. Aslan85

    Aslan85

    Joined:
    Feb 24, 2014
    Posts:
    14
    I confirm, the Downgrading to xCode6.0.1 works !

    Thank you.
     
  12. awitte

    awitte

    Joined:
    Oct 21, 2014
    Posts:
    8
    Does the "Unity3D Patch 4.5.5p2" fix this issue?
    If not, is there a patch expected to fix this issue? Or is this more on apples end?
     
  13. JonnyHilly

    JonnyHilly

    Joined:
    Sep 4, 2009
    Posts:
    742
    I had the same error, I submitted again and it succeeded. Had to resubmit a few days later, same error... submitted again, and again it succeeded on the second submission. no idea why.
     
  14. RSH1

    RSH1

    Joined:
    Jul 9, 2012
    Posts:
    250
    Is this issue fixed yet? I now need to use XCode 6.1.
     
    Last edited: Nov 14, 2014
  15. Aslan85

    Aslan85

    Joined:
    Feb 24, 2014
    Posts:
    14
    Yes, this is ok now with the last version of XCode.