简体   繁体   English

为什么我从Gimbal注册api密钥后获得状态10000?

[英]Why am I getting status 10000 from Gimbal registering the api key?

I am integrating the Gimbal SDK following their documentation. 我正在按照他们的文档集成Gimbal SDK。 I have the framework, requisite lib, bridge-header, import of framework. 我有框架,必要的库,桥头,框架的导入。 I discovered some problems with the bundle and api-key when using spaces or dashes in the names, so I have simplified the project name. 在名称中使用空格或破折号时,我发现了bundle和api-key的一些问题,因此我简化了项目名称。

I created the project with bundle name (ie, %PRODUCT_NAME) of POCGimbalNoPunctuationBundleId and the bundle ID prefix is com.mycompany.ios 我使用POCGimbalNoPunctuationBundleId的捆绑包名称(即%PRODUCT_NAME)创建了项目,捆绑包ID前缀为com.mycompany.ios

I then created the API key in Gimbal Manager using the product name, bundle ID prefix that generated a key that I copied into my appdelegate code. 然后,我使用产品名称(捆绑ID前缀)在Gimbal Manager中创建了API密钥,该密钥生成了我复制到我的appdelegate代码中的密钥。

The set-apikey is invoked and the SDK logs: 调用set-apikey,SDK记录:

2015-08-25 19:14:32:078 POCGimbalNoPunctuationBundleId[17282:607] Request (v10/registration/) failed: Error Domain=QLRestTemplateErrorDomain Code=-1011 "Expected status code in (200-299), got 400" UserInfo=0x7feeb151bad0 {NSLocalizedDescription=Expected status code in (200-299), got 400, QL_HTTP_STATUS_CODE=400, NSErrorFailingURLKey=https://ios.api.gimbal.com/service/v10/registration/, NSLocalizedFailureReason={"errorMessage":"Application verification failed. Invalid com.mycompany.ios.POCGimbalNoPunctuationBundleId for application with package com.mycompany.ios.POCGimbalNoPunctuationBundleId","statusCode":10000}}
2015-08-25 19:14:32:079 POCGimbalNoPunctuationBundleId[17282:607] Error during registration:Expected status code in (200-299), got 400

I understand WHAT it is telling me, but I don't understand WHY -- it all appears to match the sample app and the API key in the Gimbal manager. 我了解它在告诉我什么,但我不明白为什么-一切似乎都与示例应用程序和Gimbal管理器中的API密钥相匹配。

HELP! 救命! I have struggled with this off and on for three days now. 我已经为此挣扎了三天。

It was not clear in the documentation (to me) that the bundle ID was to include the product name. (对我而言)在文档中尚不清楚捆绑包ID是否包含产品名称。 I thought that as built internally. 我认为这是内部构建的。 Therefore, the correct answer was to append "MyAppName" to the bundle ID in the question. 因此,正确的答案是将“ MyAppName”附加到问题中的捆绑软件ID中。

com.mycompany.ios.MyAppName

Be careful the product names that include spaces or dashes. 请注意包含空格或破折号的产品名称。 They are converted to underbar (_). 它们将转换为下划线(_)。 Good luck. 祝好运。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我在注册子类时遇到错误“类...必须在使用Parse之前注册registerSubclass”? - Why am I getting the error “the class … must be registered with registerSubclass before using Parse” when I am registering the subclass? 为什么我尝试将密钥保存到钥匙串时又得到errSecParam(-50)? - Why am I getting errSecParam (-50) back from trying to save a key to keychain? 为什么我没有从NSStringFromClass获取NSString? - Why am I not getting an NSString from NSStringFromClass? 为什么会出现键值编码合规性错误? - Why am I getting a key value coding compliance error? 从google api查找路由时出现问题,它显示,该IP,站点或移动应用程序无权使用此API密钥 - I am getting issue while finding route from google api, it shows ,This IP, site or mobile application is not authorized to use this API key 为什么我在IOS上获得Mapboxgl api的空白页? - Why I am getting blank page for Mapboxgl api on IOS? 网络链路调节器100%丢包 - 为什么我的互联网可达性状态错误? - Network link conditioner on 100% packet loss - why I am getting internet reachability status wrong? 为什么我会收到NSUnkownKeyException? - Why am I getting NSUnkownKeyException? 为什么我总是从magneticField属性得到0度? - Why am I getting 0 degrees from magneticField property the whole time? 为什么我收到来自此请求iOS JSON的空响应 - Why am I getting Empty Response from this Request iOS JSON
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM