OneSignal / OneSignal-Cordova-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Ionic, PhoneGap CLI, PhoneGap Build, Cordova, or Sencha Touch app with OneSignal. Supports Android, iOS, and Amazon's Fire OS platforms. https://onesignal.com
Other
251 stars 199 forks source link

[Bug]: This application or a bundle it contains has the same bundle identifier as this application or another bundle that it contains. Bundle identifiers must be unique. #982

Closed Ralle closed 8 months ago

Ralle commented 8 months ago

What happened?

I updated OneSignal to "onesignal-cordova-plugin": "^5.1.0" and since then Xcode won't test my app on my phone. I was using version ~3 before.

It gives me the error:

This application or a bundle it contains has the same bundle identifier as this application or another bundle that it contains. Bundle identifiers must be unique.

I did follow the install steps and have given my extension the Bundle ID: com.soundwheel.soundwheel.OneSignalNotificationServiceExtension

And my app the Bundle ID: com.soundwheel.soundwheel

Steps to reproduce?

1. Update OneSignal
2. Create the service extension according to the manual
3. CMD+R

What did you expect to happen?

I expected it to run my app and not complain.

OneSignal Cordova SDK version

5.1.0

Which platform(s) are affected?

Relevant log output

Unable to install "App"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653008
User Info: {
    DVTErrorCreationDateKey = "2024-03-13 12:28:35 +0000";
    IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}
--
This application or a bundle it contains has the same bundle identifier as this application or another bundle that it contains. Bundle identifiers must be unique.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653008
User Info: {
    DVTRadarComponentKey = 261622;
    MobileDeviceErrorCode = "(0xE80000B0)";
    "com.apple.dtdevicekit.stacktrace" = (
    0   DTDeviceKitBase                     0x000000011aced67c DTDKCreateNSErrorFromAMDErrorCode + 229
    1   DTDeviceKitBase                     0x000000011ad20d34 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 158
    2   DVTFoundation                       0x000000010bda19fc DVTInvokeWithStrongOwnership + 70
    3   DTDeviceKitBase                     0x000000011ad20a69 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1412
    4   IDEiOSSupportCore                   0x000000011336adc6 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.305 + 3568
    5   DVTFoundation                       0x000000010bee0134 __DVT_CALLING_CLIENT_BLOCK__ + 7
    6   DVTFoundation                       0x000000010bee0c20 __DVTDispatchAsync_block_invoke + 196
    7   libdispatch.dylib                   0x00007ff8155852e6 _dispatch_call_block_and_release + 12
    8   libdispatch.dylib                   0x00007ff81558659a _dispatch_client_callout + 8
    9   libdispatch.dylib                   0x00007ff81558c668 _dispatch_lane_serial_drain + 816
    10  libdispatch.dylib                   0x00007ff81558d100 _dispatch_lane_invoke + 377
    11  libdispatch.dylib                   0x00007ff815596aee _dispatch_root_queue_drain_deferred_wlh + 271
    12  libdispatch.dylib                   0x00007ff8155963fd _dispatch_workloop_worker_thread + 451
    13  libsystem_pthread.dylib             0x00007ff81572ac47 _pthread_wqthread + 327
    14  libsystem_pthread.dylib             0x00007ff815729b97 start_wqthread + 15
);
}
--

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_model" = "iPhone11,2";
    "device_osBuild" = "16.3.1 (20D67)";
    "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" = 6958;
    "operation_errorCode" = "-402653008";
    "operation_errorDomain" = "com.apple.dt.MobileDeviceErrorDomain";
    "operation_errorWorker" = IDEInstalliPhoneLauncher;
    "operation_name" = IDEiPhoneRunOperationWorkerGroup;
    "param_debugger_attachToExtensions" = 0;
    "param_debugger_attachToXPC" = 1;
    "param_debugger_type" = 5;
    "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" = 0;
    "param_launcher_substyle" = 0;
    "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.2 (Build 23B92)
Xcode 15.0.1 (22266) (Build 15A507)
Timestamp: 2024-03-13T13:28:35+01:00

Code of Conduct

Ralle commented 8 months ago

Cleaning the solution fixed it. TIL.