I've been trying to build my Unity game to iOS with Admob, Unity IAP, and Firebase Analytics.
- Unity Version: 5.6.2f1 Personal
- Xcode Version: 8.3.3
Steps I've completed:
- Enabled IAP and Analytics in Unity Service tab, Imported IAP package
- Imported Firebase Analytics Package
- Imported Admob unity package
- Created new Firebase project in the web portal. Downloaded GoogleService-Info.plist file
- Put .plist file in Assets folder.
- Ensured my player settings in Unity were correctly configured (Bundle Identifier, Version, IL2CPP set, Architecture: Universal, Device SDK set).
- Made Xcode project folder (Release mode set in build settings). Build succeeded, no errors.
- Opened terminal window and ran "pod init" in Xcode project folder root
- Ran "pod 'Firebase/Core'", "pod install". Succeeded
- Opened the .xcworkspace file from Xcode
- Changed "Enable Modules (C and Objective-C)" to "Yes" in Build Settings for both target and project files.
- Downloaded the GoogleMobileAds.framework (from the GoogleMobileAdsSDK zip)
- Added the GoogleMobileAds.framework to the list of frameworks in "Build Phases"
- Added AdSupport.framework
- Added "-ObjC" to "Other Linker Flags" in both Target and Project files.
- Cleaned Project
- Build Project, Build failed due to linker errors
I've also tried upping the deployment target to 8.0 rather than 6.0 in the general settings and PodFile, but it didn't remove the errors.
Any help would be appreciated. I think I'm just missing a step somewhere in the Xcode configuration but I can't seem to figure it out.
