Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Three20 linking error on iPhone simulator

After following all the instructions on http://three20.info/setup/existing to integrate three20 library into my project. I'm getting this linking error:

duplicate symbol _TTCreateNonRetainingArray in /test XYZ Photos App/Three20/Build/Products/Debug-iphonesimulator/libThree20Core.a(TTGlobalCore.o) and /test XYZ Photos App/Three20/Build/Products/Debug-iphonesimulator/libThree20.a(TTGlobalCore.o)

What can I try to resolve this?

like image 369
neha Avatar asked Dec 14 '25 09:12

neha


2 Answers

Ok, after hours of figuring, I was able to solve this.. The answer is Three20 won't compile if your project is inside any parent folder with a space character.

like image 56
neha Avatar answered Dec 17 '25 00:12

neha


I still had the same problem even after removing spaces in parent folder names (and deleting build cache, etc.), this is what worked for me (see https://github.com/facebook/three20/issues/issue/210/#issue/210/comment/526603):

In three20 install instructions step "2. Locate the "Three20.xcodeproj" file under "three20/src/Three20/" when I created a "Folder Reference" instead of a group reference, it worked. For the subsequent Xcode projects that get added, the "Folder Reference" radio was grayed out, but they all added properly and it worked after that (note that I had to re-do the subsequent step of adding Direct Dependencies to the targets).

like image 31
jcypher Avatar answered Dec 16 '25 23:12

jcypher