[英]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.