A bunch of onboarding error detections (#12977)

This commit is contained in:
xster
2017-11-16 22:53:22 -08:00
committed by GitHub
parent 580281e520
commit d5d2cdfeef
4 changed files with 49 additions and 36 deletions

View File

@@ -311,33 +311,6 @@ Xcode's output:
Could not build the precompiled application for the device.
Error launching application on iPhone.''',
xcodeBuildExecution: new XcodeBuildExecution(
<String>['xcrun', 'xcodebuild', 'blah'],
'/blah/blah',
buildForPhysicalDevice: true
),
);
await diagnoseXcodeBuildFailure(buildResult, app);
expect(
testLogger.errorText,
contains('No Provisioning Profile was found for your project\'s Bundle Identifier or your device.'),
);
});
testUsingContext('No ios-deploy provisioning profile shows message', () async {
final XcodeBuildResult buildResult = new XcodeBuildResult(
success: false,
stdout: '''
Launching lib/main.dart on iPhone in debug mode...
Signing iOS app for device deployment using developer identity: "iPhone Developer: test@flutter.io (1122334455)"
Running Xcode build... 1.3s
Installing on iPhone...
ios-deploy[75050:1892997] [ !! ] Error 0xe8008015: A valid provisioning profile for this executable was not found. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
Could not install build/ios/iphoneos/Runner.app on 7233072bb988fb4c64429a4d9a092295f9423892.
Error launching application on iPhone.''',
xcodeBuildExecution: new XcodeBuildExecution(
<String>['xcrun', 'xcodebuild', 'blah'],