rafaelsetragni / awesome_notifications

A complete solution to create Local Notifications and Push Notifications, throught Firebase or another services, using Flutter.
https://discord.awesome-notifications.carda.me
Apache License 2.0
752 stars 326 forks source link

Swift Compiler Error (Xcode): Type 'Logger' has no member 'e', 'd' or 'i' when update to 0.7.7 #862

Closed MarsTheMan closed 9 months ago

MarsTheMan commented 11 months ago

Rules

To report a bug and help us to provide the solution as fast as possible, please follow the instructions below:

1 - Describe the bug

A clear and concise description of what the bug is.

OBS: avoid to use the expression "its not working" or "is working" or any other variation. These expressions can mean anything and at same time doesn´t bring any useful information. As soon you rewrite these expressions, you naturally going to be more precise and clear.

2 - Provide us as much information as possible

To help us to understand your issue, provide with your bug report all the relevant informations, such as:

OBS: To post a source code in your issue, please use the markdown below:

print('Your source code goes here');

3 - How To Reproduce the Error

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

...or if you prefer, you can provide us a simple example app on GitHub with the issue already reproduced instead of the steps 2 and 3.

4 - Expected behavior

A clear and concise description of what you expected to happen.

5 - Screenshots

If applicable, add screenshots to help explain your problem.

6 - Additional context

Add any other context about the problem here.

honeal commented 11 months ago

Getting the same issue with pubspec:

awesome_notifications_core: ^0.7.6
awesome_notifications: any
awesome_notifications_fcm: any
gouravAntino commented 11 months ago

try awesome_notifications: 0.7.4+1 or awesome_notifications_core: 0.7.6

rafaelsetragni commented 11 months ago

You gonna need to clean your project to ensure to use the most updated version. This is happening yet because your core libraries at iOS native still the same, but the rest was updated.}

Also, you can use flutter pub upgrade to ensure that all your packages are up to date.

viniciusoliverrs commented 11 months ago

Any solution to resolve this?

moesaid commented 11 months ago

@rafaelsetragni I got the same issue, after making sure pods and packages were updated and the project build was clean.

to be precise DartBackgroundExecutor all the loggers in that class are complaining

rafaelsetragni commented 11 months ago

When you run pub get what versions of awesome are being printed?

moesaid commented 11 months ago

When you run pub get what versions of awesome are being printed?

awesome_notifications 0.7.7 awesome_notifications_core 0.7.6 awesome_notifications_fcm 0.7.6

rafaelsetragni commented 11 months ago

Try to run pod update inside ios folder

arya-anggara commented 11 months ago

Try to run pod update inside ios folder

still not working

PedroCovadelB commented 11 months ago

I update to:

awesome_notifications: ^0.7.4+1 awesome_notifications_core: ^0.7.4+1

and this problem still shows:

Could not build the precompiled application for the device. Swift Compiler Error (Xcode): Type 'Logger' has no member 'e' /Users/pedrocovarrubias/.pub-cache/hosted/pub.dev/awesome_notifications-0.7.7/ios/Classes/lib/DartBackgroundExecutor.swift:97:19

someone can help?

gouravAntino commented 11 months ago

I solved it with deleting podfile.lock and pubspec.lock. After that using old awesome notification version and doing flutter pub get and pod install

nsubash38 commented 11 months ago

Same here. Tried everything from cleaning project to running pub get time and again. Nothing is working. Anyone have any idea last working version ? Or any temp work around?

MarsTheMan commented 11 months ago

I solved it with deleting podfile.lock and pubspec.lock. After that using old awesome notification version and doing flutter pub get and pod install

Didnt work for me. I am stuck in awesome_notifications 0.7.7 awesome_notifications_core 0.7.6 awesome_notifications_fcm 0.7.6

Xcode error: Στιγμιότυπο οθόνης 2023-10-01, 6 07 57 μμ

I think the Logger library is not includes in your release.

rafaelsetragni commented 11 months ago

It is, i just compile it right now. Here is the result of my pod update:

