【问题标题】:Got this Build time error when Building Unity iOS version 2019.3.0f1 with Vuforia 8.5.9使用 Vuforia 8.5.9 构建 Unity iOS 版本 2019.3.0f1 时出现此构建时间错误
【发布时间】:2020-05-19 23:21:15
【问题描述】:

在为 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 红宝石:红宝石 2.3.7p456(2018-03-28 修订版 63024)[universal.x86_64-darwin17] 红宝石:2.5.2.3 主机:Mac OS X 10.13.6 (17G4015) Xcode:10.1(10B61) Git:git 版本 2.14.1 Ruby 库目录:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib 存储库:主 - https://github.com/CocoaPods/Specs.git @ d8b5f1b90922aae009a341d40e9247a63531eb11


### Plugins

cocoapods-deintegrate : 1.0.2 cocoapods 插件:1.0.0 cocoapods 搜索:1.0.0 可可足统计:1.0.0 可可足树干:1.3.0 cocoapods-try : 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

不要忘记匿名化任何私人数据!



[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 repo 更新输出:

更新规范库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 Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)

【问题讨论】:

    标签: ios unity3d rubygems cocoapods vuforia


    【解决方案1】:

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

    $ gem 卸载 cocoapods $ gem 安装 cocoapods

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

    Cocoapods Troubleshooting

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多