mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #1786 from chinmaygarde/master
Explicitly specify the sdk and arch when building for an iOS device
This commit is contained in:
commit
3af3b23607
@ -532,7 +532,9 @@ Future<bool> _buildIOSXcodeProject(ApplicationPackage app, bool isDevice) async
|
||||
'/usr/bin/env', 'xcrun', 'xcodebuild', '-target', 'Runner', '-configuration', 'Release'
|
||||
];
|
||||
|
||||
if (!isDevice) {
|
||||
if (isDevice) {
|
||||
commands.addAll(<String>['-sdk', 'iphoneos', '-arch', 'arm64']);
|
||||
} else {
|
||||
commands.addAll(<String>['-sdk', 'iphonesimulator', '-arch', 'x86_64']);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user