How to Remove the Xcode Warning Apple MACh-O Linker Warning 'Pointer Not Aligned at Address

How to remove the Xcode warning Apple Mach-O Linker Warning 'Pointer not aligned at address

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.

Pointer Not Aligned to Address

Same worked for me. Follow the lines in your project directory commandline:

pod repo update

and then after the first line is finished:

pod update

Hint: I've got an error when I was trying to do the second line, but the solution was simple.If you got that error go ahead and include this line to your Podfile:

project 'path/to/project/projectname.xcworkspace'

or the .xcodeproj file.

hope your project works fine, as mine did.

Apple Mach-O Linker Warning: how to get rid of it but not affect my friend

If you're both using the framework, you should put it in a folder relative to the Xcode project. For example:

project/
yourProject.xcodeproj
yourSource.c
Frameworks/
GoogleCast.framework

Then add it to the project using a project-relative path rather than an absolute path. You can set it to a relative path by selecting the framework in the project navigator, opening the "Utilities" tab, and changing the "Location" pop-up to "Relative To Project".

SDWebImage Apple Mach-O Linker Warning

1.  Click on your project (targets) 
2. Click on Build Settings
3. Use the arrows next to your project name (right above the Basic and All buttons) the change to the Tests target
4. if the warning is ...for option '-F/... thats Framework Search Paths, delete the stuff there
5. Clean
6. Build Go for it.

Xcode - Apple Mach-O Linker errors when loading sound in AppDelegate

extern SystemSoundID tapSoundID doesn't define tapSoundID. It simply means that it is defined somewhere else.

So let's put it in your AppDelegate.m file.

#import "AppDelegate.h"

SystemSoundID tapSoundID; // Add this

@interface AppDelegate ()
@end

And I think the link error will just go away.

You can also take a look at this post which explain the use of extern very well.

3 questions about extern used in an Objective-C project



Related Topics



Leave a reply



Submit