Search Unity

Unable to build IOS Arcore Multiplayer Light Board demo

Discussion in 'AR' started by rob_ice, Jul 2, 2018.

  1. rob_ice

    rob_ice

    Joined:
    Nov 11, 2016
    Posts:
    112
    Hi Everyone

    I have been trying to build and run the 'Light Boards' Multiplayer demo for IOS using ARCore through the git repo provided by google. However, there seems to be a cocoapods related error during the build process where some dependencies aren't added. (see error in code box below)

    Also we think this error may be stopping the build from running due to the project build process not including dependancies and generating a .xcworkspace file that needs to be opened instead of a .xcproject file (see the getting started for ArCore IOS here: https://developers.google.com/ar/develop/unity/quickstart-ios )

    Build for iOS

    1. In Unity, click Build and select an output folder for your iOS Xcode project. An Xcode project is generated.

    2. Locate and open the generated *.xcworkspace workspace file in Xcode.
      To avoid build errors, do not build or launch from the included *.xcodeproj project file.

    3. In Xcode, select the Unity iOS project in the left pane, connect your device, and launch your app.


    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. 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.
    3. pod install output:
    4. Analyzing dependencies
    5. Cloning spec repo `cpdc-internal-spec` from `sso://cpdc-internal/spec`
    6. [!] Unable to add a source with url `sso://cpdc-internal/spec` named `cpdc-internal-spec`.
    7. You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
    8.  
    9.     �[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
    10.     Consider adding the following to ~/.profile:
    11.     export LANG=en_US.UTF-8
    12.     �[0m
    13. pod repo update output:
    14. Updating spec repo `master`
    15.   $ /usr/bin/git -C /Users/rob.farthing/.cocoapods/repos/master fetch origin --progress
    16.   $ /usr/bin/git -C /Users/rob.farthing/.cocoapods/repos/master rev-parse --abbrev-ref HEAD
    17.   master
    18.   $ /usr/bin/git -C /Users/rob.farthing/.cocoapods/repos/master reset --hard origin/master
    19.   HEAD is now at b43e0256d53 [Add] JXFMDBHelper 0.1.0
    20.  
    21.     �[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
    22.     Consider adding the following to ~/.profile:
    23.     export LANG=en_US.UTF-8
    24.     �[0m
    25.   remote: Counting objects: 9, done.      
    26.   remote: Compressing objects:  12% (1/8)             remote: Compressing objects:  25% (2/8)             remote: Compressing objects:  37% (3/8)             remote: Compressing objects:  50% (4/8)             remote: Compressing objects:  62% (5/8)             remote: Compressing objects:  75% (6/8)             remote: Compressing objects:  87% (7/8)             remote: Compressing objects: 100% (8/8)             remote: Compressing objects: 100% (8/8), done.      
    27.   remote: Total 9 (delta 5), reused 0 (delta 0), pack-reused 0      
    28.   From https://github.com/CocoaPods/Specs
    29.      66380c197f3..b43e0256d53  master     -> origin/master
    30. UnityEngine.Debug:LogError(Object)
    31. Google.Logger:Log(String, LogLevel)
    32. Google.IOSResolver:Log(String, Boolean, LogLevel)
    33. Google.IOSResolver:OnPostProcessInstallPods(BuildTarget, String)
    34. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    35.  
    https://github.com/googlesamples/arcore-lightboard