Commit 97e41f57 authored by Chinmay Garde's avatar Chinmay Garde

Explicitly specify the sdk and arch when building for an iOS device

parent 3fa3d226
......@@ -530,7 +530,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