ERROR ITMS-90205: "Invalid Bundle. The bundle at 'NotificationServiceExtension.appex' contains disallowed nested bundles."

Viewed 2995

ERROR ITMS-90206: "Invalid Bundle. The bundle at 'app.app/PlugIns/OneSignalNotificationServiceExtension.appex' contains disallowed file 'Frameworks'." ERROR ITMS-90206: "Invalid Bundle. The bundle at 'app/PlugIns/OneSignalNotificationServiceExtension.appex' contains disallowed file 'Frameworks'."

in my app project

Always Embed Swift Standard Library = No

Embedded Content Contains Swift = Yes

in my target

Always Embed Swift Standard Library = Yes

Embedded Content Contains Swift = Yes

in OneSignalNotificationServiceExtension

Always Embed Swift Standard Library = No

Embedded Content Contains Swift = NO

when I try to change OneSignalNotificationServiceExtension to YES it displays error that import OneSignal is not No such module 'OneSignal

OneSignal is written in Swift and should be imported with the use_frameworks!

2 Answers

In General settings of your build target, you have Frameworks and libraries listed for each target. Corresponding to each framework is a setting "Embed and Sign" or "Do not embed". Keeping it "Embed and Sign" in app target and "Do not embed" in every other target where the framework is linked solves the problem.

Related