Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Question Build Unity+Applovin Xcode CocoaPods installation failure?

Discussion in 'iOS and tvOS' started by Fagic, Mar 2, 2023.

  1. Fagic

    Fagic

    Joined:
    Feb 26, 2017
    Posts:
    8
    Hello everyone. In my game, I use applovin ads. When I build to xcode, I get a failure message. When I build to xcode I don't have the xcworkspace file.And when run Xcode I received error :
    AppLovinSDK/AppLovinSDK.h' file not found

    I am using -Unity 2019.4.22f
    -Macos venture 13.2.1 chip M1
    -Xcode 14.2
    Hope someone can help me fix this 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 failed. "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:

    Analyzing dependencies


    Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
    Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6
     
  2. dualcarbongames

    dualcarbongames

    Joined:
    Jan 14, 2022
    Posts:
    4
    facing same issue, not sure if it has something to do with apple M1 chip? gonna try on one of the older Mac.
     
  3. Talha113

    Talha113

    Joined:
    Apr 10, 2019
    Posts:
    8
    Have you resolved this issue?
     
  4. dualcarbongames

    dualcarbongames

    Joined:
    Jan 14, 2022
    Posts:
    4
    yes I did, just goto the build folder of your project, within that folder, right click on "Unity-Iphone.xcodeproj" and select "open terminal at folder", now in the terminal type, pod install --repo-update and press enter. if this solves the issue , you will see another file there within the build folder as "Unity-iPhone.xcworkspace", now double click and it will open it in Xcode.

    that solved it for me, and when I build it again later, no pods error and it opened Xcode automatically.
     
  5. TheOtherJoJo

    TheOtherJoJo

    Joined:
    Apr 5, 2015
    Posts:
    14
    Nice. It worked for me too.
    Thanks.