Xcode - Importing STTwitter causes Apple Mach-O Linker Error - ios

Exactly what it says on the title. I've downloaded the STTwitter API several times making sure nothing went wrong with my download. I ran my project before importing the library and it runs fine.
I know there is nothing wrong with the STTwitter library because I used it in several projects, but it won't let me create another project with the import.
Ld /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Products/Debug-iphonesimulator/JesusWalk.app/JesusWalk normal i386
cd /Users/michaelvillar/Desktop/JesusWalk
export IPHONEOS_DEPLOYMENT_TARGET=8.3
export 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/iPhoneSimulator8.3.sdk -L/Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Products/Debug-iphonesimulator -F/Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Products/Debug-iphonesimulator -filelist /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/JesusWalk.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.3 -framework Foundation -framework UIKit -framework CoreGraphics -Xlinker -dependency_info -Xlinker /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/JesusWalk_dependency_info.dat -o /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Products/Debug-iphonesimulator/JesusWalk.app/JesusWalk
duplicate symbol _STTwitterOSErrorCode in:
/Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/STTwitterOS.o
/Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/STTwitterAPI.o
duplicate symbol _STTwitterAppOnlyErrorCode in:
/Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/STTwitterAPI.o
/Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/STTwitterAppOnly.o
duplicate symbol _STTwitterOAuthErrorCode in:
/Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/STTwitterAPI.o
/Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/STTwitterOAuth.o
ld: 3 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please, if anyone knows something about importing the library, let me know :)

This pull request may fix the issue: https://github.com/nst/STTwitter/pull/189
Please checkout the very latest version from head.

Related

XCode Compile Error errno=22

All,
I am having trouble compiling an old project I saved to dropbox, and then downloaded to my computer after a hard drive wipe. I believe I have installed all appropriate frameworks again, but am met with the following error:
Ld /Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Products/Debug-iphonesimulator/RMAPS\ FireTests.xctest/RMAPS\ FireTests normal x86_64
cd "/Users/jclark/Desktop/RMAPS Fire v.1"
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export 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 x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk -L/Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Products/Debug-iphonesimulator -F/Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/Developer/Library/Frameworks -filelist /Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Intermediates/RMAPS\ Fire.build/Debug-iphonesimulator/RMAPS\ FireTests.build/Objects-normal/x86_64/RMAPS\ FireTests.LinkFileList -bundle_loader /Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Products/Debug-iphonesimulator/RMAPS\ Fire.app -Xlinker -objc_abi_version -Xlinker 2 -framework XCTest -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Intermediates/RMAPS\ Fire.build/Debug-iphonesimulator/RMAPS\ FireTests.build/Objects-normal/x86_64/RMAPS\ FireTests_dependency_info.dat -o /Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Products/Debug-iphonesimulator/RMAPS\ FireTests.xctest/RMAPS\ FireTests
ld: can't map file, errno=22 file'/Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Products/Debug-iphonesimulator/RMAPS Fire.app' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have checked that this is an appropriate path and have search the site and found similar errors but cannot seem to resolve this one on my own. Any help is appreciated.
XCode version 6.2 (using Mavericks)

Apple Mach-O Linked Error

