kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.95k stars 473 forks source link

[Linker error] ld: Assertion failed: (_mode == modeFinalAddress) #154

Open dodikk opened 10 years ago

dodikk commented 10 years ago

Steps :

  1. Build a framework
  2. Drag&drop a framework to the application project
  3. Set deployment target to "iOS 7"
  4. Build for simulator

Expected result : Build successful

Actual result :

0  0x104bed724  __assert_rtn + 144
1  0x104c4da0a  ld::Atom::finalAddress() const + 58
2  0x104c498cc  ld::tool::OutputFile::applyFixUps(ld::Internal&, unsigned long long, ld::Atom const*, unsigned char*) + 702
3  0x104c4ad5a  ld::tool::OutputFile::writeAtoms(ld::Internal&, unsigned char*) + 262
4  0x104c47f3b  ld::tool::OutputFile::writeOutputFile(ld::Internal&) + 583
5  0x104c4233b  ld::tool::OutputFile::write(ld::Internal&) + 147
6  0x104bedc6e  main + 1012
7  0x7fff8d09a7e1  start + 0
A linker snapshot was created at:
/tmp/SCContactsTest-2013-09-29-111109.ld-snapshot
ld: Assertion failed: (_mode == modeFinalAddress), function finalAddress, file /SourceCache/ld64/ld64-224.1/src/ld/ld.hpp, line 689.
clang: error: linker command failed with exit code 1 (use -v to see invocation)

screen shot 2013-10-29 at 11 11 21 am

dodikk commented 10 years ago

The issue reproduces with the project below :

https://github.com/Sitecore/sitecore-ios-sdk/tree/sdk1.2/src/lib/SitecoreMobileSDK

https://github.com/Sitecore/sitecore-ios-sdk/issues/20

dodikk commented 10 years ago

Related discussions :

http://stackoverflow.com/questions/11683877/xcode-4-4-clang-error-linker-failed

https://parse.com/questions/parse-building-error-xcode-45