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
[App.framework] Linked and embedded framework 'App.framework' was built for iOS/iOS Simulator #50568
Comments
As an update, just finished reinstalling the stable release of Xcode and using Something must have broken in 11.4 beta. |
I'm also on Xcode 11.4 beta and I just created a new app and was able to
|
Hi @jmagman, thanks for responding. Yes, I did do the first run and I have tried running through Xcode as well and it is throwing me the same error. Let it be noted that it can build for generic iOS devices, and can run on physical devices, but is only showing this error on simulators. With both Xcode's installed together, I can use the beta (11.4) simulator with stable Xcode (11.3.1) and it works correctly. So it must be something in Xcode 11.4 that is causing the issue. |
I briefly saw this error, and I'm not sure how to I got into or out of that state. It's failing to even start the build to get to the script that would assemble the right variant. We could swap App.framework to App.xcframework but that would be a nightmare of a project file migration... |
Does |
I reset my |
Glad you have a workaround, but this is concerning so I'm going to reopen until we understand how often this is happening. Can you let us know if you see it again, and how you got in that state? |
I had another machine that had a copy of the project on it. Using the If there are any other files you may want please let me know! |
With the rebuilt It appears that the first build of Deleting Again this only occurs with Xcode 11.4/Simulator 11.4. I did a build for physical devices which created an |
Can confirm, you have to remove I propose that when running Wrote to Apple's support to enquiry information about this change as this information cannot be found in their change logs (at least not in XCode 11.4 one) -https://developer.apple.com/documentation/xcode_release_notes/xcode_11_4_beta_release_notes They did change how test frameworks are built, perhaps this "feature" is undocumented side effect of that. |
Xcode 11.4 seems very un-amenable to a thinned App.framework... |
I don't think there is a technical limitation to building all of the simulator and device arches and lipoing them together ... provided that works, right? |
I think that's probably the best path forward. |
|
There's actually no reason to link on App.framework, it just needs to be embedded. |
But if you remove the link, the next error is:
|
Confirming here as well that it works. Nice job @jmagman ! |
YEAH, in latest version, it has been solved. |
It's a terrible problem. I ran successfully on the simulator, but I failed again on the real machine. |
@Turaiiao
Nothing should be linking on |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
#51453 is in v1.15.4 and will be in the beta channel any second. If you switch from beta, dev, or master back to stable, you may hit this issue. Please try the migration steps at https://flutter.dev/docs/development/ios-project-migration. @Bathant @Turaiiao the instructions don't say to delete the App.framework (your compiled dart code) from your machine, it says to remove the reference from Xcode. Please follow those instructions, or stick to a Flutter version v1.15.4 or higher. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
DO this and can't install app . No code signature found |
@ArthurKnight Did you follow the instructions in https://flutter.dev/docs/development/ios-project-migration? Particularly the build phase:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@jmagman Thanks for this. |
This comment has been minimized.
This comment has been minimized.
This is working perfectly. |
SOLUTION
@jmagman has written an article on how to solve this problem for your project: https://flutter.dev/docs/development/ios-project-migration
Steps to Reproduce
flutter run
orflutter run --debug
Logs
Terminal Output
flutter doctor -v
Notes
This appears to have started since upgrading to Catalina 10.15.4 beta with Xcode 13.4 beta, which also updated Simulator to 13.4 (921.4).
The application compiles and runs correctly on a physically attached device, but no simulators of any devices can pass this stage.
EDIT: Just attempted both Flutter beta and dev channels, and the same error occurs after rebuilding the tools and running
flutter clean
in the project root.The text was updated successfully, but these errors were encountered: