简体   繁体   English

为什么我在 Xcode 的 pod init 期间收到加载错误?

[英]Why am I getting a load error during pod init in Xcode?

Im building a social media app using Xcode.我正在使用 Xcode 构建一个社交媒体应用程序。 After running pod init im getting the error-运行 pod init 后,我​​收到错误-

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in 'require': cannot load such file -- concurrent/executor/cached_thread_pool (LoadError) ` /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in 'require': 无法加载此类文件 -- concurrent/executor/ cached_thread_pool (LoadError) `

I've tried running sudo gem install concurrent executor cached thread pool with this result我试过用这个结果运行 sudo gem install concurrent executor cached thread pool

**Building native extensions. This could take a while...
ERROR:  Error installing concurrent:
    ERROR: Failed to build gem native extension.
    current directory: /Library/Ruby/Gems/2.6.0/gems/concurrent-0.2.2/ext/concurrent/futures
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20200311-6507-4x4g6z.rb extconf.rb
creating Makefile
current directory: /Library/Ruby/Gems/2.6.0/gems/concurrent-0.2.2/ext/concurrent/futures
make "DESTDIR=" clean
current directory: /Library/Ruby/Gems/2.6.0/gems/concurrent-0.2.2/ext/concurrent/futures
make "DESTDIR="
compiling futures.c
In file included from futures.c:10:
/Users/davidstreet/Downloads/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/backward/rubysig.h:14:2: warning: rubysig.h is obsolete [-W#warnings]
#warning rubysig.h is obsolete
 ^
futures.c:11:10: fatal error: 'intern.h' file not found
#include "intern.h"
         ^~~~~~~~~~
1 warning and 1 error generated.
make: *** [futures.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/concurrent-0.2.2 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/concurrent-0.2.2/gem_make.out
Successfully installed executor-0.0.1
Parsing documentation for executor-0.0.1
Done installing documentation for executor after 0 seconds
Successfully installed cached-0.2
Parsing documentation for cached-0.2
Done installing documentation for cached after 0 seconds
Successfully installed thread-0.2.2
Parsing documentation for thread-0.2.2
Done installing documentation for thread after 0 seconds
Successfully installed pool-0.0.1
Parsing documentation for pool-0.0.1
Done installing documentation for pool after 0 seconds
4 gems installed
davidstreet@Davids-MacBook-Pro lnc.xcodeproj %**

I'm new to app development so any help would be awesome.我是应用程序开发的新手,所以任何帮助都会很棒。 Could anyone tell me if this is a bug I could download a pre-release and work around?谁能告诉我这是否是一个错误,我可以下载一个预发行版并解决这个问题?

Use these command使用这些命令

gem install thread

And

gem install pool 

Hope this will be useful希望这将是有用的

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 即使安装了 pod,为什么在 swift 中出现“没有此类模块 'ESPProvision'”错误? - Why am I getting "No such module 'ESPProvision'" Error in swift even though the pod is installed? 为什么我在结构中的self.init调用之前得到错误'self'? - Why am I getting the error 'self' used before self.init call in my struct? 尽管有初始化,为什么我会收到“在初始化之前使用的变量‘网格’”错误? - Why am I getting "Variable 'grid' used before being initialized" error despite having an init? 我在xcode中遇到错误(没有可用的重载) - I am getting an error in xcode (no available overloads) 我无法安装我的项目 pod 收到此错误 - i am not able to insatll my project pod getting this error 为什么我在Realm迁移期间收到此错误?:'RLMException',原因:'属性值无效' - Why am I getting this error during Realm migration?: 'RLMException', reason: 'Invalid value for property' 为什么在xcode 7.2.1中创建项目存档时出现此链接器错误? - why am i getting this linker error while creating archive of my project in xcode 7.2.1 为什么我在 Xcode 调试控制台中收到错误消息“无法识别的选择器” - Why am I getting the error message "unrecognised selector" in my Xcode debug console 当我尝试在swift中加载我的tableview时,为什么会出现EXC_BAD_INSTRUCTION错误? - Why am I getting EXC_BAD_INSTRUCTION error when I am trying to load my tableview in swift? 为什么会出现指针错误? - Why am I getting the pointer error?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM