Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

iOS framework addition failed due to a Cocoapods installation failure.

Discussion in 'iOS and tvOS' started by Dakattack64, Jul 15, 2017.

  1. Dakattack64

    Dakattack64

    Joined:
    Sep 28, 2016
    Posts:
    3

    I've been trying to build my Unity game to iOS with Admob, Unity IAP, and Firebase Analytics.
    • Unity Version: 5.6.2f1 Personal
    After importing all the packages, putting the GoogleMobileAds.framework in the Assets/Plugins/iOS folder, I get this error. Anyone know how to resolve it? I've tried uninstalling and reinstalling Cocoapods (using commands from the blog below). But I still get the error. Anything else I can try?

    https://bhaveshdhaduk.wordpress.com/2014/05/07/cocoapods-uninstall-and-install/
     
    rob_ice likes this.
  2. Alond

    Alond

    Joined:
    Dec 9, 2013
    Posts:
    7
    I have the same issue. Have you managed to solve it?
     
  3. Yalfbal

    Yalfbal

    Joined:
    Nov 20, 2012
    Posts:
    23
    Hi,

    Same issue here.
     
  4. rob_ice

    rob_ice

    Joined:
    Nov 11, 2016
    Posts:
    112
    Same issue here, tried installing and uninstalling many times
     
  5. PixelEnvision

    PixelEnvision

    Joined:
    Feb 7, 2012
    Posts:
    485
    Do you have a folder called PlayServicesResolver? If so if has Cocoapods enabled for iOS, just disable it in iOS Resolver Settings

    .
     
  6. rob_ice

    rob_ice

    Joined:
    Nov 11, 2016
    Posts:
    112
    Already tried hoping it would be an easy fix (stop the thing erroring so everything else runs)

    Have found that if we disable cocoapods integrations, the app (in this case, Google ARCore Lightboards multiplayer demo or a fresh ARCore project with cloud anchor scene) will error out in xcode with the code below.

    To workaround this, we go into the generated podfile and delete the line referring to sso://cpdc-internal/spec as it is causing errors, then open terminal, cd to the build folder and pod install or pod update.

    However after doing so, we can't get the multiplayer devices to connect to each other running the build!


    Code (CSharp):
    1. Undefined symbols for architecture arm64:
    2.   "_ArSession_resolveAndAcquireNewCloudAnchor", referenced from:
    3.       _ExternApi_ArSession_resolveAndAcquireNewCloudAnchor_m2495464753 in Bulk_Assembly-CSharp_1.o
    4.      (maybe you meant: _ExternApi_ArSession_resolveAndAcquireNewCloudAnchor_m2495464753)
    5.   "_ArSession_create", referenced from:
    6.       _ExternApi_ArSession_create_m3070864988 in Bulk_Assembly-CSharp_1.o
    7.      (maybe you meant: _ExternApi_ArSession_create_m3070864988)
    8.   "_ArSession_hostAndAcquireNewCloudAnchor", referenced from:
    9.       _ExternApi_ArSession_hostAndAcquireNewCloudAnchor_m1431695018 in Bulk_Assembly-CSharp_1.o
    10.      (maybe you meant: _ExternApi_ArSession_hostAndAcquireNewCloudAnchor_m1431695018)
    11.   "_OBJC_CLASS_$_FIRApp", referenced from:
    12.       objc-class-ref in libApp.a(app_ios_c76c7d869e568a9b561ea55e25a7dcc0.o)
    13.   "_ArFrame_release", referenced from:
    14.       _ExternApi_ArFrame_release_m628435846 in Bulk_Assembly-CSharp_1.o
    15.      (maybe you meant: _ExternApi_ArFrame_release_m628435846)
    16.   "_ArFrame_getTimestamp", referenced from:
    17.       _ExternApi_ArFrame_getTimestamp_m1073587907 in Bulk_Assembly-CSharp_1.o
    18.      (maybe you meant: _ExternApi_ArFrame_getTimestamp_m1073587907)
    19.   "_ArPose_getPoseRaw", referenced from:
    20.       _ExternApi_ArPose_getPoseRaw_m1977369023 in Bulk_Assembly-CSharp_1.o
    21.      (maybe you meant: _ExternApi_ArPose_getPoseRaw_m1977369023)
    22.   "_ARKitAnchor_release", referenced from:
    23.       _ExternApi_ARKitAnchor_release_m1718714435 in Bulk_Assembly-CSharp_1.o
    24.      (maybe you meant: _ExternApi_ARKitAnchor_release_m1718714435)
    25.   "_ArPose_destroy", referenced from:
    26.       _ExternApi_ArPose_destroy_m418214798 in Bulk_Assembly-CSharp_1.o
    27.      (maybe you meant: _ExternApi_ArPose_destroy_m418214798)
    28.   "_ARKitAnchor_create", referenced from:
    29.       _ExternApi_ARKitAnchor_create_m1300657135 in Bulk_Assembly-CSharp_1.o
    30.      (maybe you meant: _ExternApi_ARKitAnchor_create_m1300657135)
    31.   "_ArSession_updateAndAcquireArFrame", referenced from:
    32.       _ExternApi_ArSession_updateAndAcquireArFrame_m2690757634 in Bulk_Assembly-CSharp_1.o
    33.      (maybe you meant: _ExternApi_ArSession_updateAndAcquireArFrame_m2690757634)
    34.   "_ArSession_destroy", referenced from:
    35.       _ExternApi_ArSession_destroy_m328869300 in Bulk_Assembly-CSharp_1.o
    36.      (maybe you meant: _ExternApi_ArSession_destroy_m328869300)
    37.   "_ArAnchor_getCloudAnchorState", referenced from:
    38.       _ExternApi_ArAnchor_getCloudAnchorState_m1094921979 in Bulk_Assembly-CSharp_1.o
    39.      (maybe you meant: _ExternApi_ArAnchor_getCloudAnchorState_m1094921979)
    40.   "_ArAnchorList_create", referenced from:
    41.       _ExternApi_ArAnchorList_create_m3950048780 in Bulk_Assembly-CSharp_1.o
    42.      (maybe you meant: _ExternApi_ArAnchorList_create_m3950048780)
    43.   "_ArAnchorList_destroy", referenced from:
    44.       _ExternApi_ArAnchorList_destroy_m657488677 in Bulk_Assembly-CSharp_1.o
    45.      (maybe you meant: _ExternApi_ArAnchorList_destroy_m657488677)
    46.   "_OBJC_CLASS_$_FIROptions", referenced from:
    47.       objc-class-ref in libApp.a(app_ios_c76c7d869e568a9b561ea55e25a7dcc0.o)
    48.   "_ArPose_create", referenced from:
    49.       _ExternApi_ArPose_create_m2618691603 in Bulk_Assembly-CSharp_1.o
    50.      (maybe you meant: _ExternApi_ArPose_create_m2618691603)
    51.   "_ArAnchor_getPose", referenced from:
    52.       _ExternApi_ArAnchor_getPose_m2236763152 in Bulk_Assembly-CSharp_1.o
    53.      (maybe you meant: _ExternApi_ArAnchor_getPose_m2236763152)
    54.   "_ArAnchorList_getSize", referenced from:
    55.       _ExternApi_ArAnchorList_getSize_m1986663875 in Bulk_Assembly-CSharp_1.o
    56.      (maybe you meant: _ExternApi_ArAnchorList_getSize_m1986663875)
    57.   "_ArAnchor_release", referenced from:
    58.       _ExternApi_ArAnchor_release_m1224335882 in Bulk_Assembly-CSharp_1.o
    59.      (maybe you meant: _ExternApi_ArAnchor_release_m1224335882)
    60.   "_ArAnchor_getTrackingState", referenced from:
    61.       _ExternApi_ArAnchor_getTrackingState_m2024388030 in Bulk_Assembly-CSharp_1.o
    62.      (maybe you meant: _ExternApi_ArAnchor_getTrackingState_m2024388030)
    63.   "_ArAnchor_detach", referenced from:
    64.       _ExternApi_ArAnchor_detach_m1073046060 in Bulk_Assembly-CSharp_1.o
    65.      (maybe you meant: _ExternApi_ArAnchor_detach_m1073046060)
    66.   "_ArAnchor_acquireCloudAnchorId", referenced from:
    67.       _ExternApi_ArAnchor_acquireCloudAnchorId_m2670563512 in Bulk_Assembly-CSharp_1.o
    68.      (maybe you meant: _ExternApi_ArAnchor_acquireCloudAnchorId_m2670563512)
    69.   "_ArAnchorList_acquireItem", referenced from:
    70.       _ExternApi_ArAnchorList_acquireItem_m2701054485 in Bulk_Assembly-CSharp_1.o
    71.      (maybe you meant: _ExternApi_ArAnchorList_acquireItem_m2701054485)
    72.   "_ArString_release", referenced from:
    73.       _ExternApi_ArString_release_m2224595556 in Bulk_Assembly-CSharp_1.o
    74.      (maybe you meant: _ExternApi_ArString_release_m2224595556, _ExternApi_ArString_release_m268636687 )
    75. ld: symbol(s) not found for architecture arm64
    76. clang: error: linker command failed with exit code 1 (use -v to see invocation)
    77.  
     
  7. Jeremy-Lv

    Jeremy-Lv

    Joined:
    Mar 17, 2013
    Posts:
    16
    same issue ,can not find a solution ,and no useful answer can be found anywhere.
    bad for weeks with firebase .
     
  8. TonismoGames

    TonismoGames

    Joined:
    Jun 12, 2018
    Posts:
    36
    this is a serious issue,i cant release my game on iOS because of this
     
    rehanazhar87 likes this.
  9. rehanazhar87

    rehanazhar87

    Joined:
    May 31, 2017
    Posts:
    2
    same error with no success :(
     
  10. sujanth

    sujanth

    Joined:
    Jan 29, 2016
    Posts:
    1
    Execute
    Code (CSharp):
    1. sudo gem install pods
    on the Terminal, it can solve this issue.
     
  11. mistergreen2016

    mistergreen2016

    Joined:
    Dec 4, 2016
    Posts:
    130
    I'm installing Firebase analytics SDK. Why does Unity need cocoapod anyway? I'm on a MAC, don't we just build this into Xcode anyway?
     
    Last edited: Aug 20, 2019
  12. pwshaw

    pwshaw

    Joined:
    Sep 16, 2014
    Posts:
    10
    i'm having the same issue.
     
  13. re-cheid

    re-cheid

    Joined:
    Apr 10, 2017
    Posts:
    9
    We had the same problem. For us the problem was, that we switched to another branch which was configured on another Unity version but we didn't close unity when switching branches.

    So closing unity, switching branch, then opening again solved this.
     
  14. hdeekshith

    hdeekshith

    Joined:
    Sep 11, 2017
    Posts:
    1
    I got this issue solved by taking the build(build target location) in the new folder or replacing instead of appending to the existing folder
     
  15. Cuicui_Studios

    Cuicui_Studios

    Joined:
    May 3, 2014
    Posts:
    37
    Any update on this @rob_ice? We are facing the same issue. We've tried adding some frameworks using unity editor FireBase settings. We also tried the iOS resolver settings. Nothing. Been stuck there for several days. Impossible to post an update to our iOS app.

    [edit] So, after updating Firebase iOS plugin, I exported XCode project and upon opening the workspace file, I can see that all the *.a files inside Pods project are shown in red. All the libFirebaseAuth.a, libFirebaseCore.a, libFirebase*.a files and a few others appear in red, which I suppose must be some kind of problem linking the libraries or something similar.
    Any ideas?
     
    Last edited: Oct 30, 2019