Skip to content
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

Can't get pod update to work on macOS Catalina #688

Closed
jefhai opened this issue Jun 4, 2019 · 19 comments · Fixed by #687
Closed

Can't get pod update to work on macOS Catalina #688

jefhai opened this issue Jun 4, 2019 · 19 comments · Fixed by #687

Comments

@jefhai
Copy link

jefhai commented Jun 4, 2019

Can't get pod update to work on macOS Catalina

JeffMacbookPro:Proj-iOS jefhai$ pod update

[!] Invalid `Podfile` file: [Xcodeproj] Unknown object version..

 #  from /Users/jefhai/Documents/git/Proj-iOS/Podfile:24
 #  -------------------------------------------
 #  
 >  project = Xcodeproj::Project.open "Proj.xcodeproj"
 #  project.targets.each do |t|
 #  -------------------------------------------

[!] [!] Xcodeproj doesn't know about the following attributes {"platformFilter"=>"ios"} for the 'PBXBuildFile' isa.
If this attribute was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new
@dnkoutso
Copy link
Contributor

dnkoutso commented Jun 4, 2019

Do you have the sample .xcodeproj you are using and this fails with?

@jefhai
Copy link
Author

jefhai commented Jun 4, 2019

Unfortunately I can't provide the project file I'm working with. But if I take my Xcode 10 project, run pod install with cocoapods 1.7.1 it runs successfully- then when I open Xcode 11 beta and run pod install with the IDE open I see that error.

@dnkoutso
Copy link
Contributor

dnkoutso commented Jun 4, 2019

What is the file or reference that includes {"platformFilter"=>"ios"} in your project.pbxproj?

Did you use SPM?

@jefhai
Copy link
Author

jefhai commented Jun 4, 2019

2F206422203BBD3B00B1D4EF /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7EB9A0FB17C3200300817692 /* OpenGLES.framework */; platformFilter = ios; };

I figure OpenGLES is no longer supported. Only reference I have for it in the project.pbxproj

But would cocoapods/Xcodeproj know that?

No SPM

@dnkoutso
Copy link
Contributor

dnkoutso commented Jun 4, 2019 via email

@dnkoutso
Copy link
Contributor

dnkoutso commented Jun 5, 2019

Its taken care of here #687

@Coeur
Copy link
Contributor

Coeur commented Jun 6, 2019

Not sure what SPM is.

Swift Packet Manager, especially regarding the new Xcode 11 integration in this context.

@rajat1812
Copy link

getting error o pod init or pod update.

Rajats-MacBook-Pro: bmr rajatbhalla$ pod init
-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory

@jefhai
Copy link
Author

jefhai commented Oct 10, 2019

@rajat1812 have you tried reinstalling that version of ruby?

@rajathk
Copy link

rajathk commented Oct 10, 2019

Try this-
sudo gem install cocoapods

@rajat1812
Copy link

rajat1812 commented Oct 10, 2019 via email

@alvarezac1
Copy link

Has anyone had issues with getting the error No such module ? I followed the steps above to install cocoapods with Catalina but still having issues importing the pod.

image

@jefhai
Copy link
Author

jefhai commented Oct 15, 2019 via email

@alvarezac1
Copy link

alvarezac1 commented Oct 15, 2019

@jefhai what version of cocoapods are you using? I'm using 1.8.3. Is there anything you added to your podfile specifically?

@jefhai
Copy link
Author

jefhai commented Oct 15, 2019 via email

@alvarezac1
Copy link

I'm hoping to compare the setups we both have. What version of cocoapods are you using? You can find out by typing pod --version in your Terminal

@jefhai
Copy link
Author

jefhai commented Oct 15, 2019 via email

@paulb777
Copy link
Member

Try building to seed the Xcode module map.

@pratik1994
Copy link

pratik1994 commented Aug 7, 2020

Please make sure u have XCode > Preferences > Locations > Command Line Tools > XCode 11.X.X and then run sudo gem install -n /usr/local/bin cocoapods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants