1、目前我尝试xcode新建一个static library的项目,之后又新建了一个Notification Service Extension。
但是我发现编译Notification Service Extension会提示:
Launch error 【There is no UTI Type for the runnable:(null)】
我理解是因为没有主项目导致的。我目前参考的是该地址:
https://nativesupport.dcloud.net.cn/NativePlugin/course/ios.html
2、如果是单纯的.appex,我已经在原生项目的ipa包,解压拿出过来过。
但是在HBuilderX中,使用制作自定义基座,依旧没有成功加载。
恳请大家帮我看下,是否配置有问题?
目前参考是以下地址:
https://nativesupport.dcloud.net.cn/NativePlugin/course/package.html#ios-extension
目前项目路径是这样:
|-- nativeplugins
|-- XX-NotificationService
|-- package.json
|-- ios-extension.json
|-- os-notificationService.mobileprovision //为apn的配置文件
|-- ios
|-- xxxx.a
|-- Plugins
|-- notificationService.appex
相关配置:
ios-extension.json
{
"notificationService.appex": {
"identifier": "com.xxx.xxx.xxxApn",
"profile": "ios-notificationService.mobileprovision",
"plists": {
"XXGroupIdentifier": "group.com.xxx.xxx.xxxApn"
},
"entitlements": {
"com.apple.security.application-groups": ["group.com.xxx.xxx.xxxApn"]
}
}
}
package.json
{
"id": "XX-NotificationService",
"displayName": "xxx",
"version": "1.0.0",
"description": "xxx",
"_dp_type": "nativeplugin",
"_dp_nativeplugin": {
"ios": {
"plugins": [{
"type": "module",
"name": "XXX-TestModule",
"class": "XXXModule"
}],
"integrateType": "library",
"deploymentTarget": "12.0"
}
}
}
Bin9016_ (作者)
嗯,还是不太明白。恳请指教一下。
主要是appex弄出来后,我是放在nativeplugins/xxx/ios/Plugins/xxx.appex这个路径吗?
以及nativeplugins/xxx/package.json是应该如何正常配置?
2025-06-09 16:21
Bin9016_ (作者)
感谢,已经折腾出来了。
2025-06-10 15:56