iOS framework addition failed due to a Cocoapods installation failure.


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?

1 Like

I have the same issue. Have you managed to solve it?

Hi,

Same issue here.

Same issue here, tried installing and uninstalling many times

Do you have a folder called PlayServicesResolver? If so if has Cocoapods enabled for iOS, just disable it in iOS Resolver Settings

.

1 Like

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!

Undefined symbols for architecture arm64:
  "_ArSession_resolveAndAcquireNewCloudAnchor", referenced from:
      _ExternApi_ArSession_resolveAndAcquireNewCloudAnchor_m2495464753 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArSession_resolveAndAcquireNewCloudAnchor_m2495464753)
  "_ArSession_create", referenced from:
      _ExternApi_ArSession_create_m3070864988 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArSession_create_m3070864988)
  "_ArSession_hostAndAcquireNewCloudAnchor", referenced from:
      _ExternApi_ArSession_hostAndAcquireNewCloudAnchor_m1431695018 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArSession_hostAndAcquireNewCloudAnchor_m1431695018)
  "_OBJC_CLASS_$_FIRApp", referenced from:
      objc-class-ref in libApp.a(app_ios_c76c7d869e568a9b561ea55e25a7dcc0.o)
  "_ArFrame_release", referenced from:
      _ExternApi_ArFrame_release_m628435846 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArFrame_release_m628435846)
  "_ArFrame_getTimestamp", referenced from:
      _ExternApi_ArFrame_getTimestamp_m1073587907 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArFrame_getTimestamp_m1073587907)
  "_ArPose_getPoseRaw", referenced from:
      _ExternApi_ArPose_getPoseRaw_m1977369023 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArPose_getPoseRaw_m1977369023)
  "_ARKitAnchor_release", referenced from:
      _ExternApi_ARKitAnchor_release_m1718714435 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ARKitAnchor_release_m1718714435)
  "_ArPose_destroy", referenced from:
      _ExternApi_ArPose_destroy_m418214798 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArPose_destroy_m418214798)
  "_ARKitAnchor_create", referenced from:
      _ExternApi_ARKitAnchor_create_m1300657135 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ARKitAnchor_create_m1300657135)
  "_ArSession_updateAndAcquireArFrame", referenced from:
      _ExternApi_ArSession_updateAndAcquireArFrame_m2690757634 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArSession_updateAndAcquireArFrame_m2690757634)
  "_ArSession_destroy", referenced from:
      _ExternApi_ArSession_destroy_m328869300 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArSession_destroy_m328869300)
  "_ArAnchor_getCloudAnchorState", referenced from:
      _ExternApi_ArAnchor_getCloudAnchorState_m1094921979 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArAnchor_getCloudAnchorState_m1094921979)
  "_ArAnchorList_create", referenced from:
      _ExternApi_ArAnchorList_create_m3950048780 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArAnchorList_create_m3950048780)
  "_ArAnchorList_destroy", referenced from:
      _ExternApi_ArAnchorList_destroy_m657488677 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArAnchorList_destroy_m657488677)
  "_OBJC_CLASS_$_FIROptions", referenced from:
      objc-class-ref in libApp.a(app_ios_c76c7d869e568a9b561ea55e25a7dcc0.o)
  "_ArPose_create", referenced from:
      _ExternApi_ArPose_create_m2618691603 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArPose_create_m2618691603)
  "_ArAnchor_getPose", referenced from:
      _ExternApi_ArAnchor_getPose_m2236763152 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArAnchor_getPose_m2236763152)
  "_ArAnchorList_getSize", referenced from:
      _ExternApi_ArAnchorList_getSize_m1986663875 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArAnchorList_getSize_m1986663875)
  "_ArAnchor_release", referenced from:
      _ExternApi_ArAnchor_release_m1224335882 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArAnchor_release_m1224335882)
  "_ArAnchor_getTrackingState", referenced from:
      _ExternApi_ArAnchor_getTrackingState_m2024388030 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArAnchor_getTrackingState_m2024388030)
  "_ArAnchor_detach", referenced from:
      _ExternApi_ArAnchor_detach_m1073046060 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArAnchor_detach_m1073046060)
  "_ArAnchor_acquireCloudAnchorId", referenced from:
      _ExternApi_ArAnchor_acquireCloudAnchorId_m2670563512 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArAnchor_acquireCloudAnchorId_m2670563512)
  "_ArAnchorList_acquireItem", referenced from:
      _ExternApi_ArAnchorList_acquireItem_m2701054485 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArAnchorList_acquireItem_m2701054485)
  "_ArString_release", referenced from:
      _ExternApi_ArString_release_m2224595556 in Bulk_Assembly-CSharp_1.o
     (maybe you meant: _ExternApi_ArString_release_m2224595556, _ExternApi_ArString_release_m268636687 )
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

same issue ,can not find a solution ,and no useful answer can be found anywhere.
bad for weeks with firebase .

this is a serious issue,i cant release my game on iOS because of this

1 Like

same error with no success :frowning:

Execute sudo gem install pods on the Terminal, it can solve this issue.

3 Likes

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?

i’m having the same issue.

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.

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

1 Like

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?

Anyone solved this issue, because i am having same issue when i try to build my ios build…

Having the same issue. Any solution?

Same issue here. Last time I solved this by updating cocoapods via the ios resolver, but this time cocoa pods is already updated. Going to try uninstalling and reinstalling to potentially reset the folder.

Same issue here. no solution found :frowning:

any idea how to fix it?