OneSignal-Cordova-SDK icon indicating copy to clipboard operation
OneSignal-Cordova-SDK copied to clipboard

Cannot build for iOS device in XCode

Open andutoptal opened this issue 2 years ago • 2 comments

Description:

I have installed the onesignal-cordova-plugin (v3.0.4) in a CapacitorJS project (v3.5.1) following the steps in the Ionic & Capacitor SDK Setup (https://documentation.onesignal.com/docs/ionic-sdk-setup) but when trying to build the application to run on an actual device in Xcode (v13.2.1) I get the following error: "Building for iOS, but linking in dylib file XXXXX built for iOS Simulator, file YYYYY for architecture arm64"

Environment

Steps to Reproduce Issue:

Configure CapacitorJS project to use onesignal-cordova-plugin according to official documentation and try to build in Xcode

andutoptal avatar Jun 20 '22 11:06 andutoptal

Hi @andutoptal,

Thank you for reporting and I apologize for the delayed response. Is this still an issue for you? If so, there are some things you can begin by trying:

  • Deleting the DerivedData folder
  • de-integrate the pod and re-install with pod deintegrate && pod install

nan-li avatar Aug 12 '22 22:08 nan-li

hi @nan-li, i've tried this but i'm still getting the same error. @andutoptal have you managed to fix this?

fitnexus avatar Sep 02 '22 19:09 fitnexus

Hello @andutoptal and @fitnexus -- are you still experiencing this issue on the latest version of our Cordova SDK? Thanks for the update!

jennantilla avatar Mar 20 '23 20:03 jennantilla

Closing due to no response.

jennantilla avatar May 16 '23 19:05 jennantilla