在Xcode 4.6.x中使用静态库,即Koamtac iOS SDK集成 [英] Using Static Library in Xcode 4.6.x i.e. Koamtac iOS SDK Integration

查看:110
本文介绍了在Xcode 4.6.x中使用静态库,即Koamtac iOS SDK集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我要使用的Koamtac iOS SDK的链接:

Here's a link to the Koamtac iOS SDK that i'm trying to use: Koamtac iOS SDK. It includes a static library along with some sample code.

背景

我正在使用需要批量条形码导入功能的iPhone应用程序,使用 KDC扫描仪设备. iPhone应用程序基于ARC,并使用标准(armv7,armv7s)体系结构构建.

I'm working on an iPhone application that requires a batch barcode import functionality, using KDC scanner device. The iPhone application is ARC based, and is built using Standard (armv7, armv7s) architecture.

问题

我能够运行KTDemo应用程序(随SDK提供).但是,我在自己的应用程序中很难设置SDK,因此我可以通过KScan包装器类(由Koamtac编写)使用iKEA库(libiKEA.a).他们的编程指南中提到的步骤看起来过时了.

I was able to run the KTDemo application (provided with the SDK). However, I'm having a difficult time setting-up the SDK in my own application -- so that I can use iKEA library (libiKEA.a) via KScan wrapper class (written by Koamtac). The steps mentioned in their programming guide look obsolete.

有人可以帮助我在项目中设置SDK吗? -也就是说,将静态库(libiKEA.a)以及包装器类添加到我的iOS应用程序项目中.

Can anyone help me setup the SDK in my project? -- That is, add the static library (libiKEA.a) along with the wrapper classes inside my iOS application project.

更具体的问题描述

如果我尝试在项目中添加静态库,则会收到以下警告:

If I try to add a static library in my project, I get the following warning:

ld:警告:忽略文件/Users/gm/Desktop/KDC SDK/Lib/Debug-iphonesimulator/libiKEA.a,已建立文件以供存档 这不是要链接的架构(armv7): /Users/gm/Desktop/KDC SDK/Lib/Debug-iphonesimulator/libiKEA.a

ld: warning: ignoring file /Users/gm/Desktop/KDC SDK/Lib/Debug-iphonesimulator/libiKEA.a, file was built for archive which is not the architecture being linked (armv7): /Users/gm/Desktop/KDC SDK/Lib/Debug-iphonesimulator/libiKEA.a

但是,KTDemo源代码没有该问题.我想念什么?

However, the KTDemo source-code doesn't have that issue. What am I missing?

推荐答案

如果打开包含iKEA库的文件夹,则在父文件夹中查找,您将看到Simulator和Device的不同选项.添加设备的库,它将起作用.

If you open the folder that contains the iKEA library, then look in the parent folder you'll see different options for Simulator and Device. Add the library for the device and it will work.

这篇关于在Xcode 4.6.x中使用静态库,即Koamtac iOS SDK集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