In case anyone stumbled on this problem from trying to make an iOS build on an M1 (Apple Silicon) macOS after integrating LevelPlay (IronSource, Ads Mediation)… I was able to resolve the problem by doing the below steps:
From that list, uninstall everything that references ‘cocoapods’. Do this by typing the following for each ‘cocoapods’ reference you see: sudo gem uninstall cocoapods-core
Install homebrew.
Update homebrew: brew upgrade
Using homebrew, install Ruby brew install rbenv ruby-build
Update ruby: rbenv install 3.2.0
Set the new ruby version to global: rbenv global 3.2.0
Restart your computer.
Then reinstall cocoapods by entering: sudo arch -arm64 gem install -n /usr/local/bin cocoapods -v 1.10.2
important: After running the install command, Homebrew will run installation and will end by showing you a set of instructions titled “Next steps”. Make sure you finish the installation by doing what those instructions at the end tell you to do.
I can confirm this looks like it is working in 2022.3. Also updating the pods file to 1.13.0 did not work, it seems like it has to be 1.10.2
However when I go to build my app in XCode, it fails and says if cant find the libraries. Im not sure is thi is a Facebook issue or something in my setup.
I get an error when the app loads:
dyld[83827]: Library not loaded: @rpath/FBAEMKit.framework/FBAEMKit
Referenced from: <81B561ED-69F2-3E2D-BC07-B613266843EC> /private/var/containers/Bundle/Application/E9E3A4CE-3591-4B11-86B6-9A92A0FC2A18/Test.app/Test
Reason: tried: '/private/var/containers/Bundle/Application/E9E3A4CE-3591-4B11-86B6-9A92A0FC2A18/Test.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/var/containers/Bundle/Application/E9E3A4CE-3591-4B11-86B6-9A92A0FC2A18/Test.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/var/containers/Bundle/Application/E9E3A4CE-3591-4B11-86B6-9A92A0FC2A18/Test.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/var/containers/Bundle/Application/E9E3A4CE-3591-4B11-86B6-9A92A0FC2A18/Test.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/var/containers/Bundle/Application/E9E3A4CE-3591-4B11-86B6-9A92A0FC2A18/Test.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/var/containers/Bundle/Application/E9E3A4CE-3591-4B11-86B6-9A92A0FC2A18/Test.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/System/Library/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file, not in dyld cache)
(lldb)
To fix this i have to run pod update in the built folder.
This was the only solution that did the trick for me. Thanks for sharing. I posted this into an issue at the Google Resolver, because I think it needs a more elegant solution than this workaround:
I have the same situation. I have to run pod update in the built folder.
Unity 2022.3.12f1, macOS 13.5, Xcode 14.3.1 (15.0.1 doesn’t build, as discussed elsewhere), building for iOS
My 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: CocoaPods Guides - Troubleshooting for potential solutions.