簡體   English   中英

unity build iOS framework add failed due to a CocoaPods 安裝失敗

[英]Unity build iOS framework addition failed due to a CocoaPods installation failure

我以前從來沒有遇到過這個問題。 我已經有半年沒有構建任何東西了,我之前以同樣的方式使用 firebase 並且構建在 unity 和 Xcode 中也運行良好。

現在我嘗試制作新的應用程序,如果我添加 Firebase(最新版本),那么我無法構建。 但我用了很長時間的firebase,去年它正常工作..

iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.

After the failure, "pod repo update" was executed and succeeded. "pod install" was then attempted again, and still failed. This may be due to a broken CocoaPods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.

pod install output:

Analyzing dependencies
[!] `FirebaseAnalytics` requires CocoaPods version `>= 1.10.0`, which is not satisfied by your current version, `1.8.4`.





pod repo update output:

Updating spec repo `cocoapods`
  $ /usr/bin/git -C /Users/mac/.cocoapods/repos/cocoapods fetch origin --progress
  $ /usr/bin/git -C /Users/mac/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
  master
  $ /usr/bin/git -C /Users/mac/.cocoapods/repos/cocoapods reset --hard origin/master
  HEAD is now at b1f7c79b7757 [Add] TensorFlowLiteSelectTfOps 0.0.1-nightly.20220607
Updating spec repo `trunk`

