-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
[native_assets] There's two errors thrown by Xcode 15.3 when submitting Flutter apps built with native_assets
to the App Store.
#148044
Comments
Thanks for the report @nmfisher!
I am not sure if the CFBundleIdentifier must be in some way identical to the framework name. If yes, then we should do the search-replace in the code modified in #144568. Also that PR shows where test cases can be added. flutter/packages/flutter_tools/lib/src/isolated/native_assets/macos/native_assets_host.dart Line 183 in 607a3da
If the CFBundleIdentifier does not have to be equal to the framework name, we don't have to, but we should possibly still take care of when the rename happens that there are no duplicates.
I think this value should come from Flutter, not from the Reasoning: We have
flutter/packages/flutter_tools/lib/src/build_system/targets/native_assets.dart Lines 315 to 316 in 607a3da
For passing Passing the minimumIOSVersion into the Happy to receive PRs for this @nmfisher! |
Yes, the minimum deployment target is tracked in dart-lang/native#1133. Thanks @knopp! |
There's two errors thrown by Xcode 15.3 when submitting Flutter apps built with
native_assets
to the App Store.First is:
Per the Apple reference, underscores can't be used in CFBundleIdentifier, so perhaps we could replace hyphens with underscores here, e.g.
The second issue is similar, the generated
Info.plist
does not contain an entry forMinimumOSVersion
, so trying to publish via XCode will throw the following error:Workaround is to add the following to
native_assets_host.dart
I haven't submitted a PR because I suspect there's a broader fix to the
native_assets
framework build process to consume some user-specified configuration (e.g. this may be contemplated by this issue here.Originally posted by @nmfisher in #129757 (comment)
The text was updated successfully, but these errors were encountered: