Warning: CocoaPods is installed but broken - ruby

How can I resolve the message Warning: CocoaPods is installed but broken. Skipping Pod install. You appear to have cocoa pods installed but its not working.?
The issue:
It works fine if I create a new project and run it on IOS but from the previous projects it doesn't work on IOS.
If I open the runner file from Xcode it launches but doesn't launch from android studio.
Therefore, when do pod install in the file it gives me this error:
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
require': dlopen(/Library/Ruby/Gems/2.6.0/gems/date-3.2.2/lib/date_core.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/date-3.2.2/lib/date_core.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) - /Library/Ruby/Gems/2.6.0/gems/date-3.2.2/lib/date_core.bundle (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'
So can you explain how can I resolve this error?

From: https://github.com/flutter/flutter/issues/54962#issuecomment-635443559
Resolved: Turns out it wasn't an issue with cocoapods per se. I did
three things:
sudo gem update
I fired up Xcode which I had forgotten I had updated
and it required additional components to be installed.
I restarted visual studio code
After that everything worked just fine.

Related

Unity Xcode Build fail- Unityframework Error: Undefined symbol

My unity project with firebase integrated got errors while archiving the Xcode project. I have searched for some issues that may be the same as mine, but with no luck. I have tried to install cocoa pods and success to build the Xcode project with no errors. When I archived the Xcode project, it shows so many Undefined symbols like the picture below
Xcode Version: 14.1.
Firebase SDK Version: 10.0.1.
Unity Version: 2021.3.7f1.
It turns out that the MLKit hasn't supported Firebase 10 yet, so something went wrong. Not sure why my unity didn't show errors. I manually install pod by terminal and got errors. Then I found the same issue as mine here.
https://github.com/firebase/firebase-ios-sdk/issues/10359
The quick answer is to add a version specifier to the Podfile
pod 'FirebaseAuth', '>= 9.6.0'
enter image description here
I have changed the pod file, but no results.

Flutter: network_info_plus broken on m1 max

Already posted a bug at the publicly held package on github, but here's what's going on.
Create a brand new flutter application on an M1 Max Mac.
Add the network_info_plus dependency in your pubspec.yaml.
Open up the iOS simulator for iPhone 13 Pro.
Run the application in Android studio.
Observe the error:
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle (LoadError)
Pubspec.yaml relevant packages:
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.4
shared_preferences: ^2.0.13
sembast: ^3.2.0
path_provider: ^2.0.9
network_info_plus: ^2.1.3
Package reference link:
https://pub.dev/packages/network_info_plus
This turned out to be an environment issue. I was messing around with ruby on my mac and I think that might have killed my builds to iOS. What ended up fixing it was running gem install cocoapods and my builds magically started working.
I also deleted my pubspec.lock as well and redownloaded my assets. I ran flutter clean. Between the above and wiping my pubspec.lock and redownloading my packages, one of those seemed to fix it.

Rubymine debugger is failing on Macbook with M1 chip

I recently switched to a Macbook with the M1 chip, but now when trying to run my project in debugger mode on Rubymine 2021.3.3 I get the following error:
/Users/xxx/.rbenv/versions/2.7.4/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in
`require': dlopen(/Users/xxx/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/debase-2.3.2/lib/debase_internals.bundle, 0x0009): tried:
'/Users/xxx/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/debase-2.3.2/lib/debase_internals.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')),
'/usr/local/lib/debase_internals.bundle' (no such file),
'/usr/lib/debase_internals.bundle' (no such file)
- /Users/xxx/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/debase-2.3.2/lib/debase_internals.bundle (LoadError)
Here is how I resolved this issue:
Uninstall Rubymine
Install the Appple Silicon version of Rubymine (I used the JetBrains Tool for this)
In the terminal run this command: 'gem uninstall debase' and selected to uninstall all versions.
Open Rubymine and your project
Click the debug button and select "yes" when the popup asks if you want to install missing debug gems
Next run 'bundle install' from the terminal (I ran this in Rubymine terminal). It installed debase 0.2.5.beta2
I am now up and running. Best of luck!
Fissh

No solution on the internet worked for Module 'google_maps_flutter' not found

I am trying to archive my flutter app to publish it to App Store Connect. Then I got this problem and I tried every single solution on the internet but nothing seem to work so I need help.
Here is the problem:
This will install all dependencies for iOS.
cd ios
pod install
You must see an output similar to this:
Analyzing dependencies
Downloading dependencies
Installing FMDB (2.7.5)
Installing Flutter (1.0.0)
Installing GoogleMaps (4.2.0)
If Xcode is opened when running pod install, you'll be prompted to either Keep Xcode Version or to Read From Disk.
Choose: Read From Disk.
Have you fulfilled all the requirements related with the app-delegate.. in the IOS section?
Because the problem seems to be connecting google maps flutter package with the IOS.
I solved the issue by double clicking and running Runner.xcworkspace instead of Runner.xcodeproj

Hockey Cocoa pod integration error - Resource not found

Yesterday my Xcode projects started failing with the following message:
error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script.
where "$RESOURCE_PATH" pointed to the hockey app pod.
I've tried:
pod install
completely removing cocoa pods integration and
re-integrating it with my projects
uninstalled cocoa pods from my
system and reinstalled
Nothing works. Has anyone had this issue or have any suggestions on how to resolve it?
Edit: This issue is now fixed in the latest CocoaPods version 1.0.0beta.6.
This is an issue with the latest CocoaPods prerelease version 1.0.0beta.5. It's being tracked here and a Pull Request with a fix has already been opened.
In the meantime, you can switch back to using the current stable version of CocoaPods, 0.39.0 or use the Podspec HockeySDK-Source instead.

Resources