card.io will not compile on 64bit iPhone 5s armv7s - ios7

I'm having trouble compiling card.io on an iPhone 5s in 64bit mode (armv7s). It will compile on the simulator just finw. I am using Xcode 5.
Here is my error message:
Undefined symbols for architecture armv7s:
"_CMSampleBufferGetImageBuffer", referenced from:
-[CardIOVideoFrame process] in libCardIO.a(CardIOVideoFrame.o)
"_CMGetAttachment", referenced from:
-[CardIOVideoStream captureOutput:didOutputSampleBuffer:fromConnection:] in libCardIO.a(CardIOVideoStream.o)
ld: symbol(s) not found for architecture armv7s

Although, as #tomwhipple implied, you'll eventually run into other problems if you try to incorporate the current version of card.io into a 64-bit app, the particular error message you're getting now is due to something else.
Specifically, you must include the CoreMedia framework in your app's project.
See https://github.com/card-io/card.io-iOS-SDK for a complete list of the frameworks that you need to include.

A 64 bit version of card.io is under development, but not yet released. We'll update this Github issue when it's ready.

Related

XCode 6 and iOS 8 - Google APIs Client Library for Objective-C linker error

After upgrading XCode from 5.1.1 to 6.0 cannot compile my project - get linker errors:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_GTLDrivePermissionId", referenced from:
objc-class-ref in GTLDrive_Sources.o
"_OBJC_CLASS_$_GTLDriveChannel", referenced from:
objc-class-ref in GTLDrive_Sources.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does anyone know how to fix it?
Try this. It works for me after upgrading the AdMob SDK.
Following the SDK Release Notes you have to link two additional Frameworks:
https://developers.google.com/mobile-ads-sdk/docs/admob/ios/rel-notes
Official release for iOS 8 support.
Ad loading takes less time on the main thread on iOS 8.
Smart Banner ads are correctly displayed in landscape on iOS 8.
Requires linking against two new frameworks: EventKit and EventKitUI. These are auto-linked if modules and auto-linking frameworks are enabled.
Deprecated mediatedAdView property on GADBannerView.
Removed the previously deprecated loadAndDisplayRequest:usingWindow:initialImage: method on GADInterstitial.

Reference/Linker errors in Archiving App Xcode

I'm trying to archive my app in Xcode, and had a bunch of problems. After fixing the major ones, I'm having another couple errors. This one, I'm very much confused. I'm using the NMSSSH library in my app, and it works perfectly fine on iOS devices, as well as the simulator. However, when I try and archive it, I get the error saying:
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_NMSSHSession", referenced from:
objc-class-ref in UserPi.o
ld: symbol(s) not found for architecture armv7s
Any ideas on what the issue could be? These are the #imports of the file it's talking about.
#import <Foundation/Foundation.h>
#import <NMSSH/NMSSH.h>
#import "ConnectionViewController.h"
My guess is that there is a mismatch in build architectures:
Your project is being built for the armv7s architecture
But the NMSSSH library has not been build for armv7s
You need to make sure that the library and your project use the same architecture settings, so either 1) remove armv7s from your project, or 2) add armv7s to the NMSSSH library build. Solution 2 of course only works if you are building NMSSSH yourself from source.
To change the architecture of a project
In Xcode in the Project navigator (left-hand side of the Xcode window), select your project
In the Standard editor (middle section of the Xcode window), select your project
Select the "Build settings" tab
You should now see a section titled "Architectures", and a build setting labelled "Architectures". The build setting is what you need to change.
To find out more about this issue try to google for "Undefined symbols for architecture armv7s" (have you tried that before?). There are also lots of questions on Stack Overflow on this issue, e.g. this one. Good luck.

Error in Archiving the app after updating xcode to 4.5

before updating the archiving process work good but after updating when i archiving the app it gives a linker error to TestFlight Library error is:-
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/dhirajchoudhary/Documents/MyWorldOfExpo/HRWeekIndia/TestFlightSDK1.0/libTestFlight.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is any one know how to link the testflight library in Xcode 4.5, iOS 6.0
It's pretty much exactly what the error message says: your app supports multiple architectures, including armv7s. You're trying to link with the TestFlightSDK which doesn't include the armv7s architecture.
You need to either:
Use a newer version of the TestFlight SDK which includes the new armv7s architecture. I'm not sure if this exists yet
Remove the armv7s architecture from your application. It should still work on the iPhone 5 (which is the only device to use armv7s currently) but you would need to test
You need to install Test Flight SDK 1.1, which with support for arm7

clang error is coming on runtime

I am working on app and suddenly prefix.pch file deleted automatically and
this error comes:Command /Volumes/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
i havn't found any working answer in google search.
Please help me out
It looks like the problem had to do with the Architecture settings on my sub projects. Xcode 4.2 changes the default Architecture to just armv7 instead of both armv6 and armv7. I had updated my main project to armv6 and armv7, but the sub-projects were still only using armv7. Once I updated all of the sub-projects then it started linking properly.

Trying to hack the AWS IOS SDK so that it works for OSX. I get this error

I've removed the import of the UIKit framework, and now I get this error. Do I have to somehow recompile the framework? It's not really giving me anything to go on...
And if it means anything, I am able to run the SDK examples in IOS so there aren't any system requirements that I'm not meeting.
ld: warning: ignoring file /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks//AWSiOSSDK.framework/AWSiOSSDK, missing required architecture x86_64 in file
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AmazonS3Client", referenced from:
objc-class-ref in Constants.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You can't just use the .framework provided by Amazon, because the binary is only for iOS. You need to rebuild the framework from the source, which thankfully comes in the SDK.
I created a XCode project with the source from the iOS SDK that appears to work. I have only tested some of the rudimentary S3 code but since it works in iOS, presumably, and I am able to communicate with S3, I think it should be good for all the services it supports.
https://bitbucket.org/danap/osx-aws-toolkit
Please feel free to fork and submit pull requests with changes.
I've created a fork of the AWS iOS SDK which can be built and used for Mac OS X development. Check it out: https://github.com/amberdixon/aws-sdk-ios. In the readme, I've included instructions on how to build the Mac OS X-compatible version of the AWS iOS SDK framework, which you can import into your OS X projects.