Skip to content

[Bug] Cocoapods 1.11.2 seems to be incompatible with how its run from unity #479

@ShmulikArmon

Description

@ShmulikArmon

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2019.4.30 (happens on other versions as well)
  • External Dependency Manager version: 1.2.167
  • Source you installed EDM4U: unitypackage (.unitypackage or Unity Package Manager)
  • Features in External Dependency Manager in use: iOS resolver (Android Resolver, iOS Resolver, VersionHandler, etc.)
  • Plugins SDK in use: firbase, admob, facebook and more (Firebase, Admob, Facebook, etc.)
  • Platform you are using the Unity editor on: Mac (osx 11.6) (Mac, Windows, or Linux)

[REQUIRED] Please describe the issue here:

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

  1. Make sure you have cocoapods 1.11.2 (latest at this time) installed (and that it is the one unity is using)
  2. Open new project in unity
  3. Create Dependencies xml under Editor with only ios pods and add this line -
  4. Build for iOS

Expected : Cocoapods should run without an issue
Actual: Build fails, cocoapods gives message -

normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)

If I take the result xcode project and run pod install from my terminal, it passes. Also, if I downgrade to cocoapods 1.10.x it stops occuring, but this is not a great option. Another way I've just solved it was to add export LANG=en_US.UTF-8 to ~/.profile as suggested, but this is also not optimal - if I could suggest a solution, you could export this environment variable in the process of running "pod install" - just an idea

Please answer the following, if applicable:

What's the issue repro rate? (eg 100%, 1/5 etc)

Reproduces all the time.

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

Console log error -

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 /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:166:in unicode_normalize'
from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:166:in installation_root' from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:226:in podfile_path'
from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:105:in markdown_podfile' from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:30:in report'
from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:66:in report_error' from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/claide-1.0.3/lib/claide/command.rb:396:in handle_exception'
from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/claide-1.0.3/lib/claide/command.rb:337:in rescue in run' from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/claide-1.0.3/lib/claide/command.rb:324:in run'
from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in run' from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/bin/pod:55:in <top (required)>'
from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23:in load' from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23:in

'
/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 /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:166:in unicode_normalize'
from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:166:in installation_root' from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:226:in podfile_path'
from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:205:in podfile' from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:160:in verify_podfile_exists!'
from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/command/install.rb:46:in run' from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/claide-1.0.3/lib/claide/command.rb:334:in run'
from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in run' from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/bin/pod:55:in <top (required)>'
from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23:in load' from /usr/local/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23:in '

pod repo update output:

Updating spec repo amazonaws-cocoapods
$ /usr/bin/git -C /Users/shmulika/.cocoapods/repos/amazonaws-cocoapods fetch origin --progress
$ /usr/bin/git -C /Users/shmulika/.cocoapods/repos/amazonaws-cocoapods rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/shmulika/.cocoapods/repos/amazonaws-cocoapods reset --hard origin/master
HEAD is now at 39fa1fd8 [Update] TT_Plugins_Billing_Pod (3.5.0.95.18)
Updating spec repo amazonaws-v1-repos-cocoapods
$ /usr/bin/git -C /Users/shmulika/.cocoapods/repos/amazonaws-v1-repos-cocoapods fetch origin --progress
$ /usr/bin/git -C /Users/shmulika/.cocoapods/repos/amazonaws-v1-repos-cocoapods rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/shmulika/.cocoapods/repos/amazonaws-v1-repos-cocoapods reset --hard origin/master
HEAD is now at 39fa1fd8 [Update] TT_Plugins_Billing_Pod (3.5.0.95.18)
Updating spec repo cl-pod-repo
Updating spec repo cocoapods
Updating spec repo ironsource-mobile
Updating spec repo ironsource-mobile-1
Updating spec repo shmulmul
Updating spec repo trunk
Updating spec repo vungle

�[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:

export LANG=en_US.UTF-8
�[0m

UnityEngine.Debug:LogError (object)
Google.Logger:Log (string,Google.LogLevel) (at /Users/chkuang/Workspace/git/unity-jar-resolver/source/VersionHandlerImpl/src/Logger.cs:136)
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)
UnityEngine.GUIUtility:ProcessEvent (int,intptr) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)

If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.

Since it is very easy to reproduce i think uploading a unity project wont really help, if necessary sure I can upload it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions