mobilefirst native ios keychain wrapper issue [英] mobilefirst native ios keychain wrapper issue

查看:155
本文介绍了mobilefirst native ios keychain wrapper issue的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用xcode开发项目的原生iOS应用程序项目,但同时包括MobileFirst Platform Foundation功能和Bluemix的移动数据功能。我们在IBM DevOps服务(jazzhub)上使用共享git存储库来共享项目源代码并在其上协同工作。

I am working on a project for a native iOS app using xcode to develop the project, but including both MobileFirst Platform Foundation capabilities and mobile data capabilities from Bluemix. We are using a shared git repository on IBM DevOps services (jazzhub) to share project source code and work collaboratively on it.

我在内置的大多数本机应用程序过去一直是我自己的,所以这是我第一次尝试使用git / xcode协同工作。

Most of the native apps I have built in the past have been on my own, so this is my first attempt to collaborate using git/xcode working together.

所有这只是问题的背景,这是一个项目使用上面的环境在我的同事mac build /运行正常。一旦我git克隆项目并尝试在我的Mac上运行它我收到以下错误:

All that is just context for the issue, which is a project using the above environment on my collegues mac build/runs fine. Once I git clone the project and try to run it on my mac I am getting the following error:

*** Assertion failure in -[KeychainItemWrapper writeToKeychain], /tmp/builds/bld-00-20141218-1823-2824648/worklight-ios/framework-xcode-project/NativeSDK-Sources/WorkLight/KeychainItemWrapper.m:311
2015-01-31 13:16:27.657 IBMBankNativeApp[88827:11348297] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Couldn't add the Keychain Item.'

在xcode日志中的此消息上方,我看到Bluemix的初始化以及初始化MFP连接的调用的初始化:

Above this message in the xcode log I see a secussful initialization of the Bluemix and the call to initialize the MFP connection:

2015-01-31 13:16:27.439 NativeApp[88827:11348297] INFO: IBMBluemix initialization successful.
IBMBluemix SDK Version: 1.0.1.20141124-1240
BlueMix Target: https://mybank.mybluemix.net
applicationId: ea36d23f-....
2015-01-31 13:16:27.530 NativeApp[88827:11348297] IBMData SDK initialization successful.
2015-01-31 13:16:27.580 NativeApp[88827:11348297] ViewController - connectToServer - Initializing ...
2015-01-31 13:16:27.591 NativeApp[88827:11348297] [DEBUG] [WL_CONFIG] -[WLConfig init] in WLConfig.m:68 :: {
    "application id" = NativeiOSApi;
    "application version" = "1.0";
    environment = iOSnative;
    host = "192.168.0.17";
    platformVersion = "6.3.0.00.20141218-1823";
    port = 10080;
    protocol = http;
    wlServerContext = "/MFProject/";
    wlUid = "wY/mbnwKTDDYQUvuQCdSgg==";
}

在MFP回调初始化连接之前,应用程序因keychain错误而终止。

Before the MFP callback for initialization of the connection the application terminates with the keychain error.

我没有添加对项目的钥匙串访问权限,我正在使用cocoapods设置bluemix支持,并想知道是否以某种方式添加了keychain支持?

I did not add the keychain access to the project, I'm using cocoapods to set-up bluemix support and wonder if that somehow is adding the keychain support?

我尝试删除并运行,删除然后在项目功能中重新添加他们的钥匙串支持,所有这些都有相同的错误。

I tried removing and running, removing then re-adding they keychain support in the project capabilities, all with the same error.

git中是否存在不应该检查并复制的内容?

Is there something checked in and replicated by git that shouldn't be?

提前致谢!

推荐答案

验证 entitlements-debug.plist 中的Root键下是否存在以下密钥entitlements-release.plist

密钥:keychain-access-groups

类型:数组

Key: keychain-access-groups
Type: Array

上面的密钥:

密钥:项目0

类型:字符串

值:$(AppIdentifierPrefix)workligh t.group

Inside the above Key:
Key: Item 0
Type: String
Value: $(AppIdentifierPrefix)worklight.group

这篇关于mobilefirst native ios keychain wrapper issue的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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