iOS framework addition failed due to a CocoaPods installation failure.

Hi All,

I just started using Unity LevelPlay with my project and I can no longer build for iOS.
Below is my console message, any guidance would be greatly appreciated. Thank you!

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: CocoaPods Guides - Troubleshooting 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.12.0/lib/cocoapods/config.rb:166:in unicode_normalize’
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/config.rb:166:in installation_root' from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/config.rb:226:in podfile_path’
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/user_interface/error_report.rb:105:in markdown_podfile' from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/user_interface/error_report.rb:30:in report’
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/command.rb:66:in report_error' from /Users/pauldesautels/.gem/ruby/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:396:in handle_exception’
from /Users/pauldesautels/.gem/ruby/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:337:in rescue in run' from /Users/pauldesautels/.gem/ruby/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:324:in run’
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/command.rb:52:in run' from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/bin/pod:55:in <top (required)>’
from /usr/local/bin/pod:23:in load' from /usr/local/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 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/config.rb:166:in unicode_normalize’
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/config.rb:166:in installation_root' from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/config.rb:226:in podfile_path’
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/config.rb:205:in podfile' from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/command.rb:160:in verify_podfile_exists!’
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/command/install.rb:46:in run' from /Users/pauldesautels/.gem/ruby/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in run’
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/command.rb:52:in run' from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/bin/pod:55:in <top (required)>’
from /usr/local/bin/pod:23:in load' from /usr/local/bin/pod:23:in
pod repo update output:
Updating spec repo master
[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)
Google.IOSResolver:Log (string,bool,Google.LogLevel)
Google.IOSResolver:OnPostProcessInstallPods (UnityEditor.BuildTarget,string)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)

1 Like

Hi. I have the same problem and have the same stack trace

@pabloware have you found any workaround to avoid it?

I had cocopods, but I needed to run this command for it to work with Unity. I am not sure why but it worked :smile:

sudo gem install cocoapods