https://kotlinlang.org logo
Title
v

vips

04/27/2023, 5:40 PM
do i need xcode before opening the compose-ios template project? i have android studio, java,cocoapods installed and when i am opening project and syncing it getting following error
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
`/opt/homebrew/Cellar/ruby/3.2.2/lib/ruby/3.2.0/unicode_normalize/normalize.rb:141:in
normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/config.rb:166:in
unicode_normalize'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/config.rb:166:in
installation_root'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/config.rb:226:in
podfile_path'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/user_interface/error_report.rb:105:in
markdown_podfile'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/user_interface/error_report.rb:30:in
report'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command.rb:66:in
report_error'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/claide-1.1.0/lib/claide/command.rb:396:in
handle_exception'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/claide-1.1.0/lib/claide/command.rb:337:in
rescue in run'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/claide-1.1.0/lib/claide/command.rb:324:in
run'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command.rb:52:in
run'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/bin/pod:55:in
<top (required)>'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod:25:in
load'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod:25:in
<main>'
`/opt/homebrew/Cellar/ruby/3.2.2/lib/ruby/3.2.0/unicode_normalize/normalize.rb:141:in
normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/config.rb:166:in
unicode_normalize'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/config.rb:166:in
installation_root'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/config.rb:226:in
podfile_path'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/config.rb:205:in
podfile'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command.rb:160:in
verify_podfile_exists!'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command/install.rb:46:in
run'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in
run'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command.rb:52:in
run'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/bin/pod:55:in
<top (required)>'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod:25:in
load'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod:25:in
<main>'
Please, check that podfile contains following lines in header:
`source 'https://cdn.cocoapods.org`’
a

Alejandro Rios

04/27/2023, 5:44 PM
Can you please share that really long error message as a thread, this to make easier to scroll between messages and please delete it from your main question
Btw, did you run KDoctor first to see if you are missing something??
v

vips

04/27/2023, 5:46 PM
i am getting this after running kdoctor % kdoctor Environment diagnose (to see all details, use -v option): [✓] Operation System [✓] Java [✓] Android Studio [✖️] Xcode ✖️ No Xcode installation found Get Xcode from https://developer.apple.com/xcode/ [✖️] Cocoapods ✖️ System ruby is currently used CocoaPods is not compatible with system ruby installation on Apple M1 computers. Please install ruby via Homebrew, rvm, rbenv or other tool and make it default Detailed information: https://stackoverflow.com/questions/64901180/how-to-run-cocoapods-on-apple-silicon-m1/66556339#66556339 Conclusion: ✖️ KDoctor has diagnosed one or more problems while checking your environment. Please check the output for problem description and possible solutions.
but cocoapods is installedm i can see pod --version
Screenshot 2023-04-27 at 11.17.44 PM.png
a

Alejandro Rios

04/27/2023, 5:49 PM
According to that message from KDoctor you need XCode an fix whatever the issue you have with cocoapods in order to run the iOS app
v

vips

04/27/2023, 5:51 PM
okay, i’ll try, thanks 🤗
p

pollux-

04/27/2023, 9:57 PM
Installing xcode will solve the issue 🤞
v

vips

04/28/2023, 3:25 AM
i completed xcode setup and also launched demo app, still getting this
ok after setting command line in xcode, now getting only cocoapods error
vipul@Vipuls-MBP-2 ~ % kdoctor Environment diagnose (to see all details, use -v option): [✓] Operation System [✓] Java [✓] Android Studio [✓] Xcode [✖️] Cocoapods ✖️ System ruby is currently used CocoaPods is not compatible with system ruby installation on Apple M1 computers. Please install ruby via Homebrew, rvm, rbenv or other tool and make it default Detailed information: https://stackoverflow.com/questions/64901180/how-to-run-cocoapods-on-apple-silicon-m1/66556339#66556339
a

Alejandro Rios

04/28/2023, 3:42 AM
@vips did you try the suggestion that KDoctor is showing you about cocoapods? I'm talking about the stack overflow link
v

vips

04/28/2023, 3:54 AM
yes now kdoctor giving all checks vipul@Vipuls-MBP-2 ~ % kdoctor Environment diagnose (to see all details, use -v option): [✓] Operation System [✓] Java [✓] Android Studio [✓] Xcode [✓] Cocoapods
bt in studio while syncing getting this
'pod install' command failed with code 1.
Full command: pod install
Error message:
[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
[0m
`/opt/homebrew/Cellar/ruby/3.2.2/lib/ruby/3.2.0/unicode_normalize/normalize.rb:141:in
normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
`from /opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.12.1/lib/cocoapods/config.rb:166:in
unicode_normalize'
`from /opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.12.1/lib/cocoapods/config.rb:166:in
installation_root'
`from /opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.12.1/lib/cocoapods/config.rb:226:in
podfile_path'
SOLVED now ❤️