Jiri Bruchanov
03/05/2024, 7:34 PMenv: pod: No such file or directory
?Jiri Bruchanov
03/05/2024, 7:35 PMShowing All Messages
* What went wrong:
Execution failed for task ':shared:podInstallSyntheticIos'.
> 'env pod install' command failed with an exception:
env: pod: No such file or directory
Full command: env pod install
Possible reason: CocoaPods is not installed
Please check that CocoaPods v1.10 or above is installed.
To check CocoaPods version type 'pod --version' in the terminal
To install CocoaPods execute 'sudo gem install cocoapods'
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to <https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings> in the Gradle documentation.
Jiri Bruchanov
03/05/2024, 7:36 PMJeff Lockhart
03/05/2024, 8:08 PMpod
. I've found if you didn't install CocoaPods with sudo
and the system Ruby, then Xcode can't find it. That might be your issue.Jiri Bruchanov
03/05/2024, 8:19 PMJeff Lockhart
03/05/2024, 8:42 PMpod
executable. Are you sure the other project uses CocoaPods and doesn't integrate the Kotlin shared module without it? How did you install CocoaPods?Jiri Bruchanov
03/05/2024, 8:43 PMapply plugin: libs.plugins.jetbrains.cocoapods.get().pluginId
cocoapods {
...
pod('CocoaAsyncSocket') {
version = libs.versions.cocoa.async.socket.get()
}
}
Jeff Lockhart
03/05/2024, 8:44 PMJiri Bruchanov
03/05/2024, 8:44 PMJiri Bruchanov
03/05/2024, 8:45 PMJeff Lockhart
03/05/2024, 8:45 PMJiri Bruchanov
03/05/2024, 8:46 PMpod
Jiri Bruchanov
03/05/2024, 8:46 PMshared
, it own project moduleJeff Lockhart
03/05/2024, 8:47 PMsudo
?Jiri Bruchanov
03/05/2024, 8:47 PMsudo gem install cocoapods
Jeff Lockhart
03/05/2024, 8:47 PMJiri Bruchanov
03/05/2024, 8:53 PMJeff Lockhart
03/05/2024, 8:56 PMwhere pod
?Jiri Bruchanov
03/05/2024, 8:57 PM/Users/scurab/.rvm/rubies/ruby-3.1.2/bin/pod
Jiri Bruchanov
03/05/2024, 8:57 PMwhere pod
from the xcode build script
it fails, that where
is unknownJiri Bruchanov
03/05/2024, 8:58 PMJiri Bruchanov
03/05/2024, 8:59 PMJeff Lockhart
03/05/2024, 9:00 PMJeff Lockhart
03/05/2024, 9:00 PMwhere pod
, that is a local installed gem, which Xcode won't see on its modified PATH.Jeff Lockhart
03/05/2024, 9:01 PMJeff Lockhart
03/05/2024, 9:02 PMpod
in:
/usr/local/opt/ruby/bin/pod
/usr/local/bin/pod
So Xcode can see one or both of those paths. You need to be sure Ruby is installing to those locations.Jiri Bruchanov
03/05/2024, 9:04 PMsudo gem install -n /usr/local/bin cocoapods
helps, at least to next step which is failing 🙂Jiri Bruchanov
03/05/2024, 9:04 PM/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
from /usr/local/bin/pod:25:in `<main>'
from /usr/local/bin/ruby_executable_hooks:22:in `eval'
from /usr/local/bin/ruby_executable_hooks:22:in `<main>'
Jiri Bruchanov
03/05/2024, 9:05 PMJeff Lockhart
03/05/2024, 9:06 PMJeff Lockhart
03/05/2024, 9:07 PMJiri Bruchanov
03/05/2024, 9:07 PMJiri Bruchanov
03/05/2024, 9:30 PMJeff Lockhart
03/05/2024, 9:43 PMJiri Bruchanov
03/05/2024, 9:44 PMJiri Bruchanov
03/05/2024, 9:44 PMJeff Lockhart
03/05/2024, 9:45 PMsudo gem install cocoapods
, which still used the 3.2.2 version, but installed it to the general path that Xcode can see. I'm not sure why it doesn't do that in your case.Jiri Bruchanov
03/05/2024, 9:46 PMruby -v
is 3.2.2 ?Jiri Bruchanov
03/05/2024, 9:55 PMJiri Bruchanov
03/05/2024, 9:56 PM