ios - 使用 Vuforia 8.5.9 构建 Unity iOS 版本 2019.3.0f1 时出现此构建时间错误

标签 ios unity-game-engine rubygems cocoapods vuforia

在为 Unity iOS 平台构建时,我遇到了以下构建时间错误。我正在使用 2019.3.0f1 和 Vuforia 8.5.9。

由于 CocoaPods 安装失败,iOS 框架添加失败。这可能会导致 Xcode 项目无法正常运行。

失败后执行“pod repo update”并成功。然后再次尝试“pod install”,但仍然失败。这可能是由于 CocoaPods 安装损坏造成的。请参阅:https://guides.cocoapods.org/using/troubleshooting.html 了解潜在的解决方案。

pod 安装输出:

分析依赖关系

/usr/local/bin/pod 安装

CocoaPods:1.5.0 Ruby:ruby 2.3.7p456(2018-03-28 修订版 63024)[universal.x86_64-darwin17] ruby gem :2.5.2.3 主机:Mac OS X 10.13.6 (17G4015) Xcode:10.1(10B61) git:git版本2.14.1 Ruby lib 目录:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib 存储库:master - https://github.com/CocoaPods/Specs.git @ d8b5f1b90922aae009a341d40e9247a63531eb11


### Plugins

cocoapods-分解:1.0.2 cocoapods-插件:1.0.0 cocoapods-搜索:1.0.0 cocoapods-统计:1.0.0 cocoapods-主干:1.3.0 cocoapods-尝试:1.1.0


### Podfile

```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'

    target 'UnityFramework' do
      pod 'Crashlytics', '3.13.4'
      pod 'Fabric', '1.10.2'
      pod 'FBSDKCoreKit', '~> 5.2'
      pod 'FBSDKLoginKit', '~> 5.2'
      pod 'FBSDKShareKit', '~> 5.2'
      pod 'Firebase/Analytics', '6.14.0'
      pod 'Firebase/Core', '6.14.0'
      pod 'GoogleSignIn', '>= 4.0.2'
    end

RuntimeError - [!] Xcodeproj doesn't know about the following attributes {"inputFileListPaths"=>[], "outputFileListPaths"=>[]} for the 'PBXShellScriptBuildPhase' isa.
If this attribute was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:321:in `configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:262:in `new_from_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:299:in `each'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:296:in `each'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:262:in `new_from_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:299:in `each'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:296:in `each'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:262:in `new_from_plist'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:203:in `initialize_from_file'
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project.rb:103:in `open'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer/analyzer.rb:918:in `block (2 levels) in inspect_targets_to_integrate'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer/analyzer.rb:917:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer/analyzer.rb:917:in `block in inspect_targets_to_integrate'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer/analyzer.rb:912:in `inspect_targets_to_integrate'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer/analyzer.rb:78:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer.rb:243:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer.rb:154:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer.rb:153:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/installer.rb:116:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/command/install.rb:41:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'

――――模板结束―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――

[!]哦不,发生错误。

搜索与您的问题类似的现有 GitHub 问题: https://github.com/CocoaPods/CocoaPods/search?q=%5B%21%5D+Xcodeproj+doesn%27t+know+about+the+following+attributes+%7B%22inputFileListPaths%22%3D%3E%5B%5D%2C+%22outputFileListPaths%22%3D%3E%5B%5D%7D+for+the+%27PBXShellScriptBuildPhase%27+isa.%0AIf+this+attribute+was+generated+by+Xcode+please+file+an+issue%3A+https%3A%2F%2Fgithub.com%2FCocoaPods%2FXcodeproj%2Fissues%2Fnew&type=Issues

如果不存在,请使用上面显示的模板在以下位置创建票证: https://github.com/CocoaPods/CocoaPods/issues/new

请务必先阅读贡献指南,了解有关如何正确提交票证的详细信息: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

不要忘记对任何私有(private)数据进行匿名化!



[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
    Consider adding the following to ~/.profile:

    export LANG=en_US.UTF-8
    [0m

[!] `<PBXNativeTarget name=`Unity-iPhone` UUID=`1D6058900D05DD3D006BFB54`>` attempted to initialize an object with an unknown UUID. `9D25ABA3213FB47800354C27` for attribute: `dependencies`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] `<PBXNativeTarget name=`Unity-iPhone` UUID=`1D6058900D05DD3D006BFB54`>` attempted to initialize an object with an unknown UUID. `31CF47E9BE796228AD5C0441` for attribute: `dependencies`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] `<PBXNativeTarget name=`Unity-iPhone Tests` UUID=`5623C57217FDCB0800090B9E`>` attempted to initialize an object with an unknown UUID. `5623C58217FDCB0900090B9E` for attribute: `dependencies`. This can be the result of a merge and  the unknown UUID is being discarded.
/Library/Ruby/Gems/2.3.0/gems/gh_inspector-1.0.3/lib/gh_inspector/sidekick.rb:91:in `block in validate_delegate': #<Pod::UserInterface::InspectorReporter:0x00007fa4ba036388> does not handle inspector_successfully_recieved_report (RuntimeError)
    from /Library/Ruby/Gems/2.3.0/gems/gh_inspector-1.0.3/lib/gh_inspector/sidekick.rb:90:in `each'
    from /Library/Ruby/Gems/2.3.0/gems/gh_inspector-1.0.3/lib/gh_inspector/sidekick.rb:90:in `validate_delegate'
    from /Library/Ruby/Gems/2.3.0/gems/gh_inspector-1.0.3/lib/gh_inspector/sidekick.rb:20:in `search'
    from /Library/Ruby/Gems/2.3.0/gems/gh_inspector-1.0.3/lib/gh_inspector/inspector.rb:65:in `search_query'
    from /Library/Ruby/Gems/2.3.0/gems/gh_inspector-1.0.3/lib/gh_inspector/inspector.rb:59:in `search_exception'
    from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/user_interface/error_report.rb:119:in `search_for_exceptions'
    from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/command.rb:67:in `report_error'
    from /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:396:in `handle_exception'
    from /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:337:in `rescue in run'
    from /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:324:in `run'
    from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/lib/cocoapods/command.rb:52:in `run'
    from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.0/bin/pod:55:in `<top (required)>'
    from /usr/local/bin/pod:22:in `load'
    from /usr/local/bin/pod:22:in `<main>'

