Build to iOS get error, please help!

935 views
Skip to first unread message

Tony Kwok

unread,
Oct 18, 2021, 10:48:57 PM10/18/21
to CocoaPods

I use Unity 2018.3.0f2, macOS Catalina, Build to iOS get error, please help!


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:




    [33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.

    Consider adding the following to ~/.profile:


    export LANG=en_US.UTF-8

    [0m

/Users/tonykwok/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:166:in `unicode_normalize'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:166:in `installation_root'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:226:in `podfile_path'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:105:in `markdown_podfile'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:30:in `report'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:66:in `report_error'

from /Users/tonykwok/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:396:in `handle_exception'

from /Users/tonykwok/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:337:in `rescue in run'

from /Users/tonykwok/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:324:in `run'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'

from /usr/local/bin/pod:23:in `load'

from /usr/local/bin/pod:23:in `<main>'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/bin/ruby_executable_hooks:22:in `eval'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/bin/ruby_executable_hooks:22:in `<main>'

/Users/tonykwok/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:166:in `unicode_normalize'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:166:in `installation_root'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:226:in `podfile_path'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:205:in `podfile'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:160:in `verify_podfile_exists!'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/command/install.rb:46:in `run'

from /Users/tonykwok/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'

from /usr/local/bin/pod:23:in `load'

from /usr/local/bin/pod:23:in `<main>'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/bin/ruby_executable_hooks:22:in `eval'

from /Users/tonykwok/.rvm/gems/ruby-2.7.2/bin/ruby_executable_hooks:22:in `<main>'




pod repo update output:


Updating spec repo `master`

  $ /usr/bin/git -C /Users/tonykwok/.cocoapods/repos/master fetch origin --progress

  $ /usr/bin/git -C /Users/tonykwok/.cocoapods/repos/master rev-parse --abbrev-ref HEAD

  master

  $ /usr/bin/git -C /Users/tonykwok/.cocoapods/repos/master reset --hard origin/master

  HEAD is now at c7e949df999 [Add] KumulosSdkSwift 9.2.1



    [33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.

    Consider adding the following to ~/.profile:


    export LANG=en_US.UTF-8

    [0m

  remote: Enumerating objects: 41, done.        

  remote: Counting objects:   2% (1/41)        

  remote: Counting objects:   4% (2/41)        

  remote: Counting objects:   7% (3/41)        

  remote: Counting objects:   9% (4/41)        

  remote: Counting objects:  12% (5/41)        

  remote: Counting objects:  14% (6/41)        

  remote: Counting objects:  17% (7/41)        

  remote: Counting objects:  19% (8/41)        

  remote: Counting objects:  21% (9/41)        

  remote: Counting objects:  24% (10/41)        

  remote: Counting objects:  26% (11/41)        

  remote: Counting objects:  29% (12/41)        

  remote: Counting objects:  31% (13/41)        

  remote: Counting objects:  34% (14/41)        

  remote: Counting objects:  36% (15/41)        

  remote: Counting objects:  39% (16/41)        

  remote: Counting objects:  41% (17/41)        

  remote: Counting objects:  43% (18/41)        

  remote: Counting objects:  46% (19/41)        

  remote: Counting objects:  48% (20/41)        

  remote: Counting objects:  51% (21/41)        

  remote: Counting objects:  53% (22/41)        

  remote: Counting objects:  56% (23/41)        

  remote: Counting objects:  58% (24/41)        

  remote: Counting objects:  60% (25/41)        

  remote: Counting objects:  63% (26/41)        

  remote: Counting objects:  65% (27/41)        

  remote: Counting objects:  68% (28/41)        

  remote: Counting objects:  70% (29/41)        

  remote: Counting objects:  73% (30/41)        

  remote: Counting objects:  75% (31/41)        

  remote: Counting objects:  78% (32/41)        

  remote: Counting objects:  80% (33/41)        

  remote: Counting objects:  82% (34/41)        

  remote: Counting objects:  85% (35/41)        

  remote: Counting objects:  87% (36/41)        

  remote: Counting objects:  90% (37/41)        

  remote: Counting objects:  92% (38/41)        

  remote: Counting objects:  95% (39/41)        

  remote: Counting objects:  97% (40/41)        

  remote: Counting objects: 100% (41/41)        

  remote: Counting objects: 100% (41/41), done.        

  remote: Compressing objects:   3% (1/27)        

  remote: Compressing objects:   7% (2/27)        

  remote: Compressing objects:  11% (3/27)        

  remote: Compressing objects:  14% (4/27)        

  remote: Compressing objects:  18% (5/27)        

  remote: Compressing objects:  22% (6/27)        

  remote: Compressing objects:  25% (7/27)        

  remote: Compressing objects:  29% (8/27)        

  remote: Compressing objects:  33% (9/27)        

  remote: Compressing objects:  37% (10/27)        

  remote: Compressing objects:  40% (11/27)        

  remote: Compressing objects:  44% (12/27)        

  remote: Compressing objects:  48% (13/27)        

  remote: Compressing objects:  51% (14/27)        

  remote: Compressing objects:  55% (15/27)        

  remote: Compressing objects:  59% (16/27)        

  remote: Compressing objects:  62% (17/27)        

  remote: Compressing objects:  66% (18/27)        

  remote: Compressing objects:  70% (19/27)        

  remote: Compressing objects:  74% (20/27)        

  remote: Compressing objects:  77% (21/27)        

  remote: Compressing objects:  81% (22/27)        

  remote: Compressing objects:  85% (23/27)        

  remote: Compressing objects:  88% (24/27)        

  remote: Compressing objects:  92% (25/27)        

  remote: Compressing objects:  96% (26/27)        

  remote: Compressing objects: 100% (27/27)        

  remote: Compressing objects: 100% (27/27), done.        

  remote: Total 27 (delta 18), reused 0 (delta 0), pack-reused 0        

  From https://github.com/CocoaPods/Specs

     97db434573e..c7e949df999  master     -> origin/master


UnityEngine.Debug:LogError(Object)

Google.Logger:Log(String, LogLevel) (at /Users/chkuang/Workspace/Git/unity-jar-resolver/source/VersionHandlerImpl/src/Logger.cs:136)

Google.IOSResolver:Log(String, Boolean, LogLevel) (at /Users/chkuang/Workspace/Git/unity-jar-resolver/source/IOSResolver/src/IOSResolver.cs:1013)

Google.IOSResolver:OnPostProcessInstallPods(BuildTarget, String) (at /Users/chkuang/Workspace/Git/unity-jar-resolver/source/IOSResolver/src/IOSResolver.cs:2338)

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)


Reply all
Reply to author
Forward
0 new messages