-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
flutter build ios-framework
fails when plugin declares WatchOS target
#106488
Comments
@fwagner |
Thanks @huycozy! I tried with both the latest versions from stable and master channels and can still reproduce the issue with both of them.
|
@fwagner |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. |
Reopening, there seems to be enough info here to reproduce, and it seems different than #92294 since |
Background
Our app includes a Watch App for iOS. To keep all watch related code contained in one place, we have created a plugin that contains both an iOS and a watchOS target in its podspec:
Note: This setup works fine when building the app with
flutter build ios
, the issue only occurs onflutter build iOS-framework
.Steps to Reproduce
flutter build ios-framework
commandLogs
Logs
flutter build ios-framework --release --target lib/main/main.dart --verbose
(Logs redacted due to confidentiality, full logs are available on request)
Preliminary analysis
The cause for the error seems to be that the
build ios-framework
command issues axcodebuild
command that builds all targets with SDKiphoneos
(andiphonesimulator
in the next command) regardless of the actual platform of the target. This obviously fails for the watchos target as this includes frameworks that are not available in iphoneos SDK.The text was updated successfully, but these errors were encountered: