为什么在运行 Pod install 时会出现此错误“[!] 处理 Podfile 的安装后挂钩时发生错误”

问题描述

enter image description here

[!] 处理 Podfile 的安装后挂钩时出错。

[Xcodeproj] 一致性问题:对象 RNPlaceholder.swift 没有父对象:SourcesBuildPhase,SourcesBuildPhase

/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/helpers/groupable_helper.rb:19:in parent' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/build_file.rb:71:in ascii_plist_annotation' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:296:in block in to_ascii_plist' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:295:in each' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:295:in to_ascii_plist' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:364:in block in save' /Library/Ruby/Gems/2.6.0/gems/atomos-0.1.3/lib/atomos.rb:21:in block in atomic_write' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tempfile.rb:295:in open' /Library/Ruby/Gems/2.6.0/gems/atomos-0.1.3/lib/atomos.rb:17:in atomic_write' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:363:in save' /Users/lwillia5/Documents/ebw/DJRainMobileApp/node_modules/react-native/scripts/react_native_pods.rb:136:in block in exclude_architectures' /Users/lwillia5/Documents/ebw/DJRainMobileApp/node_modules/react-native/scripts/react_native_pods.rb:127:in each' /Users/lwillia5/Documents/ebw/DJRainMobileApp/node_modules/react-native/scripts/react_native_pods.rb:127:in exclude_architectures' /Users/lwillia5/Documents/ebw/DJRainMobileApp/node_modules/react-native/scripts/react_native_pods.rb:145:in react_native_post_install' /Users/lwillia5/Documents/ebw/DJRainMobileApp/ios/Podfile:28:in block (3 levels) in from_ruby' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/podfile.rb:179:in post_install!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:897:in run_podfile_post_install_hook' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:885:in 块在 run_podfile_post_install_hooks' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:145:in message' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:884:in run_podfile_post_install_hooks' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:329:in block (2 levels) in create_and_save_projects' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:61:in write!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:328:in block in create_and_save_projects' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in section' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:307:in create_and_save_projects' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:299:in generate_pods_project' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:178:in integrate' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:166:in install!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in run' /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in ' /usr/local/bin/pod:23:in load' /usr/local/bin/pod:23:in '

Pod 文件内容

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)