Using Static Library in Xcode 4.6.x i.e. Koamtac iOS SDK Integration

寵の児 提交于 2019-12-13 04:39:21

问题


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.

Background

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.

Problem

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.

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.

More Specific Problem Description

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

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

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


回答1:


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.



来源:https://stackoverflow.com/questions/17673981/using-static-library-in-xcode-4-6-x-i-e-koamtac-ios-sdk-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!