Hi,
When I try to build my unity project to xcode (on yosemite), I always get 10 major errors. This has happened on every iOS project I have tried to build. I have made sure in both unity and xcode that I have selected the correct platform to build to and I have also tried several other solutions that I researched without success. I have also tried building on two different computers with different versions of osx.
The errors:
Ld /Users/Rohan/Library/Developer/Xcode/DerivedData/Unity-iPhone-fjvdkzkdgmrwkxbgtymijtjtngml/Build/Products/ProductName.app/ProductName normal armv7
cd /Users/Rohan/Downloads/specktestdemo2
export IPHONEOS_DEPLOYMENT_TARGET=4.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/Rohan/Library/Developer/Xcode/DerivedData/Unity-iPhone-fjvdkzkdgmrwkxbgtymijtjtngml/Build/Products -L/Users/Rohan/Downloads/specktestdemo2 -L/Users/Rohan/Downloads/specktestdemo2/Libraries -F/Users/Rohan/Library/Developer/Xcode/DerivedData/Unity-iPhone-fjvdkzkdgmrwkxbgtymijtjtngml/Build/Products -filelist /Users/Rohan/Library/Developer/Xcode/DerivedData/Unity-iPhone-fjvdkzkdgmrwkxbgtymijtjtngml/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName.LinkFileList -dead_strip -weak_framework CoreMotion -weak-lSystem -stdlib=libstdc++ -fobjc-link-runtime -miphoneos-version-min=4.0 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2 -liPhone-lib -framework AudioToolbox -framework CFNetwork -framework MediaPlayer -framework CoreLocation -framework SystemConfiguration -weak_framework iAd -framework CoreMedia -framework CoreVideo -weak_framework AVFoundation -framework CoreGraphics -weak_framework CoreMotion -weak_framework GameKit -Xlinker -dependency_info -Xlinker /Users/Rohan/Library/Developer/Xcode/DerivedData/Unity-iPhone-fjvdkzkdgmrwkxbgtymijtjtngml/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName_dependency_info.dat -o /Users/Rohan/Library/Developer/Xcode/DerivedData/Unity-iPhone-fjvdkzkdgmrwkxbgtymijtjtngml/Build/Products/ProductName.app/ProductName
Undefined symbols for architecture armv7:
“_SLServiceTypeTwitter”, referenced from:
-[SocialGate twitterPostWithMedia:media:] in SocialGate.o
-[SocialGate twitterPost:] in SocialGate.o
“_SKStoreProductParameterITunesItemIdentifier”, referenced from:
-[StoreProductView CreateView:products:] in StoreProductView.o
“_SLServiceTypeFacebook”, referenced from:
-[SocialGate fbPost:] in SocialGate.o
-[SocialGate fbPostWithMedia:media:] in SocialGate.o
“OBJC_CLASS_SKProduct", referenced from:
l_OBJC_CATEGORY_SKProduct_LocalizedPrice in SKProduct+LocalizedPrice.o
"_OBJC_CLASS__SKPayment”, referenced from:
objc-class-ref in InAppPurchaseManager.o
“OBJC_CLASS_SLComposeViewController", referenced from:
objc-class-ref in SocialGate.o
"_OBJC_CLASS__SKStoreProductViewController”, referenced from:
objc-class-ref in StoreProductView.o
“OBJC_CLASS_SKProductsRequest", referenced from:
objc-class-ref in InAppPurchaseManager.o
"_OBJC_CLASS__SKPaymentQueue”, referenced from:
objc-class-ref in InAppPurchaseManager.o
objc-class-ref in TransactionServer.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any help would be appreciated 
I also have attached a .zip file containing relevant screenshots.
Thanks!
1820288–116460–Archive.zip (1.13 MB)
Looks like you’re using some twitter/parse library and that hasn’t got an armv7 version.
I am using various assets and plugins, but the only one which I would think may possibly cause this is the ios native asset. However, it is after all designed for use on ios devices so I am unsure why it would cause any problem.
Maybe refer to:
http://stackoverflow.com/questions/6429494/undefined-symbols-for-architecture-armv7
It’s got pretty detailed steps for how you can fix your Xcode project. It’s not a Unity problem.
Right, so from what I have understood so far (I’m not too competent with stuff like this :P) I add the Twitter.framework to the link Binary with Libraries drop down. However, I still get 10 errors?
Also, how do I know which libraries to add (for solution 1 in the link) from the errors that are generated?
Thanks for the help so far 
Rather than waiting 3 days and then typing exactly 4 letters it’s considered more professional to make a post that says “I didn’t get any reply, so have tried the following things … to solve my problem. I still have problems, can some-one help.” I suspect the reason that no-one on the Unity forum has replied is because you’re problem isn’t obviously a Unity one, and you’re talking about plugins that maybe don’t work with Unity, or there are posts on the forum of the people who made the plugin.
So, to help move you forward, let’s try the following.
a) Start a new Unity project. Don’t bother trying to write any code or add anything particular. Perhaps add a cube game object, and position the camera to look at it.
b) Set the build target to iOS and make a build. (Don’t build and run).
c) Once the build has completed, open the Xcode project in Xcode.
d) Make a build in Xcode.
==> Post any errors that this simple process creates, assuming you have errors.
e) Run the game on the device.
==> This should show that you can successfully build a Unity project, meaning, you have a working Unity, Xcode and iOS SDK install.
Assuming you get a working build, then provide step-by-step instructions for what you are doing. For example, I have no idea what bundle you are using, or where you got it from. _SLServiceTypeTwitter seems to give hits at parse, but Twitter.framework I can’t easily find. If I could trivially find these things, I’d drop them into Xcode and see what happens.
Hi,
First and foremost I would like to express my apologies for not explaining my problem enough and for being rather brief in my “bump” response. I will try to take a more professional and helpful approach in the future. Also, it seems that I was a bit careless when asking my initial question as I assumed that you would be able to understand my problem (since quite honestly I don’t understand a word of what the errors mean and how I would approach them. I am very much a beginner in Unity and Xcode), so sorry for that as well.
Following the instructions that you provided, the demo project built fine on my device, so I assume it is a set of errors specific to my project setup. I am going to try and recreate my project from scratch to see if I can narrow down whether the errors are being caused by a particular asset. Also, regarding your request for step-by-step instructions, would you like the process of how I made my project or how I tried to build it.
More specifically on the nature of the errors, are they due to missing frameworks that I used in my project? (As I mentioned earlier, I am not very familiar with Unity/Xcode).
Thanks again for the help and, once again, sorry for my response earlier.
Well, if you want me to help you, I’ll need to know more about the plugins/bundles you are using. The errors are basically saying the bundles you are using are not compatible with the Armv7 architecture, which might mean they are for Armv6, or possibly for Armv8 (64-bit).
Ok,
I have a very brief knowledge on what bundles are, but I’m not too sure how I would find which ones I am using. As for the assets/plugins that I am using:
- IOS native
- iTween
- InputTouches
- 2D Toolkit
- Vectrosity
I have recreated my project (its pretty simple as far as unity projects go) without importing any unnecessary/unused assets and I still get the same errors. The list of plugins I posted above are the only ones I’m using, so would it possibly be one of those which is causing the errors?