s***@en.com.cn
s***@en.com.cn
  • 发布:2020-07-04 16:18
  • 更新:2021-02-22 09:48
  • 阅读:1798

sdk嵌入时,app启动提示 uni小程序不存在

分类:uni小程序sdk

按照ios集成教程尝试创建一个app,启动时报错,提示uni小程序不存在。
DCUniMPConfiguration *configuration = [[DCUniMPConfiguration alloc]init];
// 配置启动小程序时传递的参数(参数可以在小程序中通过 plus.runtime.arguments 获取此参数)
configuration.arguments = @{ @"arguments":@"Hello uni microprogram" };
// 配置小程序启动后直接打开的页面路径 例:"pages/component/view/view?a=1&b=2"
configuration.redirectPath = nil;
// 开启后台运行
configuration.enableBackground = YES;
[DCUniMPSDKEngine openUniMP:@"**"
configuration:configuration
completed:^(DCUniMPInstance _Nullable uniMPInstance, NSError _Nullable error) {
if (uniMPInstance) {
self.uniMPInstance = uniMPInstance;
} else {
NSLog(@"打开小程序出错:%@",error);
}
}];
错误信息:打开小程序出错:Error Domain=DCUniMPErrorDomain Code=-3001 "uni小程序(**)不存在" UserInfo={NSLocalizedDescription=uni小程序(***)不存在}

2020-07-04 16:18 负责人:无 分享
已邀请:
kien

kien

你的问题解决了吗?

xiaopin

xiaopin

忘记调用 checkUniMPResource 这个方法了

该问题目前已经被锁定, 无法添加新回复