rafaelsetragni@Rafaels-Mac-mini ios % pod update
Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
Update all pods
Updating local specs repositories
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '10.15.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '10.15.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.15.0' defined in 'firebase_core'
Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
Warning: firebase_app_id_file.json file does not exist. This may cause issues in upload-symbols. If this error is unexpected, try running flutterfire configure again.
firebase_crashlytics: Using Firebase SDK version '10.15.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '10.15.0' defined in 'firebase_core'
Downloading dependencies
Installing BoringSSL-GRPC (0.0.24)
Installing DKImagePickerController (4.3.4)
Installing DKPhotoGallery (0.0.17)
Installing FMDB (2.7.5)
Installing Firebase (10.15.0)
Installing FirebaseAppCheckInterop (10.15.0)
Installing FirebaseAuth (10.15.0)
Installing FirebaseAuthInterop (10.15.0)
Installing FirebaseCore (10.15.0)
Installing FirebaseCoreExtension (10.15.0)
Installing FirebaseCoreInternal (10.15.0)
Installing FirebaseCrashlytics (10.15.0)
Installing FirebaseFirestore (10.15.0)
Installing FirebaseInstallations (10.15.0)
Installing FirebaseMessaging (10.15.0)
Installing FirebaseSessions (10.15.0)
Installing FirebaseStorage (10.15.0)
Installing Flutter (1.0.0)
Installing GTMSessionFetcher (3.1.1)
Installing GoogleDataTransport (9.2.5)
Installing GoogleUtilities (7.11.5)
Installing IosAwnCore (0.7.7)
Installing IosAwnFcmDist (0.7.6)
Installing Mantle (2.2.0)
Installing PromisesObjC (2.3.1)
Installing PromisesSwift (2.3.1)
Installing ReachabilitySwift (5.0.0)
Installing RecaptchaInterop (100.0.0)
Installing SDWebImage (5.18.2)
Installing SDWebImageWebPCoder (0.13.0)
Installing SwiftyGif (5.4.4)
Installing Toast (4.0.0)
Installing abseil (1.20220623.0)
Installing awesome_notifications (0.7.6)
Installing awesome_notifications_core (0.0.1)
Installing awesome_notifications_fcm (0.7.5)
Installing cloud_firestore (4.9.2)
Installing connectivity_plus (0.0.1)
Installing device_info_plus (0.0.1)
Installing file_picker (0.0.1)
Installing firebase_auth (4.10.0)
Installing firebase_core (2.16.0)
Installing firebase_crashlytics (3.3.6)
Installing firebase_storage (11.2.7)
Installing flutter_image_compress_common (1.0.0)
Installing flutter_native_image (0.0.1)
Installing flutter_secure_storage (6.0.0)
Installing fluttertoast (0.0.2)
Installing gRPC-C++ (1.50.1)
Installing gRPC-Core (1.50.1)
Installing image_picker_ios (0.0.1)
Installing leveldb-library (1.22.2)
Installing libwebp (1.3.2)
Installing nanopb (2.30909.0)
Installing package_info_plus (0.4.5)
Installing path_provider_foundation (0.0.1)
Installing permission_handler_apple (9.1.1)
Installing photo_manager (2.0.0)
Installing share_plus (0.0.1)
Installing shared_preferences_foundation (0.0.1)
Installing sqflite (0.0.3)
Installing url_launcher_ios (0.0.1)
Installing webview_flutter_wkwebview (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 26 dependencies from the Podfile and 63 total pods installed.

The most important part is to certify that you are using the lastest core libraries:

Installing IosAwnCore (0.7.7)
Installing IosAwnFcmDist (0.7.6)

Here is the official release on cocoapods, where you can check the last version available:

https://cocoapods.org/pods/IosAwnCore https://cocoapods.org/pods/IosAwnFcmDist

MarsTheMan commented 11 months ago

Analyzing dependencies firebase_core: Using Firebase SDK version '10.15.0' defined in 'firebase_core' Run script to upload symbols already exists. firebase_crashlytics: Using Firebase SDK version '10.15.0' defined in 'firebase_core' firebase_dynamic_links: Using Firebase SDK version '10.15.0' defined in 'firebase_core' Downloading dependencies Installing FMDB (2.7.5) Installing Firebase (10.15.0) Installing FirebaseCore (10.15.0) Installing FirebaseCoreExtension (10.15.0) Installing FirebaseCoreInternal (10.15.0) Installing FirebaseCrashlytics (10.15.0) Installing FirebaseDynamicLinks (10.15.0) Installing FirebaseInstallations (10.15.0) Installing FirebaseMessaging (10.15.0) Installing FirebaseSessions (10.15.0) Installing Flutter (1.0.0) Installing GTMSessionFetcher (2.3.0) Installing GoogleDataTransport (9.2.5) Installing GoogleMLKit (4.0.0) Installing GoogleMaps (7.4.0) Installing GoogleToolboxForMac (2.3.2) Installing GoogleUtilities (7.11.5) Installing GoogleUtilitiesComponents (1.1.0) Installing IosAwnCore (0.7.7) Installing IosAwnFcmDist (0.7.6) Installing MLImage (1.0.0-beta4) Installing MLKitBarcodeScanning (3.0.0) Installing MLKitCommon (9.0.0) Installing MLKitTextRecognition (2.0.0) Installing MLKitTextRecognitionCommon (1.0.0) Installing MLKitVision (5.0.0) Installing Mantle (2.2.0) Installing OrderedSet (5.0.0) Installing PromisesObjC (2.3.1) Installing PromisesSwift (2.3.1) Installing ReachabilitySwift (5.0.0) Installing SDWebImage (5.18.2) Installing SDWebImageWebPCoder (0.13.0) Installing Stripe (23.12.0) Installing StripeApplePay (23.12.0) Installing StripeCore (23.12.0) Installing StripeFinancialConnections (23.12.0) Installing StripePaymentSheet (23.12.0) Installing StripePayments (23.12.0) Installing StripePaymentsUI (23.12.0) Installing StripeUICore (23.12.0) Installing WeScan (1.7.0) Installing awesome_notifications (0.7.6) Installing awesome_notifications_fcm (0.7.5) Installing connectivity_plus (0.0.1) Installing device_info_plus (0.0.1) Installing edge_detection (1.1.2) Installing firebase_core (2.16.0) Installing firebase_crashlytics (3.3.6) Installing firebase_dynamic_links (5.3.6) Installing flutter_blue_plus (0.0.1) Installing flutter_fgbg (0.0.1) Installing flutter_image_compress_common (1.0.0) Installing flutter_inappwebview (0.0.1) Installing flutter_native_splash (0.0.1) Installing flutter_secure_storage (6.0.0) Installing geocoding_ios (1.0.5) Installing geolocator_apple (1.2.0) Installing google_maps_flutter_ios (0.0.1) Installing google_mlkit_commons (0.5.0) Installing google_mlkit_text_recognition (0.10.0) Installing image_picker_ios (0.0.1) Installing libwebp (1.3.2) Installing local_auth_ios (0.0.1) Installing mobile_scanner (3.2.0) Installing nanopb (2.30909.0) Installing package_info_plus (0.4.5) Installing path_provider_foundation (0.0.1) Installing pay_ios (0.0.1) Installing permission_handler_apple (9.1.1) Installing share_plus (0.0.1) Installing shared_preferences_foundation (0.0.1) Installing sign_in_with_apple (0.0.1) Installing sqflite (0.0.3) Installing stripe_ios (0.0.1) Installing url_launcher_ios (0.0.1) Installing vibration (1.7.5) Installing webview_flutter_wkwebview (0.0.1) Generating Pods project Integrating client project Pod installation complete! There are 35 dependencies from the Podfile and 78 total pods installed.

But I still have the same problem with Logger...

Στιγμιότυπο οθόνης 2023-10-01, 9 33 23 μμ

rafaelsetragni commented 11 months ago

Guys, once again, you need to update your libraries with flutter pub upgrade. This error is because your libraries are outdated. This logger class was changed to use interfaces and singletons on the last version, and the old version uses static methods.

MarsTheMan commented 11 months ago

Analyzing dependencies firebase_core: Using Firebase SDK version '10.15.0' defined in 'firebase_core' Run script to upload symbols already exists. firebase_crashlytics: Using Firebase SDK version '10.15.0' defined in 'firebase_core' firebase_dynamic_links: Using Firebase SDK version '10.15.0' defined in 'firebase_core' Downloading dependencies Installing FMDB (2.7.5) Installing Firebase (10.15.0) Installing FirebaseCore (10.15.0) Installing FirebaseCoreExtension (10.15.0) Installing FirebaseCoreInternal (10.15.0) Installing FirebaseCrashlytics (10.15.0) Installing FirebaseDynamicLinks (10.15.0) Installing FirebaseInstallations (10.15.0) Installing FirebaseMessaging (10.15.0) Installing FirebaseSessions (10.15.0) Installing Flutter (1.0.0) Installing GTMSessionFetcher (2.3.0) Installing GoogleDataTransport (9.2.5) Installing GoogleMLKit (4.0.0) Installing GoogleMaps (7.4.0) Installing GoogleToolboxForMac (2.3.2) Installing GoogleUtilities (7.11.5) Installing GoogleUtilitiesComponents (1.1.0) Installing IosAwnCore (0.7.7) Installing IosAwnFcmDist (0.7.6) Installing MLImage (1.0.0-beta4) Installing MLKitBarcodeScanning (3.0.0) Installing MLKitCommon (9.0.0) Installing MLKitTextRecognition (2.0.0) Installing MLKitTextRecognitionCommon (1.0.0) Installing MLKitVision (5.0.0) Installing Mantle (2.2.0) Installing OrderedSet (5.0.0) Installing PromisesObjC (2.3.1) Installing PromisesSwift (2.3.1) Installing ReachabilitySwift (5.0.0) Installing SDWebImage (5.18.2) Installing SDWebImageWebPCoder (0.13.0) Installing Stripe (23.12.0) Installing StripeApplePay (23.12.0) Installing StripeCore (23.12.0) Installing StripeFinancialConnections (23.12.0) Installing StripePaymentSheet (23.12.0) Installing StripePayments (23.12.0) Installing StripePaymentsUI (23.12.0) Installing StripeUICore (23.12.0) Installing WeScan (1.7.0) Installing awesome_notifications (0.7.6) Installing awesome_notifications_core (0.0.1) Installing awesome_notifications_fcm (0.7.5) Installing connectivity_plus (0.0.1) Installing device_info_plus (0.0.1) Installing edge_detection (1.1.2) Installing firebase_core (2.16.0) Installing firebase_crashlytics (3.3.6) Installing firebase_dynamic_links (5.3.6) Installing flutter_blue_plus (0.0.1) Installing flutter_fgbg (0.0.1) Installing flutter_image_compress_common (1.0.0) Installing flutter_inappwebview (0.0.1) Installing flutter_native_splash (0.0.1) Installing flutter_secure_storage (6.0.0) Installing geocoding_ios (1.0.5) Installing geolocator_apple (1.2.0) Installing google_maps_flutter_ios (0.0.1) Installing google_mlkit_commons (0.5.0) Installing google_mlkit_text_recognition (0.10.0) Installing image_picker_ios (0.0.1) Installing libwebp (1.3.2) Installing local_auth_ios (0.0.1) Installing mobile_scanner (3.2.0) Installing nanopb (2.30909.0) Installing package_info_plus (0.4.5) Installing path_provider_foundation (0.0.1) Installing pay_ios (0.0.1) Installing permission_handler_apple (9.1.1) Installing share_plus (0.0.1) Installing shared_preferences_foundation (0.0.1) Installing sign_in_with_apple (0.0.1) Installing sqflite (0.0.3) Installing stripe_ios (0.0.1) Installing url_launcher_ios (0.0.1) Installing vibration (1.7.5) Installing webview_flutter_wkwebview (0.0.1) Generating Pods project Integrating client project Pod installation complete! There are 36 dependencies from the Podfile and 79 total pods installed.

Agreed... but it is already updated. Στιγμιότυπο οθόνης 2023-10-01, 9 40 59 μμ

And the error: Στιγμιότυπο οθόνης 2023-10-01, 9 43 07 μμ

MarsTheMan commented 11 months ago

@rafaelsetragni What is your Xcode version?

To Logger Class and Protocol. Is it the right one? Στιγμιότυπο οθόνης 2023-10-01, 9 52 52 μμ

rafaelsetragni commented 11 months ago

image Running on MacOS 14 Sonoma

and cocoapods: 1.13.0

rafaelsetragni commented 11 months ago

@rafaelsetragni What is your Xcode version?

To Logger Class and Protocol. Is it the right one? Στιγμιότυπο οθόνης 2023-10-01, 9 52 52 μμ

Yes, it is. I need to use this approach to integrate with Firebase Crashlytics in the next versions.

MarsTheMan commented 11 months ago

Mine is 14.3.1 Στιγμιότυπο οθόνης 2023-10-01, 10 11 54 μμ Could this be the problem?

Clon1998 commented 11 months ago

Even with the suggestions posted in the discord I have the exact same problem.

pub get:

  awesome_notifications 0.7.7
  awesome_notifications_core 0.7.6
  awesome_notifications_fcm 0.7.6

pod install/ pod update:

Installing IosAwnCore (0.7.7)
Installing IosAwnFcmDist (0.7.6)
...

I am on Xcode 15.0

raymondloonmd commented 11 months ago

Same issue I am using Xcode 15 and awesome_notifications 0.7.7

tigrenok00 commented 11 months ago

Same problems here. Right now I can't even go back to 0.7.4+1 because the same error persists, it seems like it keeps using 0.7.7 even though I cleaned pub cache, not sure what to do?

Shinbly commented 11 months ago

Same Issue using Xcode 15 and awesome_notifications 0.7.7. I can't go back to 0.7.5 either , even after cleanning cache deleting Pod folder and podfile.lock

10ndavis commented 11 months ago

I have tried all of the above steps, as well as the following (multiple times, multiple orders):

I am still getting errors, like many of the comments above.

charlesRmajor commented 11 months ago

(I hope this is not relevant for long!)

Needing a fix for this now, I forked and commented out references to the Logger. So, if you need a "works now," you can use my fork by updating your pubspec.yaml's awesome_notifications to:

    awesome_notifications:
        git:
            url: https://github.com/charlesRmajor/awesome_notifications

No promises on what will be working or not with this workaround, but it is building & working for me. I forked from the latest 0.8.0 version.

saguado69 commented 11 months ago

Same issue for me, was running ok on 0.7.4+1 but upgrading to 0.8.0 the Logger issue appeared and not able to go back to 0.7.4+1. Removing Pod, podfile.lock, pubspec.lock, etc ... nothing works. Running Flutter 3.13.6, Xcode 15, IOS Simulator 15. I just upgraded Flutter from version 3.7.12 and awesome_notifications: ^0.8.0 ( no core no fcm).

rafaelsetragni commented 11 months ago

I uploaded all libraries with major version 0.8.0. Update it and try again:

dependencies:
  awesome_notifications_core: ^0.8.1
  awesome_notifications: any
  awesome_notifications_fcm: any # <- The other plugins are optional

Maybe you gonna need to execute flutter clean, and flutter pub get and flutter pub upgrade once again to ensure that all versions will be updated.

The result that you need to see after these commands in pub get are this:

> awesome_notifications 0.8.2 (was 0.7.7)
  awesome_notifications_core 0.8.1
> awesome_notifications_fcm 0.8.0 (was 0.7.6)
raymondloonmd commented 11 months ago

Hope this helps, unfortunately since I had limited time, I was only able to get this to run by. Running this via deployment 13 from my original 12. (17 also worked, but ran into issues with connectivity_plus plugin). I backed up my iOS directory and then deleted it. I ran:flutter create .

flutter pub cache clean flutter clean flutter pub get Added back my plist, entitlement etc. to iOS and added platform: 13.0 to my Podfile then set the deployment version to 13(17 for plus)

10ndavis commented 11 months ago

@rafaelsetragni You're amazing. Our app is able to compile.

Not sure if it is relevant, but I'll add it just in case anyone else needs things to try. I also updated my XCode Project Format to Xcode 15.0. I had it on 14 before.

rafaelsetragni commented 11 months ago

I'm in shock how .lock files are so insistent to keeping old versions, even updating the major version to 8.

To ensure that everything is updated, use the yaml below:

dependencies:
  awesome_notifications_core: ^0.8.1
  awesome_notifications: ^0.8.2
  awesome_notifications_fcm: ^0.8.0

Later I'll figure out a better way to make sure all the libraries are up to date and match each other.

10ndavis commented 11 months ago

@rafaelsetragni it's quite annoying to say the least.

I appreciate you getting on this so quickly! Today is our company's go-live for push notifications using your package-- so your fix came just in time 😄

MarsTheMan commented 11 months ago

@rafaelsetragni Thank you. It compiles now!

raymondloonmd commented 11 months ago

@rafaelsetragni awesome, it works now! thanks a million !

guyluz11 commented 11 months ago

xcode 15, macos 14 sonoma, cocoapods last version, emulator and phone ios 17

Flutter 3.13.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision ead455963c (6 days ago) • 2023-09-26 18:28:17 -0700 Engine • revision a794cf2681 Tools • Dart 3.1.3 • DevTools 2.25.0

Using

dependencies:
  awesome_notifications_core: ^0.8.1
  awesome_notifications: ^0.8.2
  awesome_notifications_fcm: ^0.8.0

On real phone getting this error

Could not build the precompiled application for the device.
Error (Xcode): Sandbox: rsync.samba(30335) deny(1) file-write-create /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Flutter.framework

Error (Xcode): Sandbox: dart(30315) deny(1) file-write-create /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/.last_build_id

Error (Xcode): Flutter failed to write to a file at "/Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/.last_build_id".

Error launching application on Shahar's IPhone.

Solved with this https://github.com/flutter/flutter/issues/128739

disabled ENABLE_USER_SCRIPT_SANDBOXING is working for me.

1.  Open the Xcode project.
2.  Click on the project name in the left sidebar to open the project settings.
3.  Select the target you want to check in the "Targets" section.
4.  Click on the "Build Settings" tab.
5.  In the search bar, type "ENABLE_USER_SCRIPT_SANDBOXING".
6.  If the value of ENABLE_USER_SCRIPT_SANDBOXING is set to "No", then it is disabled. If it is set to "Yes", then it is enabled.

Now getting a different error

Launching lib/main.dart on Shahar's IPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 9ZU62NBH4Z
Running pod install...
Running Xcode build...
Xcode build done.                                           39.7s
Failed to build iOS app
Could not build the precompiled application for the device.
Error (Xcode): Cycle inside Runner; building could produce unreliable results.
Cycle details:
→ Target 'Runner': ExtractAppIntentsMetadata
○ Target 'Runner' has copy command from '/Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/AwesomeServiceExtension.appex' to '/Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/PlugIns/AwesomeServiceExtension.appex'
○ That command depends on command in Target 'Runner': script phase "Thin Binary"
○ Target 'Runner' has process command with output '/Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/Info.plist'
○ Target 'Runner' has copy command from '/Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/AwesomeServiceExtension.appex' to '/Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/PlugIns/AwesomeServiceExtension.appex'

Raw dependency cycle trace:

target:  ->

node: <all> ->

command: <all> ->

node: /Users/shahar/Library/Developer/Xcode/DerivedData/Runner-fnugzdxlcopubvahlxgeodnkykmz/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/arm64/ExtractedAppShortcutsMetadata.stringsdata ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ExtractAppIntentsMetadata ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase7--firebase-crashlytics--crashlytics-upload-symbols> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase7--firebase-crashlytics--crashlytics-upload-symbols ->

node: /Users/shahar/Library/Developer/Xcode/DerivedData/Runner-fnugzdxlcopubvahlxgeodnkykmz/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-BC11CAE13E2DC45C0B5D946E.sh ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:WriteAuxiliaryFile /Users/shahar/Library/Developer/Xcode/DerivedData/Runner-fnugzdxlcopubvahlxgeodnkykmz/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-BC11CAE13E2DC45C0B5D946E.sh ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase6-copy-files> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase6-copy-files ->

node: <Copy /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/PlugIns/AwesomeServiceExtension.appex> ->

CYCLE POINT ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/PlugIns/AwesomeServiceExtension.appex /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/AwesomeServiceExtension.appex ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5--cp--embed-pods-frameworks> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5--cp--embed-pods-frameworks ->

node: /Users/shahar/Library/Developer/Xcode/DerivedData/Runner-fnugzdxlcopubvahlxgeodnkykmz/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-1C3A44BFFC5025545F5E8B2C-Pods-Runner-frameworks-Debug-input-files-d88ddd2ecbce107c5ee125cb56f6064b-resolved.xcfilelist ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:WriteAuxiliaryFile /Users/shahar/Library/Developer/Xcode/DerivedData/Runner-fnugzdxlcopubvahlxgeodnkykmz/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-1C3A44BFFC5025545F5E8B2C-Pods-Runner-frameworks-Debug-input-files-d88ddd2ecbce107c5ee125cb56f6064b-resolved.xcfilelist ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase4-thin-binary> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase4-thin-binary ->

node: <execute-shell-script-18c1723432283e0cc55f10a6dcfd9e02f1eee2015e8ff5ebcd27678f788c2826-target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-> ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:PhaseScriptExecution Thin Binary /Users/shahar/Library/Developer/Xcode/DerivedData/Runner-fnugzdxlcopubvahlxgeodnkykmz/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh ->

node: /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/Info.plist/ ->

directoryTreeSignature: c ->

directoryContents: /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/Info.plist ->

node: /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/Info.plist ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ProcessInfoPlistFile /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/Info.plist /Users/shahar/StudioProjects/frontend/apps/users_app/ios/Runner/Info.plist ->

node: /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/PlugIns/AwesomeServiceExtension.appex ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/PlugIns/AwesomeServiceExtension.appex /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/AwesomeServiceExtension.appex

Error launching application on Shahar's IPhone.

Any idea?

Clon1998 commented 11 months ago

xcode 15, macos 14 sonoma, cocoapods last version, emulator and phone ios 17

Flutter 3.13.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision ead455963c (6 days ago) • 2023-09-26 18:28:17 -0700 Engine • revision a794cf2681 Tools • Dart 3.1.3 • DevTools 2.25.0

Using

dependencies:
  awesome_notifications_core: ^0.8.1
  awesome_notifications: ^0.8.2
  awesome_notifications_fcm: ^0.8.0

On real phone getting this error

Could not build the precompiled application for the device.
Error (Xcode): Sandbox: rsync.samba(30335) deny(1) file-write-create /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Flutter.framework

Error (Xcode): Sandbox: dart(30315) deny(1) file-write-create /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/.last_build_id

Error (Xcode): Flutter failed to write to a file at "/Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/.last_build_id".

Error launching application on Shahar's IPhone.

Solved with this flutter/flutter#128739

disabled ENABLE_USER_SCRIPT_SANDBOXING is working for me.

1.    Open the Xcode project.
2.    Click on the project name in the left sidebar to open the project settings.
3.    Select the target you want to check in the "Targets" section.
4.    Click on the "Build Settings" tab.
5.    In the search bar, type "ENABLE_USER_SCRIPT_SANDBOXING".
6.    If the value of ENABLE_USER_SCRIPT_SANDBOXING is set to "No", then it is disabled. If it is set to "Yes", then it is enabled.

Now getting a different error

Launching lib/main.dart on Shahar's IPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 9ZU62NBH4Z
Running pod install...
Running Xcode build...
Xcode build done.                                           39.7s
Failed to build iOS app
Could not build the precompiled application for the device.
Error (Xcode): Cycle inside Runner; building could produce unreliable results.
Cycle details:
→ Target 'Runner': ExtractAppIntentsMetadata
○ Target 'Runner' has copy command from '/Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/AwesomeServiceExtension.appex' to '/Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/PlugIns/AwesomeServiceExtension.appex'
○ That command depends on command in Target 'Runner': script phase "Thin Binary"
○ Target 'Runner' has process command with output '/Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/Info.plist'
○ Target 'Runner' has copy command from '/Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/AwesomeServiceExtension.appex' to '/Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/PlugIns/AwesomeServiceExtension.appex'

Raw dependency cycle trace:

target:  ->

node: <all> ->

command: <all> ->

node: /Users/shahar/Library/Developer/Xcode/DerivedData/Runner-fnugzdxlcopubvahlxgeodnkykmz/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/arm64/ExtractedAppShortcutsMetadata.stringsdata ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ExtractAppIntentsMetadata ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase7--firebase-crashlytics--crashlytics-upload-symbols> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase7--firebase-crashlytics--crashlytics-upload-symbols ->

node: /Users/shahar/Library/Developer/Xcode/DerivedData/Runner-fnugzdxlcopubvahlxgeodnkykmz/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-BC11CAE13E2DC45C0B5D946E.sh ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:WriteAuxiliaryFile /Users/shahar/Library/Developer/Xcode/DerivedData/Runner-fnugzdxlcopubvahlxgeodnkykmz/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-BC11CAE13E2DC45C0B5D946E.sh ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase6-copy-files> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase6-copy-files ->

node: <Copy /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/PlugIns/AwesomeServiceExtension.appex> ->

CYCLE POINT ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/PlugIns/AwesomeServiceExtension.appex /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/AwesomeServiceExtension.appex ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5--cp--embed-pods-frameworks> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5--cp--embed-pods-frameworks ->

node: /Users/shahar/Library/Developer/Xcode/DerivedData/Runner-fnugzdxlcopubvahlxgeodnkykmz/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-1C3A44BFFC5025545F5E8B2C-Pods-Runner-frameworks-Debug-input-files-d88ddd2ecbce107c5ee125cb56f6064b-resolved.xcfilelist ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:WriteAuxiliaryFile /Users/shahar/Library/Developer/Xcode/DerivedData/Runner-fnugzdxlcopubvahlxgeodnkykmz/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-1C3A44BFFC5025545F5E8B2C-Pods-Runner-frameworks-Debug-input-files-d88ddd2ecbce107c5ee125cb56f6064b-resolved.xcfilelist ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase4-thin-binary> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase4-thin-binary ->

node: <execute-shell-script-18c1723432283e0cc55f10a6dcfd9e02f1eee2015e8ff5ebcd27678f788c2826-target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-> ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:PhaseScriptExecution Thin Binary /Users/shahar/Library/Developer/Xcode/DerivedData/Runner-fnugzdxlcopubvahlxgeodnkykmz/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh ->

node: /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/Info.plist/ ->

directoryTreeSignature: c ->

directoryContents: /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/Info.plist ->

node: /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/Info.plist ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ProcessInfoPlistFile /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/Info.plist /Users/shahar/StudioProjects/frontend/apps/users_app/ios/Runner/Info.plist ->

node: /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/PlugIns/AwesomeServiceExtension.appex ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/Runner.app/PlugIns/AwesomeServiceExtension.appex /Users/shahar/StudioProjects/frontend/apps/users_app/build/ios/Debug-iphoneos/AwesomeServiceExtension.appex

Error launching application on Shahar's IPhone.

Any idea?

image

Original Msg

tinyCoder32 commented 11 months ago

Having the same issue here on Sonoma and the latest iOS, even with the proposed solution:

image
github-actions[bot] commented 9 months ago

This issue was automatically closed due inactivity, but can be reopened at any time.