do i need xcode before opening the compose-ios tem...
# compose-ios
v
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.rb141in
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.rb166in
unicode_normalize'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/config.rb166in
installation_root'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/config.rb226in
podfile_path'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/user_interface/error_report.rb105in
markdown_podfile'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/user_interface/error_report.rb30in
report'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command.rb66in
report_error'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/claide-1.1.0/lib/claide/command.rb396in
handle_exception'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/claide-1.1.0/lib/claide/command.rb337in
rescue in run'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/claide-1.1.0/lib/claide/command.rb324in
run'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command.rb52in
run'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/bin/pod55in
<top (required)>'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod25in
load'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod25in
<main>'
`/opt/homebrew/Cellar/ruby/3.2.2/lib/ruby/3.2.0/unicode_normalize/normalize.rb141in
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.rb166in
unicode_normalize'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/config.rb166in
installation_root'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/config.rb226in
podfile_path'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/config.rb205in
podfile'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command.rb160in
verify_podfile_exists!'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command/install.rb46in
run'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/claide-1.1.0/lib/claide/command.rb334in
run'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command.rb52in
run'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/bin/pod55in
<top (required)>'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod25in
load'
`from /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod25in
<main>'
Please, check that podfile contains following lines in header:
`source 'https://cdn.cocoapods.org`’
🧡 2
a
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
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
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
okay, i’ll try, thanks πŸ€—
p
Installing xcode will solve the issue 🀞
v
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
@vips did you try the suggestion that KDoctor is showing you about cocoapods? I'm talking about the stack overflow link
v
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.rb141in
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.rb166in
unicode_normalize'
`from /opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.12.1/lib/cocoapods/config.rb166in
installation_root'
`from /opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.12.1/lib/cocoapods/config.rb226in
podfile_path'
SOLVED now ❀️