iOS-Universal-Framework
iOS-Universal-Framework copied to clipboard
[Linker error] ld: Assertion failed: (_mode == modeFinalAddress)
Steps :
- Build a framework
- Drag&drop a framework to the application project
- Set deployment target to "iOS 7"
- 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)
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
Related discussions :
http://stackoverflow.com/questions/11683877/xcode-4-4-clang-error-linker-failed
https://parse.com/questions/parse-building-error-xcode-45