-
Notifications
You must be signed in to change notification settings - Fork 28.5k
iOS app extension errors with "Cycle inside Runner" when "Thin Binary" Build Phase is before "Embed Foundation Extensions" #135056
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
Comments
Workaround: In XCode, moving the "Embed Foundation Extensions" build phase to above "Run Script" solved the issue. At the moment, I'm not sure if there is anything Flutter can do to prevent this. |
I'm not actively working on this since there is an easy workaround. |
The change of "Embed Foundation Extensions" worked for me, but is there any reason why it happens? can it affect the performance of my app? |
I solved in this order. #135739 |
I re-downloaded xcode 14.3 and run it with the following command line. |
The user reports that it's failed to build the example with xcode 15 ``` Error (Xcode): Cycle inside Runner; building could produce unreliable results. Cycle details: → Target 'Runner': CodeSign /Users/joepritchard/Downloads/Agora-Flutter-SDK-main/example/build/ios/Debug-iphoneos/Runner.app ... ``` To fix it, we need to change the order in `Build Phases`. See - flutter/flutter#135739 - flutter/flutter#135056 (comment) I added a new job to cover this case and retained the old `build_ios` job to ensure this change does not affect the user with xcode version < 15.
#142907 My issue was closed by addressing it to related issues, but the problem is that I did all the suggested solutions, but I still get the error I created a test project and added a notification service extension to xCode. I changed the build phases there in the order of the queue and attach a screenshot. But I still get an error when building on a physical device. I have no idea at all how to solve it, because on my second computer on m2 pro, the same project runs without problems |
I updated the App Clip website to reflect the order needed for the build phases.
https://github.com/flutter/website/pull/10145/files#r1489922511 This should also be done for https://docs.flutter.dev/platform-integration/ios/app-extensions |
Is there a workaround that doesn't require opening the project with XCode? |
This comment was marked as duplicate.
This comment was marked as duplicate.
1 similar comment
This comment was marked as duplicate.
This comment was marked as duplicate.
Idk why also worked for weird.Image notification was not coming now it does |
@jmagman This issue is re-appearing! Flutter is always re-arranging the build phases in XCode when doing a fresh re-build of extensions or other embeded frameworks! Can't we be aware of this in the Flutter iOS scripts before this even happens? (Like re-arranging the build phases like it should be) |
@cyanglaz thank you :) |
Alternatively, clear setting "Input Files" inside "Thin Binary". This declares a dependency to |
part of #124287
When building iOS app extension with XCode 15, an error has shown:
This error prevents Flutter from supporting app extension for iOS 17 and above.
The text was updated successfully, but these errors were encountered: