Library not found for -lGTMSessionFetcher - ios

Unity 5.6.2, Firebase Unity SDK 4.0.3, Cocoapod 1.3.1 I added Firebase Auth package to Unity Project and Android works fine. But when I run the same project on iOs, build in Unity runs fine, but fails in XCode during compilation
ld: library not found for -lGTMSessionFetcher clang: error: linker command failed with exit code 1
Any ideas how to fix it?
I've tried to add Firebase Auth form Unity SDK 4.1.0, but Unity started to fail due to:
iOS framework addition failed due to a Cocoapods installation failure.
Specs satisfying the 'Firebase/DynamicLinks (=4.0.4)' dependency were found, but they required a higher minimum deployment target
pod spec cat DynamicLinks output
"platforms": {
"ios": "7.0"
}
and I have 9.0 in my Unity project

This error happens when you open .xcodeproj instead of .xcworkspace.
as mentioned here

Related

Error building for iOS simulator in hybrid app

I've been struggling with an error building my app with ionic and cordova.
Everything started when I tried a "ionic cordova build ios --prod --release". It retrieved an error regarding FirebaseAnalytics for architecture arm64
"clang: error: linker command failed with exit code 1"
Reinstalling the pods and removing and adding the ios platform again I got this error even without the --release flag.
error: Building for iOS Simulator, but the embedded framework 'WebRTC.framework' was built for iOS. (in target 'Qvadis' from project 'Qvadis')
and I'm stuck here and I don't know if something changed with the latest XCode version (12.0) or the latest iOS version (14) or I have a dependencies problem.
Before that, it compiled just fine.
Thank you in advance,
Borja.
I found a solution:
In Build Settings, selecting your app as Target, you have to type "arm64" in "Excluded architectures".
However, this doesn't allow you to archive and publish it so you have to remove the "arm64" excluded architecture to perform those actions.
I don't know if this is a good approach, but this is the one that works for me.

Can't build app for iOS devices with Ionic 3

I'm developing an app for android and iOS.
I'm using firebase to receive push notifications. When I build for Android, it works fine, but no luck with iOS.
I followed a tutorial for firebase, put the GoogleService.plist on resources folder. I've created the authentication key on Apple Developer Website. I have a paid Apple developer account.
I used cocoapods to install dependencies of the project.
But, when I run, using the Xcode 10, I got this error:
Plugins/cordova-plugin-firebase/Protobuf.framework/Protobuf(Wrappers.pbobjc.o)
ld: 585 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Anyone have the same issue?
Thanks
Make sure you're using the following command to build:
Development
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
Production
ionic cordova build ios --prod --release -- --buildFlag="-UseModernBuildSystem=0"
as discussed by the ionic dev team, the new build system of xcode is not supported yet, then you should use the older one.
When opening the project in Xcode, if you're using a plugin that use cocoa pods as dependence manager, Google Maps is a example, you should open the ProjectName.xcworkspace file instead of ProjectName.xcodeproj as the xcworkpace knows how to compile a cocoa pods plugin dependece based.
ionic cordova build ios --prod --buildFlag='-UseModernBuildSystem=0'
Just as a side note that you will stumble upon, XCODE exposes a Signing bug, so untick the “Automatically manage signing” and tick again in XCODE.

Firebase Unity iOS library

Unity 5.5.2, Firebase Unity SDK 4.0.3, Cocoapod 1.2.1. I have setup Firebase cloud messaging successfully under my Android build in Unity, but I am unable to make iOS build and getting this error
"ld: library not found for -lz} clang: error: linker command failed
with exit code 1 (use -v to see invocation)"
We fixed this issue in the 4.2.0 SDK https://firebase.google.com/support/release-notes/unity#4.2.0 and https://github.com/googlesamples/unity-jar-resolver/commit/7d8df60d6a401340f6de8972b45366b9185ee856 of the Play Services Resolver.
Cheers,
Stewart

Can not build My iOS App use Google Sign In SDK (version 2.4.0)

My iOS App use Google Sign in SDK with Cocoapad
I recently updated Google Sign in SDK version 2.3.2 to versions 2.4.0 use Pod Update then My App does not build on Xcode with Build failed Message
ld: library not found for -lGIDExShared clang: error: linker command
failed with exit code 1 (use -v to see invocation)
Is there any way to bypass this and add support to the library if the developer of the library hasn't updated their library yet?
Thanks a lot for your help and time.
Update
I found solved the question.
remove "-lGIDExShared" in Xcode Build Setting, Other linker flag.
Thanks for all the answers.
Install it with
pod 'GoogleSignIn'
in your Podfile. It seems the name has changed. I tested this with Xcode 7.1 and CocoaPods 0.39.0.

How to build Mantle v2 for iOS 7.0?

my project currently targets iOS 7.1 and up. I have built Mantle along with Carthage as described on the Mantle's GitHub site. But I get the following error when building my project:
ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later
(#rpath/Mantle.framework/Mantle) for architecture arm64 clang: error:
linker command failed with exit code 1 (use -v to see invocation)
Does somebody know how I could build the Mantle.framework for iOS 7.1 (preferably with Carthage) ?
If you want to target iOS 7.x then you cannot use frameworks as frameworks are only supported from iOS 8.0 onwards. Since Carthage creates frameworks, you also won't be able to use Carthage.
If you still want to use Mantle, either include its files into your project manually or use Cocoapods to build it as a static library using one of the existing Cocoapods spec files for Mantle.

Resources