Hi i all i found a lot of answer but didn't get the solution. Here i am posting my error that i am getting. Please help me get rid of this.
Ld /Users/Rupesh/Library/Developer/Xcode/DerivedData/JEDI-fptiyjulpownybgfqknfffphqrvl/Build/Products/Debug-iphonesimulator/JEDI.app/JEDI normal i386
cd /Applications/XAMPP/xamppfiles/htdocs/bsharp/sites/default/iOS_Development/JEDI
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export 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/iPhoneSimulator8.0.sdk -L/Users/Rupesh/Library/Developer/Xcode/DerivedData/JEDI-fptiyjulpownybgfqknfffphqrvl/Build/Products/Debug-iphonesimulator -F/Users/Rupesh/Library/Developer/Xcode/DerivedData/JEDI-fptiyjulpownybgfqknfffphqrvl/Build/Products/Debug-iphonesimulator -filelist /Users/Rupesh/Library/Developer/Xcode/DerivedData/JEDI-fptiyjulpownybgfqknfffphqrvl/Build/Intermediates/JEDI.build/Debug-iphonesimulator/JEDI.build/Objects-normal/i386/JEDI.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -Xlinker -dependency_info -Xlinker /Users/Rupesh/Library/Developer/Xcode/DerivedData/JEDI-fptiyjulpownybgfqknfffphqrvl/Build/Intermediates/JEDI.build/Debug-iphonesimulator/JEDI.build/Objects-normal/i386/JEDI_dependency_info.dat -o /Users/Rupesh/Library/Developer/Xcode/DerivedData/JEDI-fptiyjulpownybgfqknfffphqrvl/Build/Products/Debug-iphonesimulator/JEDI.app/JEDI
duplicate symbol _IS_ALREADY_LOGIN in:
/Users/Rupesh/Library/Developer/Xcode/DerivedData/JEDI-fptiyjulpownybgfqknfffphqrvl/Build/Intermediates/JEDI.build/Debug-iphonesimulator/JEDI.build/Objects-normal/i386/CustomCell.o
/Users/Rupesh/Library/Developer/Xcode/DerivedData/JEDI-fptiyjulpownybgfqknfffphqrvl/Build/Intermediates/JEDI.build/Debug-iphonesimulator/JEDI.build/Objects-normal/i386/ViewController.o
duplicate symbol _TRUE_CHECK in:
/Users/Rupesh/Library/Developer/Xcode/DerivedData/JEDI-fptiyjulpownybgfqknfffphqrvl/Build/Intermediates/JEDI.build/Debug-iphonesimulator/JEDI.build/Objects-normal/i386/CustomCell.o
/Users/Rupesh/Library/Developer/Xcode/DerivedData/JEDI-fptiyjulpownybgfqknfffphqrvl/Build/Intermediates/JEDI.build/Debug-iphonesimulator/JEDI.build/Objects-normal/i386/ViewController.o
duplicate symbol _FONT_NAME in:
/Users/Rupesh/Library/Developer/Xcode/DerivedData/JEDI-fptiyjulpownybgfqknfffphqrvl/Build/Intermediates/JEDI.build/Debug-iphonesimulator/JEDI.build/Objects-normal/i386/CustomCell.o
/Users/Rupesh/Library/Developer/Xcode/DerivedData/JEDI-fptiyjulpownybgfqknfffphqrvl/Build/Intermediates/JEDI.build/Debug-iphonesimulator/JEDI.build/Objects-normal/i386/ViewController.o
ld: 3 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Your project contains duplicate symbols which means you're trying to compile two identical files which contain the implementation for the same class. Check your project files and eliminate any duplicate .m files (like CustomCell and ViewController)
Maybe _IS_ALREADY_LOGIN, _TRUE_CHECK etc is defined more than once in CustomCell.h/m and ViewController.h/m?

Error while build an app in Xcode 6

I'm having some trouble to deploy my app on my device. The code works fine with the iOS simulator, but when I try to run it on my iOS device it shows the following error:
Ld /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Intermediates/App.build/Debug-iphoneos/AppTests.build/Objects-normal/arm64/AppTests normal arm64
cd "/Users/user/Documents/Demo app/App"
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 arm64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Products/Debug-iphoneos -F/Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Products/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/Developer/Library/Frameworks -filelist /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Intermediates/App.build/Debug-iphoneos/AppTests.build/Objects-normal/arm64/AppTests.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -dead_strip -bundle_loader /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Products/Debug-iphoneos/App.app/App -framework XCTest -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=8.0 -Xlinker -dependency_info -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Intermediates/App.build/Debug-iphoneos/AppTests.build/Objects-normal/arm64/AppTests_dependency_info.dat -o /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Intermediates/App.build/Debug-iphoneos/AppTests.build/Objects-normal
ld: file not found: /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Products/Debug-iphoneos/App.app/App
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I can't understand what's wrong with my app. I searched on the web to try to understand what's wrong and I found the following solution:
Check if I import .h files and not .m files --> In my app all ok
Check the correct Framework --> In my app I use only the default Framework, so no problem
Check the Library search path --> In my app there are no problem about this
So what's the problem? Can you help me to fix it?

ld: 35 duplicate symbols for architecture i386 using Cocoapods

I just started using cocoapods and can't figure out what the heck is going on. I've installed a library for a ViewController and keep getting the following errors:
Ld /Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Products/Debug-iphonesimulator/AMSlideMenu.app/AMSlideMenu normal i386
cd "/Users/dominikandrzejczuk/AMSlideMenu/AMSlideMenuDemo-with Storyboard"
export IPHONEOS_DEPLOYMENT_TARGET=6.0
export 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/iPhoneSimulator7.1.sdk -L/Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Products/Debug-iphonesimulator -F/Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Products/Debug-iphonesimulator -filelist /Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Intermediates/AMSlideMenu.build/Debug-iphonesimulator/AMSlideMenu.build/Objects-normal/i386/AMSlideMenu.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework CoreGraphics -framework UIKit -framework Foundation -lPods-AMSlideMenu -Xlinker -dependency_info -Xlinker /Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Intermediates/AMSlideMenu.build/Debug-iphonesimulator/AMSlideMenu.build/Objects-normal/i386/AMSlideMenu_dependency_info.dat -o /Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Products/Debug-iphonesimulator/AMSlideMenu.app/AMSlideMenu
duplicate symbol _OBJC_METACLASS_$_AMSlideMenuContentSegue in:
/Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Intermediates/AMSlideMenu.build/Debug-iphonesimulator/AMSlideMenu.build/Objects-normal/i386/AMSlideMenuContentSegue.o
/Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Products/Debug-iphonesimulator/libPods-AMSlideMenu.a(AMSlideMenuContentSegue.o)
ld: 35 duplicate symbols for architecture i386
wclang: error: linker command failed with exit code 1 (use -v to see invocation)
I've tried removing the Library path in build settings, I've tried reinstalling a pod install and pretty much every other option recommended on the web.
I have no idea where to go from here...

