Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build when archiving #4

Open
sipersso opened this issue Jan 29, 2021 · 14 comments
Open

Fails to build when archiving #4

sipersso opened this issue Jan 29, 2021 · 14 comments

Comments

@sipersso
Copy link

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
Copy link

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

@neha275
Copy link

neha275 commented May 12, 2022

Facing same issue any solution
Xcode 13.2.1
Chip Apple M1

@ortinteractive
Copy link

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
Copy link

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
Copy link

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

@neha275
Copy link

neha275 commented May 18, 2022

yes, @ortinteractive it's work for me

@jarrodparkes
Copy link

any updates to this?

@neha275
Copy link

neha275 commented Jun 3, 2022

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

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

  • You have to do some changes if you using SPM:
    -> Use product OneSignal for your app target, and product OneSignalExtension for your Notification Service Extension target.
    -> Then in your NotificationService class import OneSignalExtension instead of OneSignal

Than follow below step it will work:

  • clean the build
  • delete the derived data
  • try to create a archieve

@jtansley
Copy link

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
Copy link

TofPlay commented Sep 27, 2022

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
Copy link

hkawii commented Oct 12, 2022

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

@grd888
Copy link

grd888 commented Feb 10, 2023

This worked for me.

@jtansley
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants