XCode14创建的项目 pod init或pod install报错

这篇具有很好参考价值的文章主要介绍了XCode14创建的项目 pod init或pod install报错。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

### Command

```

/Users/xinhualong/.rvm/gems/ruby-3.0.0/bin/pod install

```

### Report

* What did you do?

* What did you expect to happen?

* What happened instead?

### Stack

```

CocoaPods : 1.11.3

Ruby : ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin21]

RubyGems : 3.3.10

Host : macOS 12.6 (21G115)

Xcode : 14.0.1 (14A400)

Git : git version 2.37.0 (Apple Git-136)

Ruby lib dir : /Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib

Repositories : 6-ios-xhlprivaterepoforios-xhlspecs-gitspecs - git - http://192.168.6.66:81/ios/XhlPrivateRepoForIOS/xhlSpecs/gitSpecs.git @ 36305fb3ccf201dae73e814587c349a84041350c

master - git - https://github.com/CocoaPods/Specs.git @ 4840327ea7821cb758166861c28f7cc8952531a9

trunk - CDN - https://cdn.cocoapods.org/

```

### Plugins

```

cocoapods-deintegrate : 1.0.5

cocoapods-plugins : 1.0.0

cocoapods-search : 1.0.1

cocoapods-trunk : 1.6.0

cocoapods-try : 1.2.0

```

### Podfile

```ruby

# Uncomment the next line to define a global platform for your project

# platform :ios, '9.0'

target 'HlwChatDemo' do

pod 'RongCloudRTC_Private'

pod 'RongCloudIM_Private'

target 'HlwChatDemoTests' do

inherit! :search_paths

# Pods for testing

end

target 'HlwChatDemoUITests' do

# Pods for testing

end

end

```

### Error

```

Encoding::CompatibilityError - incompatible character encodings: UTF-8 and ASCII-8BIT

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1564:in `join'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1564:in `join'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1224:in `path'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:500:in `block in copy_entry'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1513:in `wrap_traverse'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1516:in `block in wrap_traverse'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1515:in `each'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1515:in `wrap_traverse'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1516:in `block in wrap_traverse'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1515:in `each'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1515:in `wrap_traverse'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1516:in `block in wrap_traverse'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1515:in `each'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1515:in `wrap_traverse'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:497:in `copy_entry'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:471:in `block in cp_r'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1597:in `block in fu_each_src_dest'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1613:in `fu_each_src_dest0'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:1595:in `fu_each_src_dest'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/fileutils.rb:470:in `cp_r'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/downloader.rb:55:in `block (2 levels) in download'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/downloader/cache.rb:128:in `lock'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/downloader/cache.rb:84:in `read_lock'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/downloader.rb:53:in `block in download'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:149:in `message'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/downloader.rb:52:in `download'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/pod_source_installer.rb:118:in `download_source'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/pod_source_installer.rb:69:in `install!'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:563:in `install_source_of_pod'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:514:in `block (2 levels) in install_pod_sources'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:86:in `titled_section'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:513:in `block in install_pod_sources'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:496:in `each'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:496:in `install_pod_sources'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:255:in `block in download_dependencies'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:254:in `download_dependencies'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:162:in `install!'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run'

/Users/xinhualong/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/bin/pod:25:in `load'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/bin/pod:25:in `<main>'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/bin/ruby_executable_hooks:22:in `eval'

/Users/xinhualong/.rvm/gems/ruby-3.0.0/bin/ruby_executable_hooks:22:in `<main>'

```

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:

https://github.com/CocoaPods/CocoaPods/search?q=incompatible+character+encodings%3A+UTF-8+and+ASCII-8BIT&type=Issues

If none exists, create a ticket, with the template displayed above, on:

https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:

https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...

- Encoding::CompatibilityError - incompatible character encodings: ASCII-8BIT and UTF-8

https://github.com/CocoaPods/CocoaPods/issues/4582 [closed] [9 comments]

25 Jul 2022

- Encoding::CompatibilityError - incompatible character encodings: UTF-8 and ASCII-8BIT with pod install

https://github.com/CocoaPods/CocoaPods/issues/10516 [closed] [7 comments]

07 Jun 2022

- Nanaimo parse error

https://github.com/CocoaPods/CocoaPods/issues/6108 [closed] [19 comments]

25 Nov 2022

and 13 more at:

https://github.com/cocoapods/cocoapods/search?q=incompatible%20character%20encodings%3A%20UTF-8%20and%20ASCII-8BIT&type=Issues&utf8=✓

XCode14创建的项目 pod init或pod install报错

