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 · 18 comments · Fixed by #687

Comments

@jefhai
Copy link

@jefhai 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

This comment has been minimized.

Copy link
Contributor

@dnkoutso dnkoutso commented Jun 4, 2019

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

@jefhai

This comment has been minimized.

Copy link
Author

@jefhai 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

This comment has been minimized.

Copy link
Contributor

@dnkoutso dnkoutso commented Jun 4, 2019

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

Did you use SPM?

@jefhai

This comment has been minimized.

Copy link
Author

@jefhai 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?

Not sure what SPM is. So no I think?

@dnkoutso

This comment has been minimized.

Copy link
Contributor

@dnkoutso dnkoutso commented Jun 4, 2019

@dnkoutso

This comment has been minimized.

Copy link
Contributor

@dnkoutso dnkoutso commented Jun 5, 2019

Its taken care of here #687

@Coeur

This comment has been minimized.

Copy link
Contributor

@Coeur Coeur commented Jun 6, 2019

Not sure what SPM is.

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

@rajat1812

This comment has been minimized.

Copy link

@rajat1812 rajat1812 commented Oct 10, 2019

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

This comment has been minimized.

Copy link
Author

@jefhai jefhai commented Oct 10, 2019

@rajat1812 have you tried reinstalling that version of ruby?

@rajathk

This comment has been minimized.

Copy link

@rajathk rajathk commented Oct 10, 2019

Try this-
sudo gem install cocoapods

@rajat1812

This comment has been minimized.

Copy link

@rajat1812 rajat1812 commented Oct 10, 2019

@alvarezac1

This comment has been minimized.

Copy link

@alvarezac1 alvarezac1 commented Oct 15, 2019

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

This comment has been minimized.

Copy link
Author

@jefhai jefhai commented Oct 15, 2019

@alvarezac1

This comment has been minimized.

Copy link

@alvarezac1 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

This comment has been minimized.

Copy link
Author

@jefhai jefhai commented Oct 15, 2019

@alvarezac1

This comment has been minimized.

Copy link

@alvarezac1 alvarezac1 commented Oct 15, 2019

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

This comment has been minimized.

Copy link
Author

@jefhai jefhai commented Oct 15, 2019

@paulb777

This comment has been minimized.

Copy link
Member

@paulb777 paulb777 commented Oct 15, 2019

Try building to seed the Xcode module map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.