我正在尝试向我的Xcode项目添加一个pod。我收到这个错误:
LoadError——没有这样的文件要加载——xcodeproj/prebuild/universal-darwin13。0-1.8.7/xcodeproj_ext/Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require。rb:55:ingem_original_require'/Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require。rb:55:in
require'/Library/Ruby/Gems/1.8/Gems/xcodeproj-0.14.0/lib/xcodeproj/ext.rb:6/Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require。rb:55:ingem_original_require'/Library/Ruby/Site/1.8/html" target="_blank">rubygems/core_ext/kernel_require。rb:55:in
require'/Library/Ruby/Gems/1.8/Gems/xcodeproj-0.14.0/lib/xcodeproj/project。rb:4/Library/Ruby/Gems/1.8/Gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer。rb:488:incompute_target_platforms'/Library/Ruby/Gems/1.8/Gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer。rb:485:in
each'/Library/Ruby/Gems/1.8/Gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer。rb:485:incompute_target_platforms'/Library/Ruby/Gems/1.8/Gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer。rb:55:in
analyze'/Library/Ruby/Gems/1.8/Gems/cocoapods-0.27.1/lib/cocoapods/installer。rb:171:inanalyze'/Library/Ruby/Gems/1.8/Gems/cocoapods-0.27.1/lib/cocoapods/installer。rb:94:in
resolve_dependencies'/Library/Ruby/Gems/1.8/Gems/cocoapods-0.27.1/lib/cocoapods/user_interface。rb:52:insection'/Library/Ruby/Gems/1.8/Gems/cocoapods-0.27.1/lib/cocoapods/installer。rb:93:in
resolve_dependencies'/Library/Ruby/Gems/1.8/Gems/cocoapods-0.27.1/lib/cocoapods/installer。rb:86:ininstall!'/Library/Ruby/Gems/1.8/Gems/cocoapods-0.27.1/lib/cocoapods/command/project。rb:38:in
run\u install\u with\u update“/Library/Ruby/Gems/1.8/Gems/cocoapods-0.27.1/lib/cocoapods/command/project。rb:68:inrun'/Library/Ruby/Gems/1.8/Gems/claide-0.3.2/lib/claide/command。rb:206:in
run'/Library/Ruby/Gems/1.8/Gems/cocoapods-0.27.1/lib/cocoapods/command。rb:51:inrun'/Library/Ruby/Gems/1.8/Gems/cocoapods-0.27.1/bin/pod:19/usr/bin/pod:23:in
load'/usr/bin/pod:23
我的podfile内容:
pod 'RestKit', '~> 0.21.0'
任何帮助都将不胜感激!
如果您正在使用10.10,并且看到这个错误(/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/Ruby/2.0.0/rubygems/core\u ext/kernel\u require.rb:55:)请尝试以下方法
Open Xcode 6 > Preferences > Locations
Command Line Tools version to Xcode 6.0
Uninstall cocoapods/xcodeproj then re-install.
sudo gem uninstall cocoapods
sudo gem uninstall xcodeproj
sudo gem install xcodeproj
sudo gem install cocoapods
pod --version
终于找到了解决方案:我在具有相同项目的同一台机器上运行旧Xcode4和新Xcode5。在某个时候,我似乎丢失了命令行工具(和iPhone5模拟器)。
重新安装命令行工具为我解决了这个问题。由于未知原因,Xcode 4.6.3菜单项Xcode-首选项-下载-组件
不再有命令行工具,下面是另一种安装方法:
xcode-select --install
--install
Opens a user interface dialog to request automatic installation of the
command line developer tools.
现在运行“pod install”工作得很好。
我也看到了。运行此命令修复了以下问题:
sudo gem install cocoapods && pod install
将我的CakePHP3项目部署到Ubuntu 14.04服务器后,当我在浏览器中打开项目时,出现以下错误: 警告:require(/var/www/html/xyz-web/vendor/autoload.php):无法打开流:第38行的/var/www/html/xyz-web/config/bootstrap.php中没有此类文件或目录 致命错误:require():在第38行/var/www
我有一个问题,在scss中添加后台url时漏掉了一些加载器...你有什么想法吗? ./element/about/landing/landing/tlowo_podstawowe/tlowo.png 1:0模块分析失败:意外字符“”(1:0)您可能需要一个适当的加载程序来处理此文件类型,当前没有配置任何加载程序来处理此文件。请参阅https://webpack.js.org/concepts#lo
我正在尝试编译我的React项目,但是这些错误突然出现: 终端输出: 有人知道为什么会这样吗?
我正在使用yarn为react项目设置webpack,但出现以下错误: ./src/app.js 67:6模块分析失败中的错误:意外标记(67:6)您可能需要一个适当的加载器来处理此文件类型,当前没有配置任何加载器来处理此文件。请参阅https://webpack.js.org/concepts#Loadersℹ:编译失败。 webpack.config.js package.json
我正在学习使用WebPack构建我的react项目。我已经配置了一个webpack.config.js来加载CSS文件。 webpack.config.js: 我不明白该怎么办。谢谢你。