objc[77410]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1eec77130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x107f302c8). One of the two will be used. Which one is undefined.
objc[77410]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1eec77180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x107f30318). One of the two will be used. Which one is undefined.
objc[3984]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x21b087130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065782c8). One of the two will be used. Which one is undefined.
objc[3984]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x21b087180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106578318). One of the two will be used. Which one is undefined.
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
/opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/bin/pod update
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Error
Encoding::CompatibilityError - incompatible character encodings: UTF-8 and ASCII-8BIT
/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1564:in join' /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1564:in
join'
/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1224:in path' /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:500:in
block in copy_entry'
/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1513:in wrap_traverse' /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1516:in
block in wrap_traverse'
/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1515:in each' /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1515:in
wrap_traverse'
/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1516:in block in wrap_traverse' /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1515:in
each'
/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1515:in wrap_traverse' /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1516:in
block in wrap_traverse'
/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1515:in each' /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1515:in
wrap_traverse'
/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1516:in block in wrap_traverse' /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1515:in
each'
/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1515:in wrap_traverse' /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1516:in
block in wrap_traverse'
/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1515:in each' /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1515:in
wrap_traverse'
/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:497:in copy_entry' /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:471:in
block in cp_r'
/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1597:in block in fu_each_src_dest' /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1613:in
fu_each_src_dest0'
/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:1595:in fu_each_src_dest' /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/fileutils.rb:470:in
cp_r'
/opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader.rb:55:in block (2 levels) in download' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader/cache.rb:128:in
lock'
/opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader/cache.rb:84:in read_lock' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader.rb:53:in
block in download'
/opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:149:in message' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader.rb:52:in
download'
/opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer/pod_source_installer.rb:118:in download_source' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer/pod_source_installer.rb:69:in
install!'
/opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:563:in install_source_of_pod' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:514:in
block (2 levels) in install_pod_sources'
/opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:86:in titled_section' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:513:in
block in install_pod_sources'
/opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:496:in each' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:496:in
install_pod_sources'
/opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:255:in block in download_dependencies' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:in
section'
/opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:254:in download_dependencies' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:162:in
install!'
/opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/command/update.rb:63:in run' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/claide-1.0.3/lib/claide/command.rb:334:in
run'
/opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in run' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/bin/pod:55:in
<top (required)>'
/opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23:in load' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23: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: UTF-8 and ASCII-8BIT with pod install
https://github.com/CocoaPods/CocoaPods/issues/10516 [closed] [5 comments]
08 Jan 2022
- incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)
https://github.com/CocoaPods/CocoaPods/issues/2642 [closed] [28 comments]
05 Jun 2021
- Encoding::CompatibilityError - incompatible character encodings: ASCII-8BIT and UTF-8
https://github.com/CocoaPods/CocoaPods/issues/4582 [closed] [8 comments]
08 Jan 2020
and 13 more at:
https://github.com/cocoapods/cocoapods/search?q=incompatible%20character%20encodings%3A%20UTF-8%20and%20ASCII-8BIT&type=Issues&utf8=✓
解决方法:
工程目录的某一个文件夹名字不能有中文。改为英文,重新pod install。 问题解决!
从这个线索找了一圈,都没用,有说用sudo xcode-select -r
。 有说是要rm -rf ~/Library/Developer/Xcode/DerivedData/*
也检查了xcode.app 简介里面是不是打开了使用Rosetta打开。 都没啥用。
objc[77410]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1eec77130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x107f302c8). One of the two will be used. Which one is undefined.
objc[77410]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1eec77180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x107f30318). One of the two will be used. Which one is undefined.
还是回到报错上:
UTF-8+and+ASCII-8BIT
难道应该跟文件夹名字是中文有关系?改完之后果然发现好用了
[!] 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
网友评论