Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios not runiing OneSignalNotificationServiceExtension.appex' [Bug]: #907

Open
2 of 3 tasks
mhamdimno opened this issue Jun 21, 2024 · 5 comments
Open
2 of 3 tasks

Comments

@mhamdimno
Copy link

mhamdimno commented Jun 21, 2024

What happened?

Cycle inside Runner; building could produce unreliable results.
Cycle details:
→ Target 'Runner' has copy command from '/Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/OneSignalNotificationServiceExtension.appex' to '/Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex'
○ Target 'Runner'
○ That command depends on command in Target 'Runner': script phase “Thin Binary”
○ Target 'Runner' has process command with output '/Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/Runner.app/Info.plist'
○ Target 'Runner' has copy command from '/Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/OneSignalNotificationServiceExtension.appex' to '/Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex'

Raw dependency cycle trace:

target: ->

node: ->

command: ->

node: /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/ExtractedAppShortcutsMetadata.stringsdata ->

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

node: /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/Runner.SwiftConstValuesFileList ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Release:WriteAuxiliaryFile /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/Runner.SwiftConstValuesFileList ->

node: ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase9-flutterfire---flutterfire-upload-crashlytics-symbols- ->

node: /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/Script-155C020AD9CEE48E1F9E7D8A.sh ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Release:WriteAuxiliaryFile /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/Script-155C020AD9CEE48E1F9E7D8A.sh ->

node: ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase8-run-script ->

node: /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/Script-A1F21D8D29E734DE0031CACD.sh ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Release:WriteAuxiliaryFile /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/Script-A1F21D8D29E734DE0031CACD.sh ->

node: ->

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

node: <Copy /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex> ->

CYCLE POINT ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Release:Copy /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/OneSignalNotificationServiceExtension.appex ->

node: ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase6-run-script ->

node: /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/Script-A150044027FF43B400FA46B3.sh ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Release:WriteAuxiliaryFile /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/Script-A150044027FF43B400FA46B3.sh ->

node: ->

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

node: /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/InputFileList-FB45D99221D72B923340C6C0-Pods-Runner-frameworks-Release-input-files-b37dafada050e753b24de03588885f04-resolved.xcfilelist ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Release:WriteAuxiliaryFile /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/InputFileList-FB45D99221D72B923340C6C0-Pods-Runner-frameworks-Release-input-files-b37dafada050e753b24de03588885f04-resolved.xcfilelist ->

node: ->

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

node: ->

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

node: /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/Runner.app/Info.plist/ ->

directoryTreeSignature: � ->

directoryContents: /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/Runner.app/Info.plist ->

node: /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/Runner.app/Info.plist ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Release:ProcessInfoPlistFile /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/Runner.app/Info.plist /Volumes/Data/Downloads/Door Access Flutter App/ios/Runner/Info.plist ->

node: /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Release:Copy /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex /Users/aonewaytoallah/Library/Developer/Xcode/DerivedData/Runner-buauwkjbvptgdeajlgsfunoxlucp/Build/Products/Release-iphoneos/OneSignalNotificationServiceExtension.appex

Steps to reproduce?

follow docs for one signal flutter for ios

What did you expect to happen?

follow docs for one signal flutter for ios

OneSignal Flutter SDK version

3.4.1

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

follow docs for one signal flutter for ios

Code of Conduct

  • I agree to follow this project's Code of Conduct
@MuhibAhmed
Copy link

same issue

@bhavsarsuraj
Copy link

bhavsarsuraj commented Aug 7, 2024

@mhamdimno @MuhibAhmed Please try keeping Embed Foundation Extensions just below the Copy Bundle Resources in the Xcode Build Phases configuration. This will solve your problem, attaching screenshot below for your reference
Screenshot 2024-08-07 at 5 42 28 PM

@andynvt
Copy link

andynvt commented Nov 26, 2024

@mhamdimno @MuhibAhmed Please try keeping Embed Foundation Extensions just below the Copy Bundle Resources in the Xcode Build Phases configuration. This will solve your problem, attaching screenshot below for your reference Screenshot 2024-08-07 at 5 42 28 PM

Thank you. It works for me. In case your XCode is 15.4 and above (my case is 15.4), there is an Embed App Extensions needs to be moved right below Copy Bundle Resources

ScreenShot 2024-11-26 at 09 44 16

@jennantilla
Copy link
Contributor

Thanks @bhavsarsuraj for providing a solution!

Has this worked for everyone? Any objections to closing this issue?

@BrutalCoding
Copy link

BrutalCoding commented Dec 13, 2024

to closing this issue?

Well, I'd like to see the documentation updated to reflect this important step. I lost a couple hours searching for a solution, not a good first time experience :D

(solution worked btw)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants