Search code examples
iosxcodeunity-game-enginearmv7

Undefined symbols for architecture armv7 - linker command failed


I am working on a game developed with unity, when i try to build it for iOS i got build failed due to undefined symbol.

"_OBJC_CLASS_$_LAContext", referenced from:
  objc-class-ref in GoogleSignIn(MDMPasscodeCache_7bfe55864ba5a0ab8141ccdcdc4ab596.o)
  "__SuperpowPlugin_ShowCustomerReview", referenced from:
  _SuperpowIOS__SuperpowPlugin_ShowCustomerReview_m3277441088 in Bulk_Assembly-CSharp-firstpass_2.o
  _SuperpowIOS_ShowCustomerReview_m2157481586 in Bulk_Assembly-CSharp-firstpass_2.o
 (maybe you meant: _SuperpowIOS__SuperpowPlugin_ShowCustomerReview_m3277441088)
  "__SuperpowPlugin_SetNotifyAppearance", referenced from:
  _SuperpowIOS__SuperpowPlugin_SetNotifyAppearance_m2340220546 in Bulk_Assembly-CSharp-firstpass_2.o
 (maybe you meant: _SuperpowIOS__SuperpowPlugin_SetNotifyAppearance_m2340220546)

ld: symbol(s) not found for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)

My xcode version is 9.4 and unity 5.6.1f1.

I have been stuck with this since 3 days, have searched a lot and linked missing files and frameworks, solved many errors but this is the one i can't get rid of. Any help would be great.

Thanks


Solution

  • After doing some research, I finally figured it out. I have Gooogle mobile ads plugin and google play game plugins both. I didn't installed cocoa pods and I was adding all frameworks in Xcode.

    Installing cocoa pods did the job :)

    sudo gem install cocoapods

    After that i rebuild the xcode project from unity and add all frameworks and files mentioned in particular plugin installation and it worked.

    So anyone having same issue, then please check for your pod installation.