-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pod init after update it to XCODE 14 #11546
Comments
|
https://t.csdn.cn/VqjyA 可以看看这个解决方案 |
|
Thank to thanhnam1042: "brew uninstall cocoapods" and reinstall cocoapods with "sudo gem install cocoapods" |
That worked for me |
That worked for me |
this solved my problem |
That works! change Project Format from Xcode 14.0-compatible to Xcode 13.0-compatible |
|
try it out this: |
org link:https://www.albertgao.xyz/2021/05/15/how-to-solve-xcodeproj-unknown-object-version/ |
use Rosetta open console |
Updating
Manually editing Command
Stack
Plugins
Podfiletarget 'err' do
pod 'AWSS3'
end Error
|
That worked for me |
Work for me at this case, thank you |
My issue was solved by reinstalling homebrew cocoapods and forcing it to create new symlinks. Simply uninstalling & reinstalling failed so I had to do a
At this point homebrew failed to install the cocoapods symlinks related to
In my scenario the root cause was homebrew not upgrading the xcodeproj dependency correctly. You can see in my previous comment that the homebrew cocoapods 1.11.3 was still using xcodeproj 1.21.0 I routinely upgrade cocoapods using |
Worked like a charm, thanks dougboberg. |
i had followed this ,it works,thanks! |
brew uninstall cocoapods => Work for me, thank you |
brew uninstall cocoapods This work for me |
Which Solution 1 says it's right, if look in to the source code which cause the exception,you will find out it is a version problem. Solution by reinstall the cocoapods is right, however you should be aware of the cocoapods version you are using after updated. In my case, i ran the "sudo gem uninstall cocoapods" "sudo gem install cocoapods", but the pod i use is still old version. It may cause by the env problem.(You can use "which pod" to find out if pod is already updated) After i ran the command in the link below to delete cocoapods one by one, and reinstall, i finally succeed in update the pod. |
I combined 2 of the answers here and did this:
It worked after that. |
gem install --user-install cocoapods |
Cocoapods Version 1.11.2
Xcode 14.0
MacOS 12.6
I created a new Xcode project using storyboard, open terminal, & pod init then terminal had showed following error
]
Traceback (most recent call last):
9: from /Users/shahrukh/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in
<main>' 8: from /Users/shahrukh/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in
eval'7: from /Users/shahrukh/.rvm/gems/ruby-2.7.0/bin/pod:23:in
<main>' 6: from /Users/shahrukh/.rvm/gems/ruby-2.7.0/bin/pod:23:in
load'5: from /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.2/bin/pod:55:in
<top (required)>' 4: from /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in
run'3: from /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:333:in
run' 2: from /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.2/lib/cocoapods/command/init.rb:41:in
validate!'1: from /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project.rb:113:in
open' /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project.rb:228:in
initialize_from_file': [Xcodeproj] Unknown object version (56). (RuntimeError)11: from /Users/shahrukh/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in
<main>' 10: from /Users/shahrukh/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in
eval'9: from /Users/shahrukh/.rvm/gems/ruby-2.7.0/bin/pod:23:in
<main>' 8: from /Users/shahrukh/.rvm/gems/ruby-2.7.0/bin/pod:23:in
load'7: from /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.2/bin/pod:55:in
<top (required)>' 6: from /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in
run'5: from /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:324:in
run' 4: from /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:337:in
rescue in run'3: from /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:396:in
handle_exception' 2: from /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:66:in
report_error'1: from /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:34:in
report' /Users/shahrukh/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:34:in
force_encoding': can't modify frozen String: "[Xcodeproj] Unknown object version (56)." (FrozenError)The text was updated successfully, but these errors were encountered: