Tag: ibm mobilefirst

Xcode 8:链接器命令失败,退出代码1(使用-v来查看调用)

我正在Worklight上开发一个混合应用程序。 从Xcode 7.3.1升级之后。 到Xcode 8,当试图生成XCarchive或Build并在模拟器上运行应用程序时,我开始收到以下错误消息。 MobileFirst Platform 6.3.0 使用的configuration: 体系结构: 标准体系结构(armv7,arm64) – $(ARCHS_STANDARD) 有效的体系结构: armv7,armv7s,arm64 来自Xcode的错误日志: ld: warning: directory not found for option '-L"/Users/hjimenez/Documents/eclipseKepler – Build 3.1.0/ITS/apps/ITS/iphone/native/WorklightSDK"' ld: warning: directory not found for option '-L"/Users/hjimenez/Documents/eclipseKepler – Build 3.1.0/ITS/apps/ITS/iphone/native/Tealeaf"' ld: library not found for -lWorklightStaticLibProject clang: error: linker command failed with exit code 1 (use -v […]

IBM Worklight:推送通知和徽章

在testingAndroid的Worklight推送通知时,如果警报(通知消息)为空,则具有应用程序名称的应用程序图标将显示在通知栏中,而不会显示任何通知消息。 如果iOS中的alert是空的,我可以知道Worklight如何处理这种情况吗? 会提示通知警报吗? 之所以这么问,是因为即使应用程序已closures,但如果服务器有更新,我只想更新徽章号码而不启动警告框。 我可否知道推送通知中的徽章是否适用于iOS,但不适用于Android? 正如这里的文件所说的那样: “GCM警报可选,要显示在警报中的string,” badge Mandatory “ ,应用程序图标上的徽章中显示的整数值。 ”但在我的testing中,Android应用程序没有显示徽章。 请注意,有一个API来设置徽章的数量(WL.Badge.setNumber),或者我可以在推送通知API(WL.Server.Notifyxxx – notificationOptions)中设置它。 我现在可以得到徽章的数量来做增量,而不是只设置一个数字吗? 环境:Worklight 5.0.6,三星Galaxy S3 Android 4.1.1 谢谢!

Ubuntu中的Worklight Studio 6.2.0.01不会创build.xcodeproj

我在Eclipse Luna和Ubuntu 14.04中使用Worklight Studio 6.2.0.01(也在Ubuntu 12.02和Eclipse Kepler中testing过)。 我已经按照以下步骤创build了一个iOS环境的混合应用程序: 创build一个Worklight项目 创build一个Worklight混合应用程序 新的Worklight环境(iPad) 以“ – >构build所有环境”运行 运行 – >在Worklight开发服务器上运行 Worklight和Server控制台中没有错误 问题:apps \ my-app \ ipad \ native内的本地文件夹仅包含2个文件夹,并且没有[project] .xcodeproj。 资源(空) 万维网 本地资源 – >资源(空)

应用程序未运行时,PUSH通知期间,MFP应用程序正在轻敲

当应用程序没有运行时(即使在后台)点击推送通知时,我遇到应用程序崩溃。 如果应用程序在后台运行,应用程序崩溃不会发生。 Worklight版本是7.1,iOS版本是8.1.3。 对于推送通知注册和接收我使用Push插件https://github.com/phonegap/phonegap-plugin-push与Worklight生成的AppDelegate合并。 如果需要,我可以发送我的源代码。 从崩溃日志中我发现exception发生在Push.m中:3 cmoapp 0x10018b2a4 – [push dispatch:](Push.m:227)4 cmoapp 0x10018ad48 – [push dispatchSelector:](Push.m:204) 是否有可能从你得到Push.m源代码来理解为什么应用程序崩溃? 任何帮助,将不胜感激。 谢谢。

如何在iOS应用程序中使用MQA setReportOnDoubleSlideEnabled?

在启动iOS会话文档主题中提到了[[MQALogger defaultSettings] setReportOnDoubleSlideEnabled:false]方法,但是该库没有这样的方法。 是否有一个库更新包含这个方法,或者我错过了什么?

IBM MobileFirst APNS通知需要1-courier.push.apple.com吗? 这是为了什么?

IBM MobileFirst知识中心指出,以下服务器和端口号必须可供APNS推送通知使用: gateway.sandbox.push.apple.com:2195 feedback.sandbox.push.apple.com:2196 gateway.push.apple.com:2195 feedback.push.apple.com:2196 不过,我已经在Apple文档中看到了端点1-courier.push.apple.com:5223 (例如,Apple的故障诊断文档)。 此服务器和端口是否也需要MFP服务器(通过防火墙)访问? 它是干什么用的?

IBM Worklight – 如何在本机iOS应用程序中启用应用程序真实性?

我们有一个iOS和Android混合应用程序环境,我们已经成功运行了应用程序真实性(使用下拉菜单控制function): <mobileSecurityTest name="app"> <testAppAuthenticity/> <testUser realm="wl_anonymousUserRealm"/> <testDeviceId provisioningType="none" /> </mobileSecurityTest> 我们在我们的Worklight项目中添加了一个“iOS Native API”项目,该项目用于我们在XCode 5中的本机iOS客户端开发。我们成功地能够连接到WL服务器,并调用我们不同适配器中的所有现有适配器过程。 对于这个本地API项目,我们现在也想启用App Authenticity。 当我们使用与本地API项目的应用程序描述符中的混合应用程序相同的MobileSecurityTest时 ,我们可以将其部署到我们的WL服务器,并且在iOS Native API条目处启用App Authenticityfunction(可以下拉以控制function)在控制台。 在我们设置的本机iOS应用/项目上: bundle ID与混合项目中的完全相同,与Apple Developer门户中的一样 Key Chain在项目中启用,也设置为worklight.group (如混合XCode项目中) 当我们想要连接到WL服务器时,我们无法获得成功的身份validation。 我们看到DeviceAuthManager尝试从设备获取UUID,但是服务器返回错误响应: 2013-09-24 08:58:35.530 App[32535:c07] DeviceAuthManager:getWorklightUniqueDeviceId –> returning UUID from the keychain 2013-09-24 08:58:35.564 App[32535:c07] isCustomResponse 2013-09-24 08:58:35.564 App[32535:c07] this is it: Status: 403 InvocationResult: (null) InvocationContext: […]

由于缺lessinfo.plist和其他文件,OS X,iPhone和Android上的Worklight构build失败

我正在按照来自IBM的“Hello World”指南逐步执行: http : //www.ibm.com/developerworks/library/mo-aim1206-working-with-worklight-1/ 我正在构build和部署环境,但是当我尝试这样做时,出现以下错误。 FWLST1040E: iphone build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager – Problem reading info.plist file /Users/snip/Documents/workspace-indigo/HelloWorld/apps/HelloWorld/iphone/native/HelloWorldHelloWorldIphone-Info.plist (No such file or directory) Nested exception: /Users/snip/Documents/workspace-indigo/HelloWorld/apps/HelloWorld/iphone/native/HelloWorldHelloWorldIphone-Info.plist (No such file or directory) FWLST1040E: android build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager – Error while reading XML file: /Users/snip/Documents/workspace-indigo/HelloWorld/apps/HelloWorld/android/native/AndroidManifest.xml (No such file or directory) Nested exception: /Users/snip/Documents/workspace-indigo/HelloWorld/apps/HelloWorld/android/native/AndroidManifest.xml (No […]

在iOS上进行IP更改后,直接更新自定义url不起作用

我在iOS上直接更新了一些问题。 以下情况描述了我的问题。 将下面的代码片段添加到main.js中 在application-descriptor.xml中启用worklightSettings 在Worklight Development Server上运行 通过eclipse在Xcode中打开项目 跑 进行更改并重新部署 validation直接更新已收到 卸载应用程序 获取新的IP(在我的情况下,第二天重新启动我的MacBook) 通过eclipse在Xcode中打开项目 跑 通过Settings.app打开myapp设置并启用自定义服务器URL。 该URL指向旧的IP。 启用自定义服务器URL并input正确的IP 打开应用 直接更新没有收到 代码片段: function wlCommonInit(){ WL.Client.connect({ onSuccess: onConnectSuccess, onFailure: onConnectFailure }); } function onConnectSuccess() { WL.Logger.debug("Connect success."); } function onConnectFailure() { WL.Logger.debug("Connect failed."); } 编辑 尝试以下scheme: 从头创build一个新的应用程序,并将其部署到您的iPad上 validation自定义服务器的URL和testing直接更新:所有工作正常(确定) 更新您的开发机器上的IP 从设备中删除应用程序并重新安装 validation自定义服务器URL:旧IP存在(NOK) 使用自定义服务器url unchecked =>'connect success'启动应用程序 启动应用程序与使用自定义服务器URL检查(不要更改IP)=>'连接成功' 尝试使用此ip […]

Rational Test Workbench iPhone – 无法合并原始二进制文件,无法合并检测到的二进制文件

下面给出的是我的系统的环境规范 System: MacBook Pro OS X version: 10.8.5 Worklight: 6.1 Emulator: 6.1 Build for iOS: 6.1 I have installed Mobile Test Workbench 8.5.1.2 in eclipse-kepler 我遵循url上的指示: https://pic.dhe.ibm.com/infocenter/rtwhelp/v8r5m0/index.jsp?topic=%2Fcom.ibm.rational.test.lt.moeb.doc%2Ftopics%2Frvar_select_device.html 但是当我尝试仪器和安装iPhone应用程序的模拟器每次都会发生一些错误。 在这里,我从terminal复制错误日志说: Could not merge original binaries Could not merge instrumented binaries —— Start Localization Folder Creation —– Found Localization files in: /Users/sarfaraz/Documents/workspace/SumApp/apps/SumApp/iphone/package/SumApp-1.0-iphone/Resources/Localizations.bundle/ Print: Entry, ":CFBundleDevelopmentRegion", Does Not […]