Nếu bạn cài đặt cocoapod sử dụng bia như tôi
- Cài đặt lại cocoapods
brew reinstall cocoapods
Nếu bạn thấy thông báo lỗi này sau khi bạn cài đặt lại cocoapods bởi brew reinstall
đi đến bước 2.
>
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/pod
Target /usr/local/bin/pod
already exists. You may want to remove it:
rm '/usr/local/bin/pod'
To force the link and overwrite all conflicting files:
brew link --overwrite cocoapods
To list all files that would be deleted:
brew link --overwrite --dry-run cocoapods
Possible conflicting files are:
/usr/local/bin/pod
/usr/local/bin/xcodeproj
- Để giải quyết mâu thuẫn file
brew link --overwrite cocoapods
> Linking /usr/local/Cellar/cocoapods/1.3.1... 2 symlinks created
Hy vọng nó giúp.
Nguồn
2018-01-19 07:07:15
https://cocoapods.org/app tải xuống ứng dụng cocoapods từ liên kết này, sau đó mở tệp podfile của bạn bằng ứng dụng và nhấp vào cài đặt rồi cập nhật và cuối cùng mở tệp không gian làm việc – MShah