alipay / mPaaS

mPaaS Demo 合集,mPaaS 是源自于支付宝的移动开发平台。The collection of demos for mPaaS components. mPaaS is the Mobile Development Platform which oriented from Alipay.
https://tech.antfin.com/docs/2/49549
Apache License 2.0
324 stars 55 forks source link

demo真机调试小程序提示应用不存在 #17

Closed ShawnFoo closed 4 years ago

ShawnFoo commented 5 years ago
 [[NBServiceGet() appCenter] prepareApp:appID version:nil process:^(NAMAppPrepareStep step, id info) {

} finish:^(NAMApp *app, NSError *error) {
    if (!error) {
        dispatch_async(dispatch_get_main_queue(), ^{
            [NBServiceGet() startSession:@{@"appId":app.app_id, @"version":app.version, @"debug":@"framework"} animated:YES];
        });
    }
}];

使用真机调试执行上述代码时,提示:

rror Domain=nebulaappmanager_error_domain Code=10008 "app not exist" UserInfo={NSLocalizedDescription=app no[NBServiceGet() startSession:@{@"appId":app.app_id, @"version":app.version, @"debug":@"framework"} animated:YES];t exist}

后台已经发布了,这个是什么原因,另外有错误码文档吗?

额外一个问题,下面这两个方法有什么区别?