Search Unity

Question iOS framework addition failed due to a CocoaPods installation failure.

Discussion in 'iOS and tvOS' started by jbassking, Feb 15, 2024.

  1. jbassking

    jbassking

    Joined:
    Feb 27, 2014
    Posts:
    118
    I'm not sure what is going on with out server but all of a sudden we started getting build issues that FirebaseInstallation requires Cocoapods >= 1.12.0. After updating to 1.15.2, we can no longer get a build. We always end up with the same issue.
    I've been fighting with this one for a few days.

    I checked the locale and the LANG looks correct so I don't think that warning has anything to do with the issue.
    LANG="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_CTYPE="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_ALL="en_US.UTF-8"

    I have ruby v 2.6.10 installed

    Here's the latest output:

    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
    /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:167:in `unicode_normalize'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:167:in `installation_root'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:227:in `podfile_path'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface/error_report.rb:105:in `markdown_podfile'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface/error_report.rb:30:in `report'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:66:in `report_error'
    from /Users/joebonavita/.gem/ruby/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:396:in `handle_exception'
    from /Users/joebonavita/.gem/ruby/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:337:in `rescue in run'
    from /Users/joebonavita/.gem/ruby/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:324:in `run'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
    from /usr/local/bin/pod:23:in `load'
    from /usr/local/bin/pod:23:in `<main>'
    /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:167:in `unicode_normalize'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:167:in `installation_root'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:227:in `podfile_path'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:206:in `podfile'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:160:in `verify_podfile_exists!'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:46:in `run'
    from /Users/joebonavita/.gem/ruby/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
    from /usr/local/bin/pod:23:in `load'
    from /usr/local/bin/pod:23:in `<main>'



    pod repo update output:

    Updating spec repo `cocoapods`
    $ /usr/bin/git -C /Users/joebonavita/.cocoapods/repos/cocoapods fetch origin --progress
    $ /usr/bin/git -C /Users/joebonavita/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
    master
    $ /usr/bin/git -C /Users/joebonavita/.cocoapods/repos/cocoapods reset --hard origin/master
    HEAD is now at 6742899f23ab [Add] Unomok 1.0.1
    Updating spec repo `trunk`


    [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: 27, done.
    remote: Counting objects: 3% (1/27)
    remote: Counting objects: 7% (2/27)
    remote: Counting objects: 11% (3/27)
    remote: Counting objects: 14% (4/27)
    remote: Counting objects: 18% (5/27)
    remote: Counting objects: 22% (6/27)
    remote: Counting objects: 25% (7/27)
    remote: Counting objects: 29% (8/27)
    remote: Counting objects: 33% (9/27)
    remote: Counting objects: 37% (10/27)
    remote: Counting objects: 40% (11/27)
    remote: Counting objects: 44% (12/27)
    remote: Counting objects: 48% (13/27)
    remote: Counting objects: 51% (14/27)
    remote: Counting objects: 55% (15/27)
    remote: Counting objects: 59% (16/27)
    remote: Counting objects: 62% (17/27)
    remote: Counting objects: 66% (18/27)
    remote: Counting objects: 70% (19/27)
    remote: Counting objects: 74% (20/27)
    remote: Counting objects: 77% (21/27)
    remote: Counting objects: 81% (22/27)
    remote: Counting objects: 85% (23/27)
    remote: Counting objects: 88% (24/27)
    remote: Counting objects: 92% (25/27)
    remote: Counting objects: 96% (26/27)
    remote: Counting objects: 100% (27/27)
    remote: Counting objects: 100% (27/27), done.
    remote: Compressing objects: 5% (1/17)
    remote: Compressing objects: 11% (2/17)
    remote: Compressing objects: 17% (3/17)
    remote: Compressing objects: 23% (4/17)
    remote: Compressing objects: 29% (5/17)
    remote: Compressing objects: 35% (6/17)
    remote: Compressing objects: 41% (7/17)
    remote: Compressing objects: 47% (8/17)
    remote: Compressing objects: 52% (9/17)
    remote: Compressing objects: 58% (10/17)
    remote: Compressing objects: 64% (11/17)
    remote: Compressing objects: 70% (12/17)
    remote: Compressing objects: 76% (13/17)
    remote: Compressing objects: 82% (14/17)
    remote: Compressing objects: 88% (15/17)
    remote: Compressing objects: 94% (16/17)
    remote: Compressing objects: 100% (17/17)
    remote: Compressing objects: 100% (17/17), done.
    remote: Total 18 (delta 11), reused 0 (delta 0), pack-reused 0
    From https://github.com/CocoaPods/Specs
    5a6adbf3e2f1..6742899f23ab master -> origin/master

    UnityEngine.Debug:LogError (object)
    Google.Logger:Log (string,Google.LogLevel)
    Google.IOSResolver:Log (string,bool,Google.LogLevel) (at /Users/chkuang/Workspace/Git/unity-jar-resolver/source/IOSResolver/src/IOSResolver.cs:1159)
    Google.IOSResolver:OnPostProcessInstallPods (UnityEditor.BuildTarget,string) (at /Users/chkuang/Workspace/Git/unity-jar-resolver/source/IOSResolver/src/IOSResolver.cs:2567)
    UnityEditor.GenericMenu:CatchMenu (object,string[],int) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUI/GenericMenu.cs:127)