OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
623 stars 213 forks source link

[Bug]: not running in ios platform #957

Open AbbosMamadaliyev opened 1 month ago

AbbosMamadaliyev commented 1 month ago

What happened?

Appex bundle at /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.EkpZuU/extracted/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex with ID org.example.exampleapp.OneSignalNotificationServiceExtension does not have a CFBundleVersion key with a non-zero length string value in its Info.plist

Steps to reproduce?

Run ios platform

What did you expect to happen?

Run

OneSignal Flutter SDK version

5.2.5

Which platform(s) are affected?

Relevant log output

all details:

Не удается установить приложение «Example»
Domain: IXUserPresentableErrorDomain
Code: 1
Recovery Suggestion: Appex bundle at /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.EkpZuU/extracted/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex with ID org.example.exampleapp.OneSignalNotificationServiceExtension does not have a CFBundleVersion key with a non-zero length string value in its Info.plist
User Info: {
    DVTErrorCreationDateKey = "2024-09-27 13:06:21 +0000";
    IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
}
--
Не удается установить приложение «Example»
Domain: IXUserPresentableErrorDomain
Code: 1
Recovery Suggestion: Appex bundle at /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.EkpZuU/extracted/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex with ID org.example.exampleapp.OneSignalNotificationServiceExtension does not have a CFBundleVersion key with a non-zero length string value in its Info.plist
User Info: {
    IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
}
--
Failed to install the app on the device.
Domain: com.apple.dt.CoreDeviceError
Code: 3002
User Info: {
    NSURL = "file:///Users/user/StudioProjects/example/build/ios/iphoneos/Runner.app/";
}
--
Не удается установить приложение «Example»
Domain: IXUserPresentableErrorDomain
Code: 1
Failure Reason: Повторите попытку позже.
Recovery Suggestion: Appex bundle at /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.EkpZuU/extracted/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex with ID org.example.exampleapp.OneSignalNotificationServiceExtension does not have a CFBundleVersion key with a non-zero length string value in its Info.plist
--
Appex bundle at /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.EkpZuU/extracted/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex with ID org.example.exampleapp.OneSignalNotificationServiceExtension does not have a CFBundleVersion key with a non-zero length string value in its Info.plist
Domain: MIInstallerErrorDomain
Code: 33
User Info: {
    FunctionName = "-[MIAppExtensionBundle validateBundleMetadataWithError:]";
    LegacyErrorString = MissingBundleVersion;
    SourceFileLine = 275;
}
--

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_isCoreDevice" = 1;
    "device_model" = "iPhone15,2";
    "device_osBuild" = "17.6.1 (21G93)";
    "device_platform" = "com.apple.platform.iphoneos";
    "dvt_coredevice_version" = "355.28";
    "dvt_mobiledevice_version" = "1643.120.2";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 4899;
    "operation_errorCode" = 1;
    "operation_errorDomain" = IXUserPresentableErrorDomain;
    "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.5";
    "sdk_osVersion" = "17.5";
    "sdk_variant" = iphoneos;
}
--

System Information

macOS Version 14.5 (Build 23F79)
Xcode 15.4 (22622) (Build 15F31d)
Timestamp: 2024-09-27T18:06:21+05:00

Code of Conduct

jennantilla commented 3 weeks ago

Hello @AbbosMamadaliyev thanks for your patience. Is this still an issue for you?

If so, can you please review the iOS setup guide for Flutter again to ensure that you have the correct bundle ID?

Running flutter doctor and flutter clean may also help.

Let us know if you are still facing problems and we'll be happy to help!