即时通讯尝试在我的项目中安装cocoapods,但我总是遇到错误
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface/error_report.rb:103: warning: Insecure world writable dir /usr/local in PATH, mode 040777
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `open': No such file or directory - /Users/CravenJM/.cocoapods/repos (Errno::ENOENT)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `foreach'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `children'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/sources_manager.rb:63:in `all'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface/error_report.rb:130:in `repo_information'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface/error_report.rb:34:in `report'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:58:in `report_error'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:300:in `handle_exception'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:274:in `rescue in run'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:264:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:45:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/bin/pod:43:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'
Run Code Online (Sandbox Code Playgroud)
知道它可能是什么或我如何解决这个问题?我需要cocoapods的应用程序,但它是一个噩梦:-)
如何找出已安装的可可豆荚的版本?
我不是问可可豆荚宝石的版本,而是豆荚本身的版本.理想情况下,它会说"pod GreatViewController安装在1.2.3版本中,新版本可用:1.2.6".
有类似的东西吗?
我试图在我的OSX Mountain Lion上安装cocoapods(http://cocoapods.org/).
moshe-mbp:~ moshem$ gem install cocoapods
ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint (https://rubygems.org/latest_specs.4.8.gz)
Run Code Online (Sandbox Code Playgroud)
我先试过
rvm reinstall all --force
Run Code Online (Sandbox Code Playgroud)
然后我试了
brew upgrade openssl
==> Upgrading openssl
==> Downloading http://openssl.org/source/openssl-1.0.1e.tar.gz
Already downloaded: /Library/Caches/Homebrew/openssl-1.0.1e.tar.gz
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.1e --openssldir=/usr/local/etc/openssl zlib-dynamic shared d
==> make
==> make test
==> make install MANDIR=/usr/local/Cellar/openssl/1.0.1e/share/man MANSUFFIX=ssl
==> Caveats …Run Code Online (Sandbox Code Playgroud) 我有一个开发窗格,我使用本地连接到我的应用程序:path => '~/Projects/Swift/pod'.当我在该开发窗格中的应用程序代码中进行更改时,构建后不会包含此更改.这就像我构建缓存代码,而不是我的代码更改.
对于包含代码更改到构建我必须运行命令"清理构建文件夹",但在该构建需要很长时间后,持续10分钟,这不是很有效率.
从字面上看,我对一行代码发表评论并等待10分钟才能看到变化.
问题是什么?
我试图在任何更改后运行"pod install/pod update",但它没有任何效果.
如何为项目和cocoapod依赖项禁用bitcode?这是我在尝试使用Xcode 7运行项目时遇到的错误.
不包含bitcode.您必须在启用bitcode(Xcode设置ENABLE_BITCODE)的情况下重建它,从供应商处获取更新的库,或禁用此目标的bitcode.对于架构arm64
编辑:最初只为其中一个目标禁用它.一旦我禁用了所有这些,我就能够成功构建.
更新到 Xcode 15 后,我在尝试构建 React-native 应用程序时收到以下错误。
clang: error: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a'; try increasing the minimum deployment target
Run Code Online (Sandbox Code Playgroud)
最低部署目标是13.0
这是我的Podfile
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
$RNMapboxMapsImpl = 'mapbox'
platform :ios, '13.0'
target 'MyProject' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
# ADDED BY ME
def __apply_Xcode_14_3_RC_post_install_workaround(installer)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
current_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] …Run Code Online (Sandbox Code Playgroud) 我正在关注Firebase的互联网教程,作为其中的一部分,我必须在命令行中做一些工作.我对命令行很满意,但我对Cocoapods不熟悉.我跑了pod repo update但是在这之后我意识到我在我的Mac的整个Documents文件夹上运行它而不是包含我的项目的文件夹.我花了20多分钟来执行它,当它最终完成时,它打印出数千种东西,其中一些包括"创建"和"删除".我有点担心 - 除了Firebase项目之外,运行此命令是否修改了我的文档中的任何内容?什么pod repo update甚至可以做到这一点?
当我运行时pod init,出现以下错误。
RuntimeError - [Xcodeproj] Unknown object version.
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:227:in `initialize_from_file'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:112:in `open'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/init.rb:41:in `validate!'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:333: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 `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
Run Code Online (Sandbox Code Playgroud) 这是简短的版本:
我跑的时候
pod install
Run Code Online (Sandbox Code Playgroud)
在我得到的Xcode项目中
[!] Pod :: Executable pull error:无法打开.git/FETCH_HEAD:权限被拒绝
如果我跑
sudo pod install
Run Code Online (Sandbox Code Playgroud)
我没有得到任何错误,但是我安装的文件是root所有并且无法编译,我必须将chown这些文件发送给普通用户才能使用Xcode编译器.
我正在运行Lion OSX.
我使用安装了cocoaPods
sudo gem install cocoaPods
Run Code Online (Sandbox Code Playgroud)
我不得不使用sudo因为没有它我得到了
错误:执行gem时...(Gem :: FilePermissionError)
您没有写入/Library/Ruby/Gems/1.8目录的权限.
所以现在我有一个root安装版本的cocoaPods下载了root拥有的Xcode库.
是以sudo正确的方式安装cocoaPods吗?
如果正常,有没有办法解决pod安装问题?
我想问一下然后回答这个问题.
我想更新我的应用程序内置的CocoaPods,所以我pod install从终端运行.
那是我收到这个错误的时候:
[!] The `APP_NAME [Debug]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
Run Code Online (Sandbox Code Playgroud)
你如何使用$(继承)标志?