OneSignal / OneSignal-XCFramework

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your native iOS app with OneSignal. https://onesignal.com. This Repository hosts OneSignal's XCFramework to be used with Swift Package Manager
Other
27 stars 5 forks source link

Fails to build when archiving #4

Open sipersso opened 3 years ago

sipersso commented 3 years ago

Hi!

I am new to OneSignal and just added the SDK via SPM (OneSignal-XCFramework). The build works fine when building for a simulator. But when archiving for release, build fails, with a "No Such Module" compiler error. This seems to be a common error with other swift packages as well. Is this an issue you are aware of?

dsmailes commented 2 years ago

We're having this same problem. The app builds locally, but fails with No Such Module when building on Bitrise.

neha275 commented 2 years ago

Facing same issue any solution Xcode 13.2.1 Chip Apple M1

ortinteractive commented 2 years ago

same issue here with Bitrise. I tried Xcode 13.1.x, 13.2.x and 13.3.x ... nothing works. Any ideas? The local build works.

dsmailes commented 2 years ago

same issue here with Bitrise. I tried Xcode 13.1.x, 13.2.x and 13.3.x ... nothing works. Any ideas? The local build works.

Try setting to manual build order.

ortinteractive commented 2 years ago

@dsmailes doesn't work but I found a solution. I am using branch = "release-3.10.0" now

neha275 commented 2 years ago

yes, @ortinteractive it's work for me

jarrodparkes commented 2 years ago

any updates to this?

neha275 commented 2 years ago

What it work for me, I have change the version, attached message for Reference

Screen Shot 2022-06-03 at 3 37 43 pm

Than follow below step it will work:

jtansley commented 2 years ago

Hi @neha275 , can you please provide more information or a screenshot for this step? "-> Use product OneSignal for your app target, and product OneSignalExtension for your Notification Service Extension target."

How do you change the targets?

Thanks!

TofPlay commented 2 years ago

Same issue with Xcode 14.0.1 Can build and run on device in debug mode No such module 'OneSignal' when create an archive Ty to clean the build, derived data and SwiftPM caches Use OneSignal-XCFramework 3.11.2

hkawii commented 2 years ago

Fixed this archive issue for Xcode 14.0.1 as following After adding the package,

Screen Shot 2022-10-12 at 2 12 00 AM
grd888 commented 1 year ago

This worked for me.

jtansley commented 1 year ago

Fixed this archive issue for Xcode 14.0.1 as following After adding the package,

  • Open project settings
  • Tap on OneSignalNotificationServiceExtension target
  • In Frameworks and Libraries, add 'OneSignalExtension'
  • Clean all and try to archive again 🎉
Screen Shot 2022-10-12 at 2 12 00 AM

This worked for me as well. Thanks!!

fedeolto commented 11 months ago

Late for the party but they included it in the official troubleshooting: https://documentation.onesignal.com/docs/troubleshooting-ios#no-such-module-onesignal