我一直在尝试通过ARCore通过Google提供的git repo为IOS构建和运行“ Light Boards”多人游戏演示。但是,在构建过程中似乎没有与cocoapods相关的错误,没有添加一些依赖项。 (请参见下面的代码框中的错误)
我们还认为此错误可能是由于项目构建过程不包括依赖关系而导致构建停止运行,并且生成了需要打开的.xcworkspace文件而不是.xcproject文件(请参阅此处的ArCore IOS入门) :https://developers.google.com/ar/develop/unity/quickstart-ios)
Build for iOS -在Unity中,单击生成,然后为您的iOS Xcode项目选择一个输出文件夹。生成一个Xcode项目。
在Xcode中找到并打开生成的* .xcworkspace工作区文件。 为避免生成错误,请不要从随附的* .xcodeproj项目文件中生成或启动。
在Xcode中,在左窗格中选择Unity iOS项目,连接您的设备,然后启动您的应用。
iOS framework addition failed due to a Cocoapods installation failure. This will will likely result in an non-functional Xcode project.
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.
pod install output:
Analyzing dependencies
Cloning spec repo `cpdc-internal-spec` from `sso://cpdc-internal/spec`
[!] Unable to add a source with url `sso://cpdc-internal/spec` named `cpdc-internal-spec`.
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
�[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
�[0m
pod repo update output:
Updating spec repo `master`
$ /usr/bin/git -C /Users/rob.farthing/.cocoapods/repos/master fetch origin --progress
$ /usr/bin/git -C /Users/rob.farthing/.cocoapods/repos/master rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/rob.farthing/.cocoapods/repos/master reset --hard origin/master
HEAD is now at b43e0256d53 [Add] JXFMDBHelper 0.1.0
�[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
�[0m
remote: Counting objects: 9, done.
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.
remote: Total 9 (delta 5), reused 0 (delta 0), pack-reused 0
From https://github.com/CocoaPods/Specs
66380c197f3..b43e0256d53 master -> origin/master
UnityEngine.Debug:LogError(Object)
Google.Logger:Log(String, LogLevel)
Google.IOSResolver:Log(String, Boolean, LogLevel)
Google.IOSResolver:OnPostProcessInstallPods(BuildTarget, String)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
https://github.com/googlesamples/arcore-lightboard