4

I've started using Stackmob. I follow the instructions provided and add stackmob to my project, then turn off all of the ARC on those files added, and then I get the linker error.

"clang: error: linker command failed with exit code 1 (use -v to see invocation)"

Anyone came across the same issue? Once I remove stackmob from the project it compiles again.

Andrius Steponavičius
  • 8,074
  • 3
  • 22
  • 25
  • 1
    It should have more precise errors above it or in the build log. – Daniel Jul 26 '12 at 17:52
  • There are a host of reasons that the linker could have failed. Add some detail. It might be that the libs aren't compatible with your hardware (written for armv7 and running on sim, for example). All guesswork without additional info. – Dustin Jul 26 '12 at 17:55
  • ld: duplicate symbol _main in /Users/andriusste/Library/Developer/Xcode/DerivedData/ProjectPlannerPreRelease-durchbmgmfyjacbdhdlvdgcwrtwq/Build/Intermediates/ProjectPlannerPreRelease.build/Debug-iphoneos/ProjectPlannerPreRelease.build/Objects-normal/armv7/main-B1812428DCF39438.o and /Users/andriusste/Library/Developer/Xcode/DerivedData/ProjectPlannerPreRelease-durchbmgmfyjacbdhdlvdgcwrtwq/Build/Intermediates/ProjectPlannerPreRelease.build/Debug-iphoneos/ProjectPlannerPreRelease.build/Objects-normal/armv7/main-54A21E53FF3D6645.o for architecture armv7 – Andrius Steponavičius Jul 26 '12 at 17:56
  • Ok, I've created completely new project with ARC enabled, added stackmob, switched off ARC for stackmob files, then added SenTestingKit framework, because it was required. Tried to compile it and still got the same error. I remove the stackmob compiles again. – Andrius Steponavičius Jul 26 '12 at 18:07

1 Answers1

5

Try the Cocoapods installation method... shouldn't get those linker errors that way.

msv
  • 163
  • 3