Closed melihcelik09 closed 1 month ago
Based on the Issues it seems one important thing is definitely that you missed setting the app groups.
Can you also try to clean and reinstall your pods given that it looks like a pod issue based on the output you shared
Based on the Issues it seems one important thing is definitely that you missed setting the app groups.
Can you also try to clean and reinstall your pods given that it looks like a pod issue based on the output you shared
Actually i already set that but still not enough to add widget on simulator.
I decide to try fresh installation on new project but when i try to add widget on ios, i got a error like this from simulator. I can not add widget ios 18 please help.
Cycle inside Runner; building could produce unreliable results.
Cycle details:
→ Target 'Runner' has copy command from '/Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/steelwidgetExtension.appex' to '/Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/steelwidgetExtension.appex'
○ That command depends on command in Target 'Runner': script phase “Thin Binary”
○ Target 'Runner' has process command with output '/Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist'
○ Target 'Runner' has copy command from '/Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/steelwidgetExtension.appex' to '/Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/steelwidgetExtension.appex'
Raw dependency cycle trace:
target: ->
node: <all> ->
command: <all> ->
node: /Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Objects-normal/x86_64/ExtractedAppShortcutsMetadata.stringsdata ->
command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ExtractAppIntentsMetadata ->
node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase6--cp--embed-pods-frameworks> ->
command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase6--cp--embed-pods-frameworks ->
node: /Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/home_widget.framework ->
command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:PhaseScriptExecution [CP] Embed Pods Frameworks /Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Script-66A568299878DB44B52EB701.sh ->
node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5-copy-files> ->
command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5-copy-files ->
node: <Copy /Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/steelwidgetExtension.appex> ->
CYCLE POINT ->
command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/steelwidgetExtension.appex /Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/steelwidgetExtension.appex ->
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/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh ->
node: /Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist/ ->
directoryTreeSignature: � ->
directoryContents: /Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist ->
node: /Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist ->
command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ProcessInfoPlistFile /Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist /Users/melihcelik/Desktop/home_widget_implementation/ios/Runner/Info.plist ->
node: /Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/steelwidgetExtension.appex ->
command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/steelwidgetExtension.appex /Users/melihcelik/Library/Developer/Xcode/DerivedData/Runner-crslpztcmicethdwwcbqvelvpkuv/Build/Products/Debug-iphonesimulator/steelwidgetExtension.appex
SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget 'com.example.homeWidgetImplementation.steelwidget' error: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace)., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000c21f20 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'steelwidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'steelwidget'}}, FBSOpenApplicationRequestID=0xa206, NSLocalizedDescription=The request to open "com.apple.springboard" failed.}." UserInfo={NSLocalizedDescription=Failed to show Widget 'com.example.homeWidgetImplementation.steelwidget' error: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace)., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000c21f20 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'steelwidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'steelwidget'}}, FBSOpenApplicationRequestID=0xa206, NSLocalizedDescription=The request to open "com.apple.springboard" failed.}., NSUnderlyingError=0x600000c21e60 {Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace)., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000c21f20 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'steelwidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'steelwidget'}}, FBSOpenApplicationRequestID=0xa206, NSLocalizedDescription=The request to open "com.apple.springboard" failed.}}}
Domain: DTXMessage
Code: 1
User Info: {
DVTErrorCreationDateKey = "2024-09-26 12:55:29 +0000";
}
--
SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget 'com.example.homeWidgetImplementation.steelwidget' error: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace)., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000c21f20 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'steelwidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'steelwidget'}}, FBSOpenApplicationRequestID=0xa206, NSLocalizedDescription=The request to open "com.apple.springboard" failed.}." UserInfo={NSLocalizedDescription=Failed to show Widget 'com.example.homeWidgetImplementation.steelwidget' error: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace)., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000c21f20 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'steelwidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'steelwidget'}}, FBSOpenApplicationRequestID=0xa206, NSLocalizedDescription=The request to open "com.apple.springboard" failed.}., NSUnderlyingError=0x600000c21e60 {Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace)., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000c21f20 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'steelwidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'steelwidget'}}, FBSOpenApplicationRequestID=0xa206, NSLocalizedDescription=The request to open "com.apple.springboard" failed.}}}
Domain: DTXMessage
Code: 1
--
System Information
macOS Version 15.0 (Build 24A335)
Xcode 16.0 (23051) (Build 16A242d)
Timestamp: 2024-09-26T15:55:29+03:00
I can confirm the Cycle inside Runner error @melihcelik09 reports
Edit: This is not a home_widget error. It will also happen, if you just add a WidgetExtenstion via XCode (not even having home_widget in the project).
Fixed this by moving "Thin Binary" Build Phase to the bottom.
Fixed this by moving "Thin Binary" Build Phase to the bottom.
can u share with me build phases order screenshot maybe other people needs when they check issue
this is my build phases order
@melihcelik09 you have "Thin Binary" as second last item. Make it the last item.
@karlludwigweise i set it like that and after run it worked but still got a issue i can not add manually widget.
You can control error below
SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget 'com.example.homeWidgetImplementation.SteelWidget' error: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace)., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000c1e400 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'SteelWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'SteelWidget'}}, FBSOpenApplicationRequestID=0xc1aa, NSLocalizedDescription=The request to open "com.apple.springboard" failed.}." UserInfo={NSLocalizedDescription=Failed to show Widget 'com.example.homeWidgetImplementation.SteelWidget' error: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace)., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000c1e400 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'SteelWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'SteelWidget'}}, FBSOpenApplicationRequestID=0xc1aa, NSLocalizedDescription=The request to open "com.apple.springboard" failed.}., NSUnderlyingError=0x600000c1e2e0 {Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace)., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000c1e400 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'SteelWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'SteelWidget'}}, FBSOpenApplicationRequestID=0xc1aa, NSLocalizedDescription=The request to open "com.apple.springboard" failed.}}}
Domain: DTXMessage
Code: 1
User Info: {
DVTErrorCreationDateKey = "2024-09-27 07:11:39 +0000";
}
--
SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget 'com.example.homeWidgetImplementation.SteelWidget' error: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace)., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000c1e400 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'SteelWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'SteelWidget'}}, FBSOpenApplicationRequestID=0xc1aa, NSLocalizedDescription=The request to open "com.apple.springboard" failed.}." UserInfo={NSLocalizedDescription=Failed to show Widget 'com.example.homeWidgetImplementation.SteelWidget' error: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace)., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000c1e400 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'SteelWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'SteelWidget'}}, FBSOpenApplicationRequestID=0xc1aa, NSLocalizedDescription=The request to open "com.apple.springboard" failed.}., NSUnderlyingError=0x600000c1e2e0 {Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace)., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000c1e400 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'SteelWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'SteelWidget'}}, FBSOpenApplicationRequestID=0xc1aa, NSLocalizedDescription=The request to open "com.apple.springboard" failed.}}}
Domain: DTXMessage
Code: 1
--
System Information
macOS Version 15.0 (Build 24A335)
Xcode 16.0 (23051) (Build 16A242d)
Timestamp: 2024-09-27T10:11:39+03:00
That's another issue I can't help with.
It says something about Please specify the widget kind in the scheme's Environment Variables using the key ...
. That's a good starting point for you :)
Thanks to all ı figured out too many issues but still got a latest error if i run project from xcode widget automatically created but otherwise simulator instantly crashed.
I had a similar problem on Xcode 16.0 with the Cycle inside Runner; building could produce unreliable results
, and the advice of @karlludwigweise - of moving the " moving "Thin Binary" Build Phase to the bottom" worked. Thank you @karlludwigweise
I really appreciate to everyone. I figured out my issue so i can close the issue. @ABausG please add this methods in your documentation maybe other people easily solve that way.
First of all thanks everybody for coming into this. I actually was about to answer in here yesterday afternoon when I found the time but was happily surprised you all already took care of each others problems 🫶
@melihcelik09 would you have time opening a PR with a proposal where you would've wanted this content in the docs as well as in which form.
If you need help in adding things like screenshots I can help you in the PR.
I guess it should live in the iOS Setup Page? But as you just went through I think it would be great if you could provide the best place where it would've helped you the most.
What happened?
I followed some tutorials also documentation but i can not configured correctly. I got a too much error related with ios 18 configuration. For instance i implement home widget but when i try to add simulator instantly crashed.
Update
I was trying to run example project.It worked in ios 17.5. But my project still got a same issue.
What do you expect?
Someone help to how can i configured correctly?
Relevant log output
PlatformException(-7, AppGroupId not set. Call setAppGroupId first, null, null)
Execute in a terminal and put output into the code block below
Output of: flutter doctor -v
On which Platform do you experience this issue?
iOS
Other information
No response
Are you interested in working on a PR for this?