pod 存储库更新输出:

更新规范存储库master

CocoaPods 1.9.0.beta.2 现已推出。 要更新,请使用:sudo gem install cocoapods --pre [!]这是一个测试版本,我们希望您尝试一下。

有关详细信息,请参阅 https://blog.cocoapods.org 以及 https://github.com/CocoaPods/CocoaPods/releases/tag/1.9.0.beta.2 上此版本的变更日志

[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:

export LANG=en_US.UTF-8
[0m

#0 GetStacktrace(int) #1 DebugStringToFile(DebugStringToFileData const&) #2 DebugLogHandler::Internal_Log(LogType, LogOption, core::basic_string >, Object*) #3 DebugLogHandler_CUSTOM_Internal_Log(LogType、LogOption、ScriptingBackendNativeStringPtrOpaque*、ScriptingBackendNativeObjectPtrOpaque*) #4(Mono JIT 代码)(包装器托管到 native )UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)

最佳答案

大家好,我找到了这个问题的解决方案。事实证明是 mac Os 的 cocoapods 问题。解决方案是从终端执行以下命令。

$ gem 卸载 cocoapods $ gem 安装 cocoapods

您可以通过以下链接找到更多详细信息

Cocoapods Troubleshooting

关于ios - 使用 Vuforia 8.5.9 构建 Unity iOS 版本 2019.3.0f1 时出现此构建时间错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60052170/

相关文章:

c# - Unity - 如何为每个好 Action 显示几秒钟的文本

unity-game-engine - 重力的作用很奇怪

ios - 在 Unity iOS 应用程序中 Conceal/显示状态栏 [ Objective-C ]

ruby-on-rails - 如何在没有 nokogiri "rails console"错误的情况下在 Mac 上运行 "cannot load such file -- nokogiri/nokogiri (LoadError)"?

ruby-on-rails - 指纹不能为空/内容 公钥无效

iOS UITextView : URL Detection for links with country domain and without "http" prefix

ios - 如何阻止 UITableView 更新 contentSize

iphone - iOS 中 View Controller 和旋转之间的转换

ios - 排序描述符中的 @count 在 Objective-C 中给出 'not key value compliant' 错误

rubygems - 无法使用 RubyGem 2.7.1 安装 Cocoapods