更新XCode14第一次pod init还是pod install都失败,在以前的pod过得项目上面就可以,以前上报错信息,网上都说更新pod,全试过了,最后都卸载重装pod也不行, 困扰了一天最后在https://github.com/CocoaPods/CocoaPods/issues/11546 github pod 问题站上面找到解决方法了

解决方法:

XCode14创建的项目 pod init或pod install报错

选中项目,修改Project Format 为最低版本Xcode 3.1-compatible,如图:文章来源地址https://www.toymoban.com/news/detail-462099.html

XCode14创建的项目 pod init或pod install报错

到了这里,关于XCode14创建的项目 pod init或pod install报错的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • npm init vue@latest 创建项目启动报错记录

    问题描述: 解决方案: 1.在终端中输入sudo vim /etc/hosts ,回车然后输入密码 2.若出现如下图所示(若没有则直接输入i,然后进行后续操作),请输入E 然后输入i,移动到最后一行输入127.0.0.1 localhost 3.按esc退出编辑,然后输入:wq保存并推出 4.然后重启项目就可以了。

    2023年04月08日
    浏览(67)
  • 升级Xcode 14.3项目报错PhaseScriptExecution failed with a nonzero exit code

    经过各种折腾之后,发现是CocoaPods的问题,解决方案如下: 全局搜索 将其替换为

    2024年02月04日
    浏览(46)
  • iOS-bug Xcode 14.3版本运行项目报错File not found: /Applications/Xcode.app/Contents/Developer/...

    Xcode14.3 File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeD..... Xcode15: SDK does not contain \\\'libarclite\\\' at the path \\\'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/liba.... 1、下载arc目录解压后复制到指定目录路径: /Applications/Xcode.app/Contents/Developer/Toolchains

    2024年02月12日
    浏览(41)
  • 项目依赖安装node-sass@^4.14.1 run “node scripts/install.js“报错问题解决

    很久没运行的项目突然依赖下载报错,让我很头疼,之前都是运行正常的,于是就是开找解决办法。 依赖下载遇到的报错!!! scripts.install node-sass@^4.14.1 run “node scripts/install.js”: 大概意思就是这个地址已经不能下载了,需要你下载到本地并且做一个代理: 第一步: nod

    2024年02月20日
    浏览(68)
  • pod install报错

    报错内容/Users/xxx/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface/error_report.rb:34:in `force_encoding\\\': can\\\'t modify frozen String ( FrozenError ) ...... from /Users/xxx/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/bin/pod:55:in `top (required)\\\' from /usr/local/bin/pod:23:in `load\\\' from /usr/local/bin/pod:23:in `main\\\' 解决办法 将项目

    2024年02月12日
    浏览(50)
  • Pod Install 报错失败解决方法

    很久没跑ios项目,今天pod Install报这个错,记录一下  1,解决方案 检查一下 master 文件夹是否存在,如果存在 master 文件夹,执行 pod repo remove master。不存在则跳过这一条命令。 接下来继续执行以下命令  如果失败,尝试科学上网。 此时应该已经解决问题了。 2,切换远程分

    2024年02月15日
    浏览(47)
  • vue创建项目报错npm install --loglevel error --legacy-peer-deps

    vue创建项目报错npm install --loglevel error --legacy-peer-deps 如图所示: 话不多说,直接上解决方法: 1、找到这两个文件(每个人的位置不一样,像我是安装在D盘) 2、分别点进去, 右键—属性—安全 3、选Users,全部打勾✔,再点击确定 node_global 也是同样的操作,此时问题解决,

    2024年02月13日
    浏览(37)
  • Xcode 14.3.1build 报错整理

    1、Command PhaseScriptExecution failed with a nonzero exit code 2、In /Users/XX/XX/XX/fayuan-mediator-app-rn/ios/Pods/CocoaLibEvent/lib/libevent.a(buffer.o), building for iOS Simulator, but linking in object file built for iOS, file \\\'/Users/XX/XX/XX/fayuan-mediator-app-rn/ios/Pods/CocoaLibEvent/lib/libevent.a\\\' for architecture arm64 step1: step2: step3:完全

    2024年02月07日
    浏览(31)
  • Xcode 更新后 Version 14.3.1报错

    File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a Xode版本和pod版本不一致导致,改成一致就可以了 放在podfile文件里,最后一个pod,和最后一个end中间 打开路径: 一级目录 - PROJECT - 项目名 - Build Settings - Excluded Architectures 里面

    2024年02月16日
    浏览(42)
  • Xcode 14.3升级后archive报错处理

    sent 29 bytes received 20 bytes 98.00 bytes/sectotal size is 0 speedup is 0.00rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]Command PhaseScriptExecution failed with a nonzero exit code 用文本打开

    2024年02月12日
    浏览(33)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包