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

查看:32
本文介绍了尝试构建 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 Мobile OCR 引擎,因此问题出在项目设置中.

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.xcodeproj"项目时,Xcode 会显示 Workspace 窗口.工具栏提供对右上角查看"按钮组的快速访问.单击此处的隐藏或显示导航器"按钮(或通过 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.private 并在 BuildSettings 选项卡上设置以下设置:

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

• 构建设置 → 架构部分:

• Build Settings → the section Architectures:

Base SDK = "最新 iOS (iOS 5.1)"

Base SDK = "Latest iOS (iOS 5.1)"

仅构建活动架构 = 是

Build Active Architecture Only = Yes

架构设置的其余部分应自动变为:

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.

选择目标 → 样本.这里还打开选项卡 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:

仅构建活动架构 = 是

Build Active Architecture Only = Yes

检查其余的架构设置:

架构 = 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.

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

• 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.

然后调整从 xCode 主菜单默认打开的方案运行 Sample.app:产品 → 编辑方案:

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

• 参数Destination 应该是iOS 设备(如果移动设备当前与计算机断开连接)或者应该有当前连接到您的计算机的设备的名称,您将在该设备上运行样本.

• 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.

• 将 Info 选项卡上的 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.

我能够成功构建示例.

感谢 nikolay 和 sharptooth 在这方面帮助我.

Thanks nikolay and sharptooth for helping me in this.

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

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