错误ITMS-90205:“Invalid Bundle。'NotificationServiceExtension.appex'中的包包含不允许的嵌套bundle。”
错误ITMS-90206:“Invalid Bundle。'app.app/PlugIns/OneSignalNotificationServiceExtension.appex'中的包包含不允许的文件'Frameworks'。” 错误ITMS-90206:“无效的软件包'app/PlugIns/OneSignalNotificationServiceExtension.appex'中的软件包包含不允许的文件'Frameworks'。”错误ITMS-90205:“Invalid Bundle。'NotificationServiceExtension.appex'中的包包含不允许的嵌套bundle。”
在我的应用程序的项目
Always Embed Swift Standard Library = No
Embedded Content Contains Swift = Yes
在我的目标
Always Embed Swift Standard Library = Yes
Embedded Content Contains Swift = Yes
在OneSignalNotificationServiceExtension
Always Embed Swift Standard Library = No
Embedded Content Contains Swift = NO
当我尝试OneSignalNotificationServiceExtension更改为YES则显示错误import OneSignal
不No such module 'OneSignal
OneSignal写入在Swift中,应该使用use_frameworks导入!
OneSignalNotificationService目标 - >构建阶段 - >运行脚本:
cd "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/"
if [[ -d "Frameworks" ]]; then
rm -fr Frameworks
fi