在尝试构建ABBYY Mobile OCR SDK示例代码时构建错误 [英] Build error while trying to build ABBYY Mobile OCR SDK sample code

查看:201
本文介绍了在尝试构建ABBYY Mobile OCR SDK示例代码时构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已从ABBYY获得试用许可证并获得iPhone试用版SDK。但我无法在我的设备上构建和调试项目。它给出了一个错误:_ OBJC_CLASS _ $ _ CMocrManager,引用自:

I have obtained the trial license from ABBYY and obtained the trial SDK for iPhone. But I can not build and debug the project on my device. It gives an error : "_OBJC_CLASS_$_CMocrManager", referenced from:

应用程序在模拟器中工作正常(样本中提供了一个图像)。

The application works fine in simulator (with one image provided in the sample).

请帮忙,我已附上截图。

Please help, i have attached the screenshot.

推荐答案

我已经联系了abbyy mobile sdk 的技术支持,以下是关于内部版本号的回复:

I have contacted the Tech support of abbyy mobile sdk and following was the response regarding build number:

我发现在Mac OS上无法查看dll库的内部版本号(只能在Windows中看到,我为此带来的不便表示歉意)。

然后关于构建错误,我按照他们提供的说明进行操作:

您使用最新版本的ABBYYМobileOCR引擎,因此问题出在项目设置中。

You use the latest release of ABBYY Мobile OCR Engine, so the issue is in the project settings.

以下是有关如何运行该指令的说明Xcode 4.3,iPhoneSDK 5.1上的iPhone示例。

Below please find the instruction how to run the sample for iPhone on Xcode 4.3, iPhoneSDK 5.1.

当您启动Xcode并打开Sample.private.x时codeproj项目,Xcode显示工作区窗口。工具栏可以快速访问右上角的查看按钮组。单击此处隐藏或显示导航器按钮(或通过主xCode菜单:查看→导航器→显示项目导航器)。

When you launch Xcode and open the "Sample.private.xcodeproj" project, Xcode displays the Workspace window. The toolbar provides quick access to the group of the buttons "View" in the right upper corner. Click here the button "Hide or show the Navigator" (or the same via the main xCode menu: View → Navigators → Show Project Navigator).

项目导航器出现在工作区窗口的左侧,其中包含单个项目Sample.private。

The "Project navigator" appears in the left side of the Workspace window containing the single project "Sample.private".

单击项目导航器中的Sample.private项目图标。面板项目编辑器出现在项目导航器的右侧,显示元素Project→Sample.private和元素Target→Sample。

Click the "Sample.private" project icon in the project navigator. The panel "Project Editor" appears to the right of the project navigator, displaying the element Project → Sample.private and the element Target → Sample.

选择Project→Sample。私有并在选项卡BuildSettings上设置以下设置:

Select Project → Sample.private and set up the following settings on the tab BuildSettings:

•构建设置→结构部分:

• Build Settings → the section Architectures:

基础SDK =最新iOS(iOS 5.1)

Base SDK = "Latest iOS (iOS 5.1)"

仅构建活动架构=是

其余部分架构设置应自动生成:

The rest of Architectures Settings should become automatically:

架构=标准(armv7)

Architectures = Standard (armv7)

支持的平台= iphonesimulator iphoneos

Supported Platforms = iphonesimulator iphoneos

有效架构= armv6 armv7

Valid Architectures = armv6 armv7

•在代码签名部分中指定参数代码签名标识的开发人员许可证。

• Specify the developer license for the parameter Code Signing Identity in the section Code Signing.

•要指定应用程序支持的最低操作系统版本,请在部署部分中设置iOS部署目标。

• To specify which OS version is the minimum that your application will support, set the iOS Deployment Target in the section Deployment.

Sel目标→样本。这里还打开选项卡Build Settings,并且与Project→Sample.private几乎相同:

Select Targets → Sample. Here also open the tab Build Settings and do almost the same as for Project → Sample.private:

•构建设置→结构部分:

• Build Settings → the section Architectures:

仅构建活动架构=是

检查其余架构设置:

Architectures = armv6

Architectures = armv6

Base SDK=最新的iOS(iOS 5.1)

"Base SDK" = "Latest iOS (iOS 5.1)"

支持的平台= iphonesimulator iphoneos

Supported Platforms = iphonesimulator iphoneos

有效架构= armv6

Valid Architectures = armv6

•指定参数代码签名身份的开发人员许可证部分代码签名。

• Specify the developer license for the parameter Code Signing Identity in the section Code Signing.

•要指定应用程序支持的最低操作系统版本,请在部署:

• To specify which OS version is the minimum that your application will support, set the iOS Deployment Target in the section Deployment:

iOS部署目标=规划样本开始的iPhone操作系统版本。

iOS Deployment Target = OS version of iPhone on which the sample start is planned.

然后调整方案Run Sample.app打开默认情况下,从主xCode菜单:产品→编辑方案:

Then adjust the scheme Run Sample.app that opens by default from the main xCode menu: Product → Edit Scheme:

•参数Destination应为iOS Device(如果移动设备目前与计算机断开连接),或者目前应该有与您的计算机连接的设备的名称您将在其上运行该示例。

• the parameter Destination should be iOS Device (in a case if a mobile device is disconnected from the computer at present) or there should be a name of the device connected to your computer at present on which you are going to run the sample.

•将选项卡上的参数Build Configuration更改为iPhone.Debug。

• change the parameter Build Configuration on the tab Info to iPhone.Debug.

现在尝试在设备上启动示例。

Now try to launch the sample on the device.

此外,我们的测试工程师已经注意到您可以看到启动远程程序时出错这样的消息:无法获得xxx的任务。当样本安装在设备上并且在调试模式下不起作用时。在iOS开发人员的不同论坛中详细描述了此问题的解决方案。您可以尝试通过从移动设备删除除开发人员之外的所有配置文件来解决此问题。

Besides, our testing engineers have noticed that you can have a message like "Error launching remote program: failed to get the task for xxx." when the sample is installed on the device and does not work in the debug mode. A solution of this issue is described in details at different forums of iOS developers. You can try to solve this by deleting all provisioning profiles except the developer one from mobile device.

我能够成功构建示例。

And I was able to succesfully build the sample.

感谢nikolay和sharptooth帮助我。

Thanks nikolay and sharptooth for helping me in this.

这篇关于在尝试构建ABBYY Mobile OCR SDK示例代码时构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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