-
Notifications
You must be signed in to change notification settings - Fork 28.7k
Use Xcode build setting PRODUCT_NAME to find app and archive paths #140242
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
Conversation
be3005f
to
cb485e6
Compare
packages/flutter_tools/test/general.shard/application_package_test.dart
Outdated
Show resolved
Hide resolved
I still need to track down the test failures.
|
Still haven't had a chance to look at this. |
Still haven't had a chance to look at this, let's see if I get to it before critical triage messages me again! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
final FileSystemEntityType type = globals.fs.typeSync(absoluteArchivePath); | ||
globals.printError('Try distributing the app in Xcode:'); | ||
if (type == FileSystemEntityType.notFound) { | ||
globals.printError(' open ios/Runner.xcworkspace'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minuscule nit: the old error msg is Try distributing the app in Xcode: "open $absoluteArchivePath"
, but the new one would be Try distributing the app in Xcode: open $absoluteArchivePath
not sure if thats intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the quotes in the old one are because it's on the same line, so the quotes delineate the instructions vs the command to run. The new one will print it on a newline with indentation, which matches a few other spots, (though the tool is pretty inconsistent):
flutter/packages/flutter_tools/lib/src/ios/mac.dart
Lines 203 to 204 in 8e6643c
globals.printError('Open Xcode to fix the problem:'); | |
globals.printError(' open ios/Runner.xcworkspace'); |
flutter/packages/flutter_tools/lib/src/ios/devices.dart
Lines 424 to 425 in 8e6643c
_logger.printError('Try launching Xcode and selecting "Product > Run" to fix the problem:'); | |
_logger.printError(' open ios/Runner.xcworkspace'); |
Though, come to think of it, the logger
has an indent
parameter I can use. I'll update.
…lutter#140242) 1. Instead of getting the `FULL_PRODUCT_NAME` Xcode build setting (`Runner.app`) instead use `PRODUCT_NAME` since most places really want the product name, and the extension stripping wasn't correct when the name contained periods. 2. Don't instruct the user to open the `xcarchive` in Xcode if it doesn't exist. Fixes flutter#140212
…lutter#140242) 1. Instead of getting the `FULL_PRODUCT_NAME` Xcode build setting (`Runner.app`) instead use `PRODUCT_NAME` since most places really want the product name, and the extension stripping wasn't correct when the name contained periods. 2. Don't instruct the user to open the `xcarchive` in Xcode if it doesn't exist. Fixes flutter#140212
FULL_PRODUCT_NAME
Xcode build setting (Runner.app
) instead usePRODUCT_NAME
since most places really want the product name, and the extension stripping wasn't correct when the name contained periods.xcarchive
in Xcode if it doesn't exist.Fixes #140212
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.