Commit 3af3b236 authored by Chinmay Garde's avatar Chinmay Garde

Merge pull request #1786 from chinmaygarde/master

Explicitly specify the sdk and arch when building for an iOS device
parents 279c6149 97e41f57
......@@ -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']);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment