How to remove the Xcode warning Apple Mach-O Linker Warning 'Pointer not aligned at address
Solution 1
It probably means their binary file has non-aligned pointer when they compile their code. In those cases the alignment basically defaults to 1 byte and hypothetically might impact performance. After updating to Xcode 8.3 public release I am still seeing this error, so Google might need to compile their static library with different settings to make it go away.
Solution 2
Got this response from firebase support:
This is a known issue with Xcode 8.3 beta, so it might be a beta thing and Xcode being extra verbose. It works well though with 8.2.1 so I recommend temporarily use it to avoid the warnings or ignore the warnings on 8.3 beta if it does not affect your app.
Solution 3
This has been fixed in Firebase 3.16.0 (Firebase Core 3.6 + Firebase Analytics 3.8.0)
Solution 4
guys, it is all fixed now. Tested it all myself on two projects. You got to go to the correct directory of your project so that your pod spec file is visible to your command line commands, run
pod update
and see it all fixed and working properly!
Solution 5
These problems are addressed, and likely fixed, with release 3.16.0.
Related videos on Youtube
Alexander Huang
Updated on June 10, 2022Comments
-
Alexander Huang almost 2 years
I have a slight issue when build my Xcode project, get tones of warning after update pod. It looks like this
Already search the whole site here but still no luck. it doesn't affect the project but it is quite annoying. Anyone could help?
-
kball about 7 yearsI am also seeing this with firebase analytics since updating to ios 10.3 / Xcode 8.3 beta
-
Alexander Huang about 7 yearsya, same here. Currently i can only ignore them.
-
Guilherme Puglia about 7 yearsFirebase has fixed the issue and we are preparing a release. We also have checked if the warning messages represent a real problem and we found no issue associated with them. Sorry for the inconvenience.
-
Jakub Truhlář about 7 yearsThank you for letting us know, do you have any idea when it will be released @GuilhermePuglia?
-
Guilherme Puglia about 7 yearsWe hit some bumps in the road during our validation process, we are working towards launching it earlier next week. I will update this once we launch the new version.
-
Jakub Truhlář about 7 yearsVersion 3.16.0 should fix this. firebase.google.com/support/release-notes/ios
-
-
cvb about 7 yearsIt's a problem in xcode 8.3 release. How embarrassing for google. Firebase already causes notification warnings when uploading your app. I'm going to ditch it. I'm sick of them not having their act together.
-
cuomo456 about 7 yearsPretty ridiculous. It's extra frustrating because just using the Google SignIn pod automatically includes all the (unwanted) Firebase stuff - wish I could ditch it too!
-
iamburak about 7 yearsYes just now updated my Xcode there are many warning about that google and firanalytics. Is there any release about that pods?
-
user2742601 about 7 yearsI'm not sure if the problem is Google-specific; I am getting the same warnings when using the D compiler, which (as far as I can tell) has nothing to do with Firebase.
-
Jonny about 7 yearsSome comment from Apple and/or Google about the issue would be, fair.
-
Michal about 7 yearsCreate a ticket at firebase. I did.
-
riper about 7 years@michal Link to your ticket so we can star it instead of creating duplicates.
-
Rizwan Sattar about 7 yearsHey folks, just wanted to let you know that the Firebase team is aware of the warnings generated in Xcode 8.3 and we're working to remove them. This comes down to a compilation issue, and should not cause any problems in your code, though it's still ugly, and we shouldn't be generating any warnings.
-
Rizwan Sattar about 7 yearsThat's correct, we're aware of the warnings being generated, and we're working on an update to remove the warnings.
-
Roei Nadam about 7 yearsHappens to me now with 33 warning.
-
jakedunc about 7 yearsI have 39 warnings in my project because of this, this makes my OCD unhappy. Does anyone (maybe someone from Firebase or Google) have a warning suppression fix for this at least?
-
Guy Moreillon about 7 years32 similar warnings on my side, but also, my app is now broken: network connections start but don't finish and eventually the app completely freezes, probably on some deadlock. It may be unrelated to this issue, but then that's the only compilation problem I have. The same code runs fine when compiled with Xcode 8.2.1
-
Jonny about 7 yearsA slightly related "protobuf" framework (also from Google) which also caused a lot of warnings seems to have been updated recently - the warnings are gone. Hooray. Now only Firebase warnings remain for me.
-
Guy Moreillon about 7 yearsHuh, I take back the part about the app being broken in relation to those warnings that I mention above, the app is broken by Xcode 8.3 even with an older version of the Firebase framework that doesn't generate the warnings.
-
Faiz Fareed about 7 yearsSame like 39 warnings in my project when after adding firebase to my project through pod. I am just tired of using firebase, it takes too much time to link firebase with google admob, and then same like adding connecting each of admob(banner advertisements and as well as interstitial) again and again and these efforts takes too much time where as time = money, can any one suggest google team to make their process easy for developers instead of time consuming and after spending too much time there is still 39 issues...
-
cbartel about 7 years@RizwanSattar What is the status of the fix?
-
AniV about 7 yearsThe fixed pod should be available anytime today. Sorry for the inconvenience.
-
Rizwan Sattar about 7 yearsThe protobuf warnings should be gone as they've updated their pod. If you run pod update, most of the warnings should be gone. We're preparing a release of firebase tha should get rid of the remainder of the warnings.
-
jakedunc about 7 years@AniV Is this going to be an update to the general Firebase pod? So this one: cocoapods.org/pods/Firebase. No update yet if so..
-
jakedunc about 7 years@RizwanSattar running pod update does not remove any of the warnings currently
-
tzm41 about 7 years@RizwanSattar The new updates to FirebaseCore seems to be breaking things. When running pod update, it installs FirebaseCore 3.6.0 but removes Protobuf, and installs older versions of Firebase, FirebaseAnalytics, FirebaseInstanceID and FirebaseMessaging. As a result I am getting compilation errors due to 126 duplicate symbols for architecture x86_64 between FirebaseAnalytics and FirebaseCore. Is there new update coming to the Firebase pod itself soon?
-
cvb about 7 yearsOk it's fixed. I hope that notification issue when uploading an app is fixed as well.
-
tzm41 about 7 yearsFirebase 3.16.0 is out and fixes these issues. Thanks!
-
jakedunc about 7 years@ChrisVanBuskirk Nope it is still not fixed
-
PKCLsoft about 7 years@RizwanSattar Firebase 3.16.0 installed and does not make any difference to the warnings generated. ld: warning: Linker asked to preserve internal global: '__block_descriptor_tmp' ld: warning: Linker asked to preserve internal global: '__block_literal_global' ld: warning: Linker asked to preserve internal global: 'sharedInstance.sharedInstance'
-
aramusss about 7 yearsIt's true, a pod update fixed it:
Installing Firebase 3.16.0 (was 3.15.0) Installing FirebaseAnalytics 3.8.0 (was 3.7.0) Installing FirebaseCore 3.6.0 (was 3.5.2)
-
cvb about 7 years@jakedunc The notification issue?
-
jakedunc about 7 years@ChrisVanBuskirk Yeah I still get an email about "Missing Push Notification Entitlement" when I don't have Push Notifications in my app..
-
joshLor about 7 years@aramusss How Can I update to the new Firebase SDK, is that what I put in my pod
-
aramusss about 7 yearsUse pod update in the command line (search on google if any questions) :)
-
Dido almost 7 yearsHappy to hear that !