Issue:
Uncaught exception: NSInvalidArgumentException: +[FIRApp registerLibrary:withVersion:]: unrecognized selector sent to class 0x101b94b98
I have tried a lot of solutions but nothing worked. Let me give you details about it
- Made iOS build from Unity 2017.3.0f3 by setting minimum target version 9.0
Created
Podfile:$ cd your-project directory$ pod initMy
Podfileis something like this
# Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'Unity-iPhone' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! # Pods for Unity-iPhone pod 'GoogleInterchangeUtilities' pod 'GoogleSymbolUtilities' pod 'GoogleToolboxForMac' pod 'Firebase' pod 'Firebase/Core' pod 'Firebase/Analytics' pod 'Firebase/Auth' pod 'Firebase/Storage' pod 'Firebase/Database' target 'Unity-iPhone Tests' do inherit! :search_paths # Pods for testing end end
- Added
ObjClinker flaginOther Linker Settingsin target's build settings - In the
Arguments Passed On Launchsection, added-FIRAnalyticsDebugEnabled - Added
AdSupport.frameworkinLinked Frameworks and Librariessection - Then making a build by
.xcworkspace, not.xcodeproj
So, tell me what I'm doing wrong?
- Isn't Firebase Unity plugins should work without any hassle of any settings like I did and in case of Android it does, everything by itself, just import plugin and you are good to go?
