Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ld: warning: unexpected srelocation type 9 while building in xcode

Tags:

xcode

iphone

Hi I get around 7000 such warnings in the link stage of building my app for distribution

ld: warning: unexpected srelocation type 9

Any idea what this is and how I can fix it?

EDIT:

These warnings come during the link stage of 'armv7' only when building for distribution, and I also get the following warning

warning: all apps should include an armv7 architecture (current ARCHS = "armv6").

I have checked that armv7 is included in valid architectures" for both debug and distribution configuration.

like image 778
Anand Avatar asked Oct 19 '11 14:10

Anand


2 Answers

Please check the following settings in your apps :

In the Info.plist. Check for "Required device capabilities" info, and look the data inside. You should have 2 items (NSArray) : armv6 and armv7

like image 83
Niko Avatar answered Nov 14 '22 01:11

Niko


Try setting "Enable Linking With Shared Libraries" under Build Settings to NO

like image 42
Gabriel Avatar answered Nov 14 '22 01:11

Gabriel