我跟随Link使用Bluemix实现iOS App。我按照上面链接中给出的所有步骤进行了操作。
我收到错误"创建远程数据存储时出错Error Domain = Unify Code = 100"无法创建远程数据库。"
供参考,请参阅以下日志 -
2016-06-15 15:05:53.913 bluelist-objective-c[665:177849] Intializing IMFCLient
2016-06-15 15:05:53.914 bluelist-objective-c[665:177849] IapplicationRoute http://bluemixiosapp.mybluemix.net
2016-06-15 15:05:53.914 bluelist-objective-c[665:177849] IapplicationId 3168ea0e-10b5-4b12-8ae5-1c6d980996bc
2016-06-15 15:06:06.724 bluelist-objective-c[665:177849]
IMFDataManager initialized successfully:
CloudantToolkit Version: 1.1.1
CloudantToolkit Build Date: 20150911_0800
IMFData-Bluemix Version: 1.1.1
IMFData-Bluemix Build Date: 20150911_0800
Target URL: https://mobile.ng.bluemix.net/imfdata/api/v1/apps/3168ea0e-10b5-4b12-8ae5-1c6d980996bc
2016-06-15 15:06:07.101 bluelist-objective-c[665:177849] Local data store created successfully
2016-06-15 15:06:08.390 bluelist-objective-c[665:177890] [ERROR] [BlueList] Error creating remote data store Error Domain=Unify Code=100 "Failed to create remote database.
HTTP_Status: 404
JSON Body: (null)" UserInfo=0x178078200 {NSLocalizedDescription=Failed to create remote database.
HTTP_Status: 404
JSON Body: (null)}
我无法找到此错误的来源。期待帮助解决我的问题。
答案 0 :(得分:0)
您收到此错误是因为不再支持IMFData示例的关键依赖项imf-bluelist已被弃用和停用。
不幸的是,您将无法使此示例在其当前状态下工作。
我建议您尝试iOS samples中的Bluemix mobile services GitHub,特别是helloTodo。
如果您正在寻找持久数据存储,还可以查看CDTDatastore和Cloudant NoSQL DB。