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

[Bug]: Unable to Install app via XCode using the latest version of this plugin

Open alexp25 opened this issue 1 year ago • 3 comments
trafficstars

What happened?

The app compiles fine but when I try to run it via XCode, I get the following error. I am using the latest macOS (Sonoma), XCode (15.0.1) and iOS (17.1.1). When I archive the build and upload it to my device manually, it works, but not with XCode (and unable to debug as well)

Steps to reproduce?

1. compile Cordova app
2. run with XCode on a physical device
3. the error pops up and the installation is interrupted

What did you expect to happen?

The app should install and run on my iOS device via XCode

OneSignal Cordova SDK version

Release 3.8.1

Which platform(s) are affected?

  • [X] iOS
  • [ ] Android

Relevant log output

Domain: com.apple.dt.CoreDeviceError
Code: 3002
User Info: {
    DVTErrorCreationDateKey = "2023-11-23 11:04:42 +0000";
    IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
    NSURL = "file:///Users/alexpro/Library/Developer/Xcode/DerivedData/Leplace_World-grgysdkpolwuceekoinuvoskvxqk/Build/Products/Debug-iphoneos/Leplace%20World.app/";
}
--
Unable to Install “Leplace World”
Domain: IXUserPresentableErrorDomain
Code: 1
Failure Reason: Please try again later.
Recovery Suggestion: Found bundle at /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.J7dmFF/extracted/Leplace World.app/Frameworks/OneSignal.framework with the same identifier (com.onesignal.OneSignal-Dynamic) as bundle at /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.J7dmFF/extracted/Leplace World.app/Frameworks/OneSignalFramework.framework
--
Found bundle at /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.J7dmFF/extracted/Leplace World.app/Frameworks/OneSignal.framework with the same identifier (com.onesignal.OneSignal-Dynamic) as bundle at /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.J7dmFF/extracted/Leplace World.app/Frameworks/OneSignalFramework.framework
Domain: MIInstallerErrorDomain
Code: 57
User Info: {
    FunctionName = "-[MIInstallableBundle performPreflightWithError:]";
    LegacyErrorString = DuplicateIdentifier;
    SourceFileLine = 477;
}
--

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_isCoreDevice" = 1;
    "device_model" = "iPhone11,2";
    "device_osBuild" = "17.1.1 (21B91)";
    "device_platform" = "com.apple.platform.iphoneos";
    "dvt_coredevice_version" = "348.1";
    "dvt_mobiledevice_version" = "1643.40.14";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 17189;
    "operation_errorCode" = 57;
    "operation_errorDomain" = "com.apple.dt.CoreDeviceError.3002.IXUserPresentableErrorDomain.1.MIInstallerErrorDomain";
    "operation_errorWorker" = IDEInstallCoreDeviceWorker;
    "operation_name" = IDERunOperationWorkerGroup;
    "param_debugger_attachToExtensions" = 0;
    "param_debugger_attachToXPC" = 1;
    "param_debugger_type" = 3;
    "param_destination_isProxy" = 0;
    "param_destination_platform" = "com.apple.platform.iphoneos";
    "param_diag_MainThreadChecker_stopOnIssue" = 0;
    "param_diag_MallocStackLogging_enableDuringAttach" = 0;
    "param_diag_MallocStackLogging_enableForXPC" = 1;
    "param_diag_allowLocationSimulation" = 1;
    "param_diag_checker_tpc_enable" = 1;
    "param_diag_gpu_frameCapture_enable" = 0;
    "param_diag_gpu_shaderValidation_enable" = 0;
    "param_diag_gpu_validation_enable" = 0;
    "param_diag_memoryGraphOnResourceException" = 0;
    "param_diag_queueDebugging_enable" = 1;
    "param_diag_runtimeProfile_generate" = 0;
    "param_diag_sanitizer_asan_enable" = 0;
    "param_diag_sanitizer_tsan_enable" = 0;
    "param_diag_sanitizer_tsan_stopOnIssue" = 0;
    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
    "param_diag_showNonLocalizedStrings" = 0;
    "param_diag_viewDebugging_enabled" = 1;
    "param_diag_viewDebugging_insertDylibOnLaunch" = 1;
    "param_install_style" = 0;
    "param_launcher_UID" = 2;
    "param_launcher_allowDeviceSensorReplayData" = 0;
    "param_launcher_kind" = 0;
    "param_launcher_style" = 99;
    "param_launcher_substyle" = 8192;
    "param_runnable_appExtensionHostRunMode" = 0;
    "param_runnable_productType" = "com.apple.product-type.application";
    "param_structuredConsoleMode" = 1;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphoneos17.0";
    "sdk_osVersion" = "17.0";
    "sdk_variant" = iphoneos;
}
--


System Information

macOS Version 14.1.1 (Build 23B81)
Xcode 15.0.1 (22266) (Build 15A507)
Timestamp: 2023-11-23T13:04:42+02:00

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

alexp25 avatar Dec 19 '23 08:12 alexp25

Hi @alexp25 Are you still having this issue? Can you try to clean your project and deintegrate/reinstall cocoapods?

jennantilla avatar Dec 21 '23 23:12 jennantilla

Hi @jennantilla it worked using cordova run ios command, so it could have something to do with XCode too, so I'm currently sticking to that (don't have debugger though), but will probably try your suggestion too (just don't want to break things at the moment)

alexp25 avatar Dec 22 '23 09:12 alexp25

Flutter clean do the trick 👍

yarith28 avatar Jun 06 '24 13:06 yarith28