Apple Mach O Linker Error

Hope you guys know how to fix this one. I probably just need to add a framework to the link binary but I can't really find which one to add.
Ld
/Users/Chrismac/Library/Developer/Xcode/DerivedData/Sum-cyzxwtuyfesisgfvermcafpbmtgv/Build/Products/Debug-iphonesimulator/Sum.app/Sum
normal i386
cd /Users/Chrismac/Documents/Sum
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export 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/iPhoneSimulator7.1.sdk
-L/Users/Chrismac/Library/Developer/Xcode/DerivedData/Sum-cyzxwtuyfesisgfvermcafpbmtgv/Build/Products/Debug-iphonesimulator
-F/Users/Chrismac/Library/Developer/Xcode/DerivedData/Sum-cyzxwtuyfesisgfvermcafpbmtgv/Build/Products/Debug-iphonesimulator
-filelist /Users/Chrismac/Library/Developer/Xcode/DerivedData/Sum-cyzxwtuyfesisgfvermcafpbmtgv/Build/Intermediates/Sum.build/Debug-iphonesimulator/Sum.build/Objects-normal/i386/Sum.LinkFileList
-Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/Chrismac/Library/Developer/Xcode/DerivedData/Sum-cyzxwtuyfesisgfvermcafpbmtgv/Build/Intermediates/Sum.build/Debug-iphonesimulator/Sum.build/Objects-normal/i386/Sum_dependency_info.dat -o /Users/Chrismac/Library/Developer/Xcode/DerivedData/Sum-cyzxwtuyfesisgfvermcafpbmtgv/Build/Products/Debug-iphonesimulator/Sum.app/Sum
duplicate symbol _PressIt in:
/Users/Chrismac/Library/Developer/Xcode/DerivedData/Sum-cyzxwtuyfesisgfvermcafpbmtgv/Build/Intermediates/Sum.build/Debug-iphonesimulator/Sum.build/Objects-normal/i386/SecondViewController.o
/Users/Chrismac/Library/Developer/Xcode/DerivedData/Sum-cyzxwtuyfesisgfvermcafpbmtgv/Build/Intermediates/Sum.build/Debug-iphonesimulator/Sum.build/Objects-normal/i386/FirstViewController.o
duplicate symbol _push in:
/Users/Chrismac/Library/Developer/Xcode/DerivedData/Sum-cyzxwtuyfesisgfvermcafpbmtgv/Build/Intermediates/Sum.build/Debug-iphonesimulator/Sum.build/Objects-normal/i386/SecondViewController.o
/Users/Chrismac/Library/Developer/Xcode/DerivedData/Sum-cyzxwtuyfesisgfvermcafpbmtgv/Build/Intermediates/Sum.build/Debug-iphonesimulator/Sum.build/Objects-normal/i386/FirstViewController.o
duplicate symbol _savedData in:
/Users/Chrismac/Library/Developer/Xcode/DerivedData/Sum-cyzxwtuyfesisgfvermcafpbmtgv/Build/Intermediates/Sum.build/Debug-iphonesimulator/Sum.build/Objects-normal/i386/SecondViewController.o
/Users/Chrismac/Library/Developer/Xcode/DerivedData/Sum-cyzxwtuyfesisgfvermcafpbmtgv/Build/Intermediates/Sum.build/Debug-iphonesimulator/Sum.build/Objects-normal/i386/FirstViewController.o
ld: 3 duplicate symbols for architecture i386 clang: error: linker
command failed with exit code 1 (use -v to see invocation)
You aren't missing a lib but you have 2 C functions called Pressit, Push and SavedData that conflict!
The duplicated symbols are in FirstViewController & SecondViewController.
Solution:
Don't implement the same functions twice:
If they are equal, move them to a third file and include them only.
If they differ, rename them.
I guess, you might have implemented FirstViewController three times in your project.
Search for FirstViewController throughout out the project and keep only one FirstViewController for project.

Resources