使用Parse内付费服务出现的Error Domain=Parse Code=146 "The operation couldn’t be completed. (Parse error 146.)
来源:互联网 发布:电路考研参考书知乎 编辑:程序博客网 时间:2024/06/05 07:20
因为开发一个应用有个内付费去广告功能,介于苹果官方提供的方法没用过,感觉有些复杂,于是选用了第三方组件Parse来解决这个问题,简单易操作;
Parse简化苹果官方内付费问题,使用方法分厂简单只有两个Block方法,以下实现简单的购买过程
在AppDelegate的application:didFinishLaunchingWithOptions:方法中
- // Use the product identifier from iTunes to register a handler.
- [PFPurchase addObserverForProduct:@"ProductID" block:^(SKPaymentTransaction *transaction) {
- // Write business logic that should run once this product is purchased.
- }];
- [PFPurchase buyProduct:@"ProductID" block:^(NSError *error) {
- if (!error) {
- // Run UI logic that informs user the product has been purchased, such as displaying an alert view.
- }
- }];
但是我在真机测试的时候一直出现Error Domain=Parse Code=146 "The operation couldn’t be completed. (Parse error 146.),即使新建工程也同样此错误。
Parse官方网站提供了对这个错误答疑,由于不够细心把解决方案多次忽略:①可能是这个产品ID(ProductID)有问题,或者不存在。②而我存在的问题是设备越狱了导致不能购买。
解决办法:①检查在itunes上ID问题;
②在Cydia中卸载掉Assync插件,重启设备即可解决;
③以上不行,换未越狱的设备试吧。
转自:http://blog.csdn.net/duxinfeng2010/article/details/10043641
0 0
- 使用Parse内付费服务出现的Error Domain=Parse Code=146 "The operation couldn’t be completed. (Parse error 146.)
- 使用Parse内付费服务出现的Error Domain=Parse Code=146 "The operation couldn’t be completed. (Parse error 146.)
- 使用Parse内付费服务出现的Error Domain=Parse Code=146 "The operation couldn’t be completed. (Parse error 146.)
- Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)"
- Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)"
- didFailWithError: Error Domain=kCLErrorDomain Code=0 “The operation couldn’t be completed. (kCLError
- 【解决方法】Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed.
- iOS:Error Domain=WebKitErrorDomain Code=101 "The operation couldn’t be completed. (WebKitErrorDomain
- iOS[问题解决] Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed.
- didFailWithError: Error Domain=kCLErrorDomain Code=0 “The operation couldn’t be completed. (kCLError
- didFailWithError: Error Domain=kCLErrorDomain Code=0 “The operation couldn’t be completed. (kCLErro
- Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed. (k
- iOS json 解析遇到error: Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed.
- 错误: Error Domain=kCLErrorDomain,The operation couldn’t be completed
- Domain=NSCocoaErrorDomain Code=134100 "The operation couldn’t be completed. 错误的处理方法
- Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)
- iOS-Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be complet
- error: couldn't parse contents of '/Users/.../Info.plist': The data couldn’t be read because...
- delphi7连接excel有的机出现‘无效的类别字符串’解决办法
- 常用的几种数据结构算法(续)
- 将.jar文件编译成.exe文件利用jsmooth
- 3D数学读书笔记——矩阵基础番外篇之线性变换
- php如何以post形式发送xml
- 使用Parse内付费服务出现的Error Domain=Parse Code=146 "The operation couldn’t be completed. (Parse error 146.)
- 美派伞兵飞行11小时后空降施救两名中国渔民
- winsows 系统下获取系统时间
- Mybatis学习- 拦截器-基本
- 由12306.cn谈谈网站性能技术
- Java应用程序安装包制作工具简介
- Linux 系统挂载数据盘
- dede数据库表结构和dedecms数据库字段说明
- job提交的源码分析