Search Unity

Can't compile for iOS

Discussion in 'ARCore' started by Seto, May 20, 2018.

  1. Seto

    Seto

    Joined:
    Oct 10, 2010
    Posts:
    225
    I can't compile for iOS.

     
  2. Seto

    Seto

    Joined:
    Oct 10, 2010
    Posts:
    225
    OK. I see. It's the problem of POD.
     
  3. Seto

    Seto

    Joined:
    Oct 10, 2010
    Posts:
    225
    But it seems pod command is not mentioned in the document.
     
  4. dustin_red

    dustin_red

    Joined:
    Feb 7, 2018
    Posts:
    46
    Might be related, but pods creates a different xcode workspace file that you have to open instead of the default xcodeproj file. Took me awhile to figure this out as well.

    https://developers.google.com/ar/develop/unity/quickstart-ios

     
    rob_ice likes this.
  5. Seto

    Seto

    Joined:
    Oct 10, 2010
    Posts:
    225
    I thought maybe the xcode project is published in win and I copied to apple. So it doesn't call the pod command automatically. So I just call the pod command manually. And it is solved.
     
  6. rob_ice

    rob_ice

    Joined:
    Nov 11, 2016
    Posts:
    112
    How did you go about adding the call manually?
     
  7. rob_ice

    rob_ice

    Joined:
    Nov 11, 2016
    Posts:
    112
    Just seem to get this error everytime we try to build on two of our office macs.. rather frustrating as there isn't a tonne of info on sso online


    Code (CSharp):
    1. iOS framework addition failed due to a Cocoapods installation failure. This will will likely result in an non-functional Xcode project.
    2.  
    3. After the failure, "pod repo update" was executed and succeeded. "pod install" was then attempted again, and still failed. This may be due to a broken Cocoapods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.
    4.  
    5. pod install output:
    6.  
    7. Analyzing dependencies
    8. Cloning spec repo `cpdc-internal-spec` from `sso://cpdc-internal/spec`
    9. [!] Unable to add a source with url `sso://cpdc-internal/spec` named `cpdc-internal-spec`.
    10. You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
     
  8. Mal_Duffin

    Mal_Duffin

    Joined:
    Jan 22, 2015
    Posts:
    43
    I'm seeing this issue as well - is there an easy solution ( possibly without using POD)?

    ( I also had this issue, using the git version as mentioned solved it - https://github.com/google-ar/arcore-unity-sdk/issues/239 )

    I'm building on Windows using the iOS Builder add-on, which has worked great for building all of the ARKit and ARFoundation sample scenes. Does the POD solution work on Cloud Build?