GenomeInfoDbData安装报错,如何解决?

GenomeInfoDbData安装报错,求解决!
用的是MAC,Rstudio版本2022.12.0+353 (2022.12.0+353)
一开始用
BiocManager::install("GenomeInfoDbData")安装,提示错误问题里面有个要求添加force =TRUE,接下来两个报警问题不知如何解决,求帮忙!



```r
 BiocManager::install("GenomeInfoDbData",force =TRUE)
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories",
package = "BiocManager")' for details.
Replacement repositories:
    CRAN: https://cran.rstudio.com/
Bioconductor version 3.16 (BiocManager 1.30.20), R 4.2.2 (2022-10-31)
Installing package(s) 'GenomeInfoDbData'
installing the source package ‘GenomeInfoDbData’

trying URL 'https://bioconductor.org/packages/3.16/data/annotation/src/contrib/GenomeInfoDbData_1.2.9.tar.gz'
Content type 'application/x-gzip' length 11725198 bytes (11.2 MB)
==================================================
downloaded 11.2 MB

* installing *source* package ‘GenomeInfoDbData’ ...
** using staged installation
** data
** inst
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (GenomeInfoDbData)

The downloaded source packages are in
    ‘/private/var/folders/sk/snf2_pfn6m18t8rjrlt2jzv80000gp/T/Rtmp0SYoHl/downloaded_packages’
Old packages: 'MASS', 'tibble'
Update all/some/none? [a/s/n]: 
a

  There are binary versions available but the source versions are later:
         binary   source needs_compilation
MASS   7.3-58.2 7.3-58.3              TRUE
tibble    3.1.8    3.2.0              TRUE

Do you want to install from sources the packages which need compilation? (Yes/no/cancel) Yes
installing the source packages ‘MASS’, ‘tibble’

trying URL 'https://cran.rstudio.com/src/contrib/MASS_7.3-58.3.tar.gz'
Content type 'application/x-gzip' length 516025 bytes (503 KB)
==================================================
downloaded 503 KB

trying URL 'https://cran.rstudio.com/src/contrib/tibble_3.2.0.tar.gz'
Content type 'application/x-gzip' length 565955 bytes (552 KB)
==================================================
downloaded 552 KB

* installing *source* package ‘MASS’ ...
** package ‘MASS’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘MASS’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/MASS’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/MASS’
* installing *source* package ‘tibble’ ...
** package ‘tibble’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘tibble’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/tibble’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/tibble’

The downloaded source packages are in
    ‘/private/var/folders/sk/snf2_pfn6m18t8rjrlt2jzv80000gp/T/Rtmp0SYoHl/downloaded_packages’
Warning messages:
1: In install.packages(update[instlib == l, "Package"], l, repos = repos,  :
  installation of package ‘MASS’ had non-zero exit status
2: In install.packages(update[instlib == l, "Package"], l, repos = repos,  :
  installation of package ‘tibble’ had non-zero exit status

```

mac系统确保本地xcode安装没问题,然后根据报错信息,下载这两个包

install.packages("MASS")
install.packages("tibble")