Amritansh
12/07/2020, 7:49 PMExecuting of 'pod gen --platforms=ios --gen-directory=/Users/atripathi/<Project Root>/shared/build/cocoapods/synthetic/iosArm64 dogtag.podspec' failed with code 1 and message:
[!] Unknown command: `gen`
Did you mean: env?
cocoapods {
frameworkName = "shared"
pod("Connectivity")
}
I should also specify here that the first step mentioned here https://kotlinlang.org/docs/reference/native/cocoapods.html#install-the-cocoapods-dependency-manager-and-plugin is failing for me when I run the command so I used`brew install cocoapods`
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.3.0/gems/ffi-1.13.1/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20201207-63679-1jx757c.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/ffi-1.13.1 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-18/2.3.0/ffi-1.13.1/gem_make.out
my project is working fine on iOS when I remove pod() dependency. I am kind of confused here where things are going wrongAmritansh
12/08/2020, 12:43 PMArtyom Degtyarev [JB]
12/08/2020, 1:22 PMios()
target shortcut was used. See this discussion: https://youtrack.jetbrains.com/issue/KT-42319