CocoaPods 1.11.3 is available.
To update use: `sudo gem install cocoapods`

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.11.3



  remote: Enumerating objects: 1694, done.        
  remote: Counting objects:   0% (1/1694)        
  remote: Counting objects:   1% (17/1694)        
  remote: Counting objects:   2% (34/1694)        
  remote: Counting objects:   3% (51/1694)        
  remote: Counting objects:   4% (68/1694)        
  remote: Counting objects:   5% (85/1694)        
  remote: Counting objects:   6% (102/1694)        
  remote: Counting objects:   7% (119/1694)        
  remote: Counting objects:   8% (136/1694)        
  remote: Counting objects:   9% (153/1694)        
  remote: Counting objects:  10% (170/1694)        
  remote: Counting objects:  11% (187/1694)        
  remote: Counting objects:  12% (204/1694)        
  remote: Counting objects:  13% (221/1694)        
  remote: Counting objects:  14% (238/1694)        
  remote: Counting objects:  15% (255/1694)        
  remote: Counting objects:  16% (272/1694)        
  remote: Counting objects:  17% (288/1694)        
  remote: Counting objects:  18% (305/1694)        
  remote: Counting objects:  19% (322/1694)        
  remote: Counting objects:  20% (339/1694)        
  remote: Counting objects:  21% (356/1694)        
  remote: Counting objects:  22% (373/1694)        
  remote: Counting objects:  23% (390/1694)        
  remote: Counting objects:  24% (407/1694)        
  remote: Counting objects:  25% (424/1694)        
  remote: Counting objects:  26% (441/1694)        
  remote: Counting objects:  27% (458/1694)        
  remote: Counting objects:  28% (475/1694)        
  remote: Counting objects:  29% (492/1694)        
  remote: Counting objects:  30% (509/1694)        
  remote: Counting objects:  31% (526/1694)        
  remote: Counting objects:  32% (543/1694)        
  remote: Counting objects:  33% (560/1694)        
  remote: Counting objects:  34% (576/1694)        
  remote: Counting objects:  35% (593/1694)        
  remote: Counting objects:  36% (610/1694)        
  remote: Counting objects:  37% (627/1694)        
  remote: Counting objects:  38% (644/1694)        
  remote: Counting objects:  39% (661/1694)        
  remote: Counting objects:  40% (678/1694)        
  remote: Counting objects:  41% (695/1694)        
  remote: Counting objects:  42% (712/1694)        
  remote: Counting objects:  43% (729/1694)        
  remote: Counting objects:  44% (746/1694)        
  remote: Counting objects:  45% (763/1694)        
  remote: Counting objects:  46% (780/1694)        
  remote: Counting objects:  47% (797/1694)        
  remote: Counting objects:  48% (814/1694)        
  remote: Counting objects:  49% (831/1694)        
  remote: Counting objects:  50% (847/1694)        
  remote: Counting objects:  51% (864/1694)        
  remote: Counting objects:  52% (881/1694)        
  remote: Counting objects:  53% (898/1694)        
  remote: Counting objects:  54% (915/1694)        
  remote: Counting objects:  55% (932/1694)        
  remote: Counting objects:  56% (949/1694)        
  remote: Counting objects:  57% (966/1694)        
  remote: Counting objects:  58% (983/1694)        
  remote: Counting objects:  59% (1000/1694)        
  remote: Counting objects:  60% (1017/1694)        
  remote: Counting objects:  61% (1034/1694)        
  remote: Counting objects:  62% (1051/1694)        
  remote: Counting objects:  63% (1068/1694)        
  remote: Counting objects:  64% (1085/1694)        
  remote: Counting objects:  65% (1102/1694)        
  remote: Counting objects:  66% (1119/1694)        
  remote: Counting objects:  67% (1135/1694)        
  remote: Counting objects:  68% (1152/1694)        
  remote: Counting objects:  69% (1169/1694)        
  remote: Counting objects:  70% (1186/1694)        
  remote: Counting objects:  71% (1203/1694)        
  remote: Counting objects:  72% (1220/1694)        
  remote: Counting objects:  73% (1237/1694)        
  remote: Counting objects:  74% (1254/1694)        
  remote: Counting objects:  75% (1271/1694)        
  remote: Counting objects:  76% (1288/1694)        
  remote: Counting objects:  77% (1305/1694)        
  remote: Counting objects:  78% (1322/1694)        
  remote: Counting objects:  79% (1339/1694)        
  remote: Counting objects:  80% (1356/1694)        
  remote: Counting objects:  81% (1373/1694)        
  remote: Counting objects:  82% (1390/1694)        
  remote: Counting objects:  83% (1407/1694)        
  remote: Counting objects:  84% (1423/1694)        
  remote: Counting objects:  85% (1440/1694)        
  remote: Counting objects:  86% (1457/1694)        
  remote: Counting objects:  87% (1474/1694)        
  remote: Counting objects:  88% (1491/1694)        
  remote: Counting objects:  89% (1508/1694)        
  remote: Counting objects:  90% (1525/1694)        
  remote: Counting objects:  91% (1542/1694)        
  remote: Counting objects:  92% (1559/1694)        
  remote: Counting objects:  93% (1576/1694)        
  remote: Counting objects:  94% (1593/1694)        
  remote: Counting objects:  95% (1610/1694)        
  remote: Counting objects:  96% (1627/1694)        
  remote: Counting objects:  97% (1644/1694)        
  remote: Counting objects:  98% (1661/1694)        
  remote: Counting objects:  99% (1678/1694)        
  remote: Counting objects: 100% (1694/1694)        
  remote: Counting objects: 100% (1694/1694), done.        
  remote: Compressing objects:   0% (1/944)        
  remote: Compressing objects:   1% (10/944)        
  remote: Compressing objects:   2% (19/944)        
  remote: Compressing objects:   3% (29/944)        
  remote: Compressing objects:   4% (38/944)        
  remote: Compressing objects:   5% (48/944)        
  remote: Compressing objects:   6% (57/944)        
  remote: Compressing objects:   7% (67/944)        
  remote: Compressing objects:   8% (76/944)        
  remote: Compressing objects:   9% (85/944)        
  remote: Compressing objects:  10% (95/944)        
  remote: Compressing objects:  11% (104/944)        
  remote: Compressing objects:  12% (114/944)        
  remote: Compressing objects:  13% (123/944)        
  remote: Compressing objects:  14% (133/944)        
  remote: Compressing objects:  15% (142/944)        
  remote: Compressing objects:  16% (152/944)        
  remote: Compressing objects:  17% (161/944)        
  remote: Compressing objects:  18% (170/944)        
  remote: Compressing objects:  19% (180/944)        
  remote: Compressing objects:  20% (189/944)        
  remote: Compressing objects:  21% (199/944)        
  remote: Compressing objects:  22% (208/944)        
  remote: Compressing objects:  23% (218/944)        
  remote: Compressing objects:  24% (227/944)        
  remote: Compressing objects:  25% (236/944)        
  remote: Compressing objects:  26% (246/944)        
  remote: Compressing objects:  27% (255/944)        
  remote: Compressing objects:  28% (265/944)        
  remote: Compressing objects:  29% (274/944)        
  remote: Compressing objects:  30% (284/944)        
  remote: Compressing objects:  31% (293/944)        
  remote: Compressing objects:  32% (303/944)        
  remote: Compressing objects:  33% (312/944)        
  remote: Compressing objects:  34% (321/944)        
  remote: Compressing objects:  35% (331/944)        
  remote: Compressing objects:  36% (340/944)        
  remote: Compressing objects:  37% (350/944)        
  remote: Compressing objects:  38% (359/944)        
  remote: Compressing objects:  39% (369/944)        
  remote: Compressing objects:  40% (378/944)        
  remote: Compressing objects:  41% (388/944)        
  remote: Compressing objects:  42% (397/944)        
  remote: Compressing objects:  43% (406/944)        
  remote: Compressing objects:  44% (416/944)        
  remote: Compressing objects:  45% (425/944)        
  remote: Compressing objects:  46% (435/944)        
  remote: Compressing objects:  47% (444/944)        
  remote: Compressing objects:  48% (454/944)        
  remote: Compressing objects:  49% (463/944)        
  remote: Compressing objects:  50% (472/944)        
  remote: Compressing objects:  51% (482/944)        
  remote: Compressing objects:  52% (491/944)        
  remote: Compressing objects:  53% (501/944)        
  remote: Compressing objects:  54% (510/944)        
  remote: Compressing objects:  55% (520/944)        
  remote: Compressing objects:  56% (529/944)        
  remote: Compressing objects:  57% (539/944)        
  remote: Compressing objects:  58% (548/944)        
  remote: Compressing objects:  59% (557/944)        
  remote: Compressing objects:  60% (567/944)        
  remote: Compressing objects:  61% (576/944)        
  remote: Compressing objects:  62% (586/944)        
  remote: Compressing objects:  63% (595/944)        
  remote: Compressing objects:  64% (605/944)        
  remote: Compressing objects:  65% (614/944)        
  remote: Compressing objects:  66% (624/944)        
  remote: Compressing objects:  67% (633/944)        
  remote: Compressing objects:  68% (642/944)        
  remote: Compressing objects:  69% (652/944)        
  remote: Compressing objects:  70% (661/944)        
  remote: Compressing objects:  71% (671/944)        
  remote: Compressing objects:  72% (680/944)        
  remote: Compressing objects:  73% (690/944)        
  remote: Compressing objects:  74% (699/944)        
  remote: Compressing objects:  75% (708/944)        
  remote: Compressing objects:  76% (718/944)        
  remote: Compressing objects:  77% (727/944)        
  remote: Compressing objects:  78% (737/944)        
  remote: Compressing objects:  79% (746/944)        
  remote: Compressing objects:  80% (756/944)        
  remote: Compressing objects:  81% (765/944)        
  remote: Compressing objects:  82% (775/944)        
  remote: Compressing objects:  83% (784/944)        
  remote: Compressing objects:  84% (793/944)        
  remote: Compressing objects:  85% (803/944)        
  remote: Compressing objects:  86% (812/944)        
  remote: Compressing objects:  87% (822/944)        
  remote: Compressing objects:  88% (831/944)        
  remote: Compressing objects:  89% (841/944)        
  remote: Compressing objects:  90% (850/944)        
  remote: Compressing objects:  91% (860/944)        
  remote: Compressing objects:  92% (869/944)        
  remote: Compressing objects:  93% (878/944)        
  remote: Compressing objects:  94% (888/944)        
  remote: Compressing objects:  95% (897/944)        
  remote: Compressing objects:  96% (907/944)        
  remote: Compressing objects:  97% (916/944)        
  remote: Compressing objects:  98% (926/944)        
  remote: Compressing objects:  99% (935/944)        
  remote: Compressing objects: 100% (944/944)        
  remote: Compressing objects: 100% (944/944), done.        
  Receiving objects:   0% (1/1694)
  Receiving objects:   1% (17/1694)
  Receiving objects:   2% (34/1694)
  Receiving objects:   3% (51/1694)
  Receiving objects:   4% (68/1694)
  Receiving objects:   5% (85/1694)
  Receiving objects:   6% (102/1694)
  Receiving objects:   7% (119/1694)
  Receiving objects:   8% (136/1694)
  Receiving objects:   9% (153/1694)
  Receiving objects:  10% (170/1694)
  Receiving objects:  11% (187/1694)
  Receiving objects:  12% (204/1694)
  Receiving objects:  13% (221/1694)
  Receiving objects:  14% (238/1694)
  Receiving objects:  15% (255/1694)
  Receiving objects:  16% (272/1694)
  Receiving objects:  17% (288/1694)
  Receiving objects:  18% (305/1694)
  Receiving objects:  19% (322/1694)
  Receiving objects:  20% (339/1694)
  Receiving objects:  21% (356/1694)
  Receiving objects:  22% (373/1694)
  Receiving objects:  23% (390/1694)
  Receiving objects:  24% (407/1694)
  Receiving objects:  25% (424/1694)
  Receiving objects:  26% (441/1694)
  Receiving objects:  27% (458/1694)
  Receiving objects:  28% (475/1694)
  Receiving objects:  29% (492/1694)
  Receiving objects:  30% (509/1694)
  Receiving objects:  31% (526/1694)
  Receiving objects:  32% (543/1694)
  Receiving objects:  33% (560/1694)
  Receiving objects:  34% (576/1694)
  Receiving objects:  35% (593/1694)
  Receiving objects:  36% (610/1694)
  Receiving objects:  37% (627/1694)
  Receiving objects:  38% (644/1694)
  Receiving objects:  39% (661/1694)
  Receiving objects:  40% (678/1694)
  Receiving objects:  41% (695/1694)
  Receiving objects:  42% (712/1694)
  Receiving objects:  43% (729/1694)
  Receiving objects:  44% (746/1694)
  Receiving objects:  45% (763/1694)
  Receiving objects:  46% (780/1694)
  Receiving objects:  47% (797/1694)
  Receiving objects:  48% (814/1694)
  Receiving objects:  49% (831/1694)
  Receiving objects:  50% (847/1694)
  Receiving objects:  51% (864/1694)
  Receiving objects:  52% (881/1694)
  Receiving objects:  53% (898/1694)
  Receiving objects:  54% (915/1694)
  Receiving objects:  55% (932/1694)
  Receiving objects:  56% (949/1694)
  Receiving objects:  57% (966/1694)
  Receiving objects:  58% (983/1694)
  Receiving objects:  59% (1000/1694)
  Receiving objects:  60% (1017/1694)
  Receiving objects:  61% (1034/1694)
  Receiving objects:  62% (1051/1694)
  Receiving objects:  63% (1068/1694)
  Receiving objects:  64% (1085/1694)
  Receiving objects:  65% (1102/1694)
  Receiving objects:  66% (1119/1694)
  Receiving objects:  67% (1135/1694)
  Receiving objects:  68% (1152/1694)
  Receiving objects:  69% (1169/1694)
  Receiving objects:  70% (1186/1694)
  Receiving objects:  71% (1203/1694)
  Receiving objects:  72% (1220/1694)
  Receiving objects:  73% (1237/1694)
  Receiving objects:  74% (1254/1694)
  Receiving objects:  75% (1271/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  76% (1288/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  77% (1305/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  78% (1322/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  79% (1339/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  80% (1356/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  81% (1373/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  82% (1390/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  83% (1407/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  84% (1423/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  85% (1440/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  86% (1457/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  87% (1474/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  88% (1491/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  89% (1508/1694), 324.01 KiB | 640.00 KiB/s
  remote: Total 1694 (delta 779), reused 1448 (delta 694), pack-reused 0        
  Receiving objects:  90% (1525/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  91% (1542/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  92% (1559/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  93% (1576/1694), 324.01 KiB | 640.00 KiB/s
  Receiving objects:  94% (1593/1694), 324.01 KiB | 640.00 KiB/s
  Rec<message truncated>

我從來沒有安裝 cocoa 吊艙,但它以前工作過。 好的,我嘗試在谷歌中搜索問題,我嘗試了 $ gem uninstall cocoapods $ gem install cocoapods

卸載好了,但是安裝報錯:

Successfully uninstalled cocoapods-1.8.4
Mac-MacBook-Pro:~ mac$ sudo gem install cocoapods
Building native extensions. This could take a while...
ERROR:  Error installing cocoapods:
    ERROR: Failed to build gem native extension.

    current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20220607-2280-91gmgf.rb extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/$(RUBY_BASE_NAME)
    --with-ffi_c-dir
    --without-ffi_c-dir
    --with-ffi_c-include
    --without-ffi_c-include=${ffi_c-dir}/include
    --with-ffi_c-lib
    --without-ffi_c-lib=${ffi_c-dir}/lib
    --enable-system-libffi
    --disable-system-libffi
    --with-libffi-config
    --without-libffi-config
    --with-pkg-config
    --without-pkg-config
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:467:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:585:in `block in try_compile'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:534:in `with_werror'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:585:in `try_compile'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1109:in `block in have_header'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:959:in `block in checking_for'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:361:in `block (2 levels) in postpone'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:331:in `open'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:361:in `block in postpone'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:331:in `open'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:357:in `postpone'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:958:in `checking_for'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1108:in `have_header'
    from extconf.rb:10:in `system_libffi_usable?'
    from extconf.rb:42:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-20/2.6.0/ffi-1.15.5/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-20/2.6.0/ffi-1.15.5/gem_make.out

好的,我嘗試在谷歌中找到解決方案。 我試試這個:brew cleanup -d -v

結果:-bash: brew: 找不到命令

所以.. 我不知道什么是 cocoa pods 什么是 brew 等等,我會刪除所有內容並重新安裝。 在我只安裝 unity 和 Xcode 之前,我將 firebase 添加到 unity 項目中,我以前從來沒有遇到過這個問題..

現在是什么問題? 解決方案是什么? 我想我不需要我正在做的事情,因為我以前不需要它。

我不明白為什么我必須安裝以前從未需要的 cocoa pods 和 brew 等。 (我想是用 Xcode 或 unity 自動安裝的,我不記得我曾經使用過終端..我只使用終端來實現 firebase 功能..)

謝謝,阿德里安

編輯:我試圖打開我的舊游戲(從來沒有出現過這個問題)。 我認為新版本 Firebase 可能有問題,而舊版本可能不錯。 但是當我打開時立即出現一條錯誤消息。可能是在我嘗試卸載 cocoa pods 時。 在此處輸入圖像描述

編輯 08 Jun 18:12:

我再次嘗試安裝 cocoa pods,成功安裝了 1.8.4。

我讀到這個:

根據某些方面,這可能對您有用,如果您不介意使用“SUDO”命令:

sudo gem install -n /usr/local/bin cocoapods -v 1.8.4

最新的 CocoaPods 1.10.0 將無法使用。

我在這里找到它:蘋果開發者論壇

好的,我有 1.8.4。

但是“[!] FirebaseAnalytics需要 CocoaPods 版本>= 1.10.0 ,您當前的版本1.8.4不滿足。”

所以我嘗試了很多我在谷歌中找到的解決方案。

  • 我安裝了自制軟件(為了安裝自制軟件,我在終端中安裝了 Xcode 開發人員工具,並嘗試了許多可能的解決方案,例如 sudo gem update、sudo brew update、gem install、sudo gem install cocoapods,所以一切......)

不工作。 我無法更新 cocoa pod。

我試過這個:gem install cocoapods -v 1.10.1(因為這是 firebase 的需要。)

沒有。 我卸載整個 Xcode 並重新安裝。 或許。 沒有。

所以。 一個問題。

我無法在 macOS Big Sur 11.6.6 中安裝 cocoapods 新版本? (這是我 2014 年中型 MacBook Pro 的最后一次更新)

有人有主意嗎? 我發誓,如果有人這樣做,我會為此付出代價,因為我放棄了。

謝謝....

我在 Unity 和 XCode 中掙扎了 3 天......我發現的唯一解決方案是將其降級到版本 8.15.0,只有當我嘗試使用版本 9+ 時才會發生此錯誤。 谷歌是否在存儲庫中搞砸了一些東西?

雖然我還沒有完成我的問題,也許你可以檢查一下這個

我只是按照它的步驟構建xcode項目后沒有錯誤

我只是不斷尋找其他解決方案

找不到“GoogleSignIn/GIDSignIn.h”文件

如果有人對此問題有建議或答案,請分享

祝你好運!

自從您上次成功運行構建后,您是否升級過 OSX? 這是由 big sur 安裝的默認 ruby 的 OSX 問題,而不是 Unity 或插件問題。 如果您嘗試在終端中運行命令,您將在 Unity 之外遇到相同的問題。

您的選擇是:

  1. 升級 OSX 並因此升級系統 ruby
  2. update ruby and follow this guide as a new version via rvm wont automatically override the system default https://gist.github.com/RedenticDev/2c71869492ba2740a3725216898c522a

相關: Failed to Install CocoaPods in Unity LTS 2017.4.40f1 and Appodeal on mac os x Mojave 10.14.5

我終於找到了解決方案,在我的例子中,當我安裝 firebase.analytics 的 unity package 時,我安裝了一個升級版本(在我的例子中是 10.0.1),但我必須安裝與對應的完全相同的版本到 firebase 包(在我的例子中是 9.5.0),所以,每個 firebase 插件都必須有確切的版本號。

所以我不得不基本上降級 firebase 分析 package 在此頁面https://developers.google.com/unity/archive#google_analytics_for_firebase的幫助下並找到相應的。

重要提示:在導入正確版本之前,您必須刪除項目中的先前版本,一個簡單的方法是雙擊您下載的新 unity package,並檢查哪些文件夾和存檔與您的項目沖突,以及刪除它們

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM