• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
linker assertion failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

linker assertion failure


  • Subject: linker assertion failure
  • From: Rick Mann <email@hidden>
  • Date: Wed, 03 Oct 2012 16:36:57 -0700

I'm compiling a project generated by Unity3D for a client. The simulator version of the build (unfortunately you have to ask Unity to generate a separate project for i386) won't link in Xcode. It causes the linker to fail with an assertion:

Ld /Users/me/Library/Developer/Xcode/DerivedData/Unity-iPhone-fgrirpmdilbftognbckjqavskkpr/Build/Products/ClientViewer.app/ClientViewer normal i386
    cd "/Users/me/Projects/Clients/Client/iOS builds/Unity-iOS-NoModel-Simulator"
    setenv IPHONEOS_DEPLOYMENT_TARGET 3.1.3
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -L/Users/me/Library/Developer/Xcode/DerivedData/Unity-iPhone-fgrirpmdilbftognbckjqavskkpr/Build/Products "-L/Users/me/Projects/Clients/Client/iOS builds/Unity-iOS-NoModel-Simulator" "-L/Users/me/Projects/Clients/Client/iOS builds/Unity-iOS-NoModel-Simulator/Libraries" -F/Users/me/Library/Developer/Xcode/DerivedData/Unity-iPhone-fgrirpmdilbftognbckjqavskkpr/Build/Products -filelist /Users/me/Library/Developer/Xcode/DerivedData/Unity-iPhone-fgrirpmdilbftognbckjqavskkpr/Build/Intermediates/Unity-iPhone.build/Debug-iphonesimulator/Unity-iPhone.build/Objects-normal/i386/ClientViewer.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -all_load -weak_framework CoreMotion -weak-lSystem -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=3.1.3 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2 -liPhone-lib -framework AudioToolbox -framework CFNetwork -framework MediaPlayer -framework CoreLocation -framework SystemConfiguration -weak_framework iAd -framework CoreMedia -framework CoreVideo -weak_framework AVFoundation -framework CoreGraphics -weak_framework CoreMotion -weak_framework GameKit -o /Users/me/Library/Developer/Xcode/DerivedData/Unity-iPhone-fgrirpmdilbftognbckjqavskkpr/Build/Products/ClientViewer.app/ClientViewer

0  0x1004731c0  __assert_rtn + 144
1  0x100477252  mach_o::relocatable::Section<x86>::addRelocFixup(mach_o::relocatable::Parser<x86>&, macho_relocation_info<Pointer32<LittleEndian> > const*) + 2450
2  0x10048aeef  mach_o::relocatable::Section<x86>::makeFixups(mach_o::relocatable::Parser<x86>&, mach_o::relocatable::Parser<x86>::CFI_CU_InfoArrays const&) + 95
3  0x10048680f  mach_o::relocatable::Parser<x86>::parse(mach_o::relocatable::ParserOptions const&) + 2031
4  0x10047c4ab  mach_o::relocatable::Parser<x86>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 315
5  0x100478940  mach_o::relocatable::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 128
6  0x1004a0f1b  archive::File<x86>::makeObjectFileForMember(archive::File<x86>::Entry const*) const + 1227
7  0x1004a03a6  archive::File<x86>::forEachAtom(ld::File::AtomHandler&) const + 198
8  0x1004b5f08  ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&) + 216
9  0x1004c0abc  ld::tool::Resolver::resolve() + 204
10  0x100473589  main + 585
11  0x100462104  start + 52
A linker snapshot was created at:
	/tmp/ClientViewer-2012-09-03-162125.ld-snapshot
ld: Assertion failed: (src.atom != NULL), function addRelocFixup, file /SourceCache/ld64/ld64-134.9/src/ld/parsers/macho_relocatable_file.cpp, line 5455.
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Is there anything I can do to work around this?

Thanks!

--
Rick




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
  • Next by Date: Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
  • Previous by thread: Re: git rebase corrupts Xcode projects
  • Next by thread: Re: Xcode 4.5 keeps re-downloading and never finishes the install
  • Index(es):
    • Date
    • Thread