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

时间:2020-02-04 07:03:34

标签: ios unity3d rubygems cocoapods vuforia

在为Unity iOS平台进行构建时,出现以下构建时间错误。我正在使用Vuforia 8.5.9的2019.3.0f1。

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

失败后,执行“ pod repo更新”并成功。然后再次尝试“ 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年3月28日修订版63024)[universal.x86_64-darwin17] RubyGems: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 存储库:主服务器-https://github.com/CocoaPods/Specs.git @ d8b5f1b90922aae009a341d40e9247a63531eb11


### Plugins

cocoapods-inintegrate:1.0.2 cocoapods插件:1.0.0 cocoapods-search:1.0.0 cocoapods-stats: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.orghttps://github.com/CocoaPods/CocoaPods/releases/tag/1.9.0.beta.2的该版本的CHANGELOG

[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代码)(由本地管理的包装器)UnityEngine.DebugLogHandler:Internal_Log(UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)

1 个答案:

答案 0 :(得分:2)

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

$ gem卸载cocoapods $ gem install cocoapods

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

Cocoapods Troubleshooting