Command PhaseScriptExecution failed with a nonzero exit code [iOS/Flutter] - ios
I have a flutter application, which runs perfectly on Android.
When I'm trying to build and run the application for iOS I am getting the following error:
Command PhaseScriptExecution failed with a nonzero exit code
I tried to delete the Podfile.lock and then do -->
flutter clean
and then
flutter build ios
yet I am getting the following error:
Building com.myname.example for device (ios-release)...
Automatically signing iOS for device deployment using specified development team
in Xcode project: XXXXXXXX
Running pod install... 3.3s
Running Xcode build...
Xcode build done. 39.1s
Failed to build iOS app
Error output from Xcode build:
↳
2021-01-26 19:45:02.637 xcodebuild[25920:52779202] DTDeviceKit: deviceType
from 00008006-000C82D4217B802E was NULL
2021-01-26 19:45:02.741 xcodebuild[25920:52778965] [MT] DTDeviceKit:
deviceType from 00008006-000C82D4217B802E was NULL
2021-01-26 19:45:02.743 xcodebuild[25920:52778965] [MT] DTDeviceKit:
deviceType from 00008006-000C82D4217B802E was NULL
2021-01-26 19:45:02.746 xcodebuild[25920:52778965] [MT] DTDeviceKit:
deviceType from 00008006-000C82D4217B802E was NULL
2021-01-26 19:45:03.134 xcodebuild[25920:52779203] iPhoneConnect:
📱<DVTiOSDevice (0x7fd96a532d30), Somdip's iPhone 11, iPhone, 14.3 (18C66),
00008030-001145D9026B802E> unable to mount developer disk image, (Error
Domain=com.apple.dtdevicekit Code=601 "The current device configuration is
unsupported. This iPhone 11 is running iOS 14.3 (18C66), which is not
supported by Xcode 11.7." UserInfo={NSLocalizedDescription=The current
device configuration is unsupported. This iPhone 11 is running iOS 14.3
(18C66), which is not supported by Xcode 11.7.,
NSLocalizedRecoverySuggestion=To run on this device, please update to a
version of Xcode that supports iOS 14.3. You can download Xcode from the Mac
App Store or the Apple Developer website., DVTRadarComponentKey=487927,
DeviceType=iPhone12,1, NSUnderlyingError=0x7fd96b7db300 {Error
Domain=com.apple.dt.DVTDeviceSupportFilesError Code=2 "Unable to locate
ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>, version: 14.3, build: 18C66"
UserInfo={NSLocalizedDescription=Unable to locate ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>, version: 14.3, build: 18C66, DVTRadarComponentKey=487927}}}) {
DVTRadarComponentKey = 487927;
DeviceType = "iPhone12,1";
NSLocalizedDescription = "The current device configuration is
unsupported. This iPhone 11 is running iOS 14.3 (18C66), which is not
supported by Xcode 11.7.";
NSLocalizedRecoverySuggestion = "To run on this device, please update to
a version of Xcode that supports iOS 14.3. You can download Xcode from
the Mac App Store or the Apple Developer website.";
NSUnderlyingError = "Error
Domain=com.apple.dt.DVTDeviceSupportFilesError Code=2 \"Unable to locate
ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0
x7fd9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPho
neOS.platform'>>, version: 14.3, build: 18C66\"
UserInfo={NSLocalizedDescription=Unable to locate ideal DDI for
platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0
x7fd9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPho
neOS.platform'>>, version: 14.3, build: 18C66,
DVTRadarComponentKey=487927}";
}
2021-01-26 19:45:03.135 xcodebuild[25920:52778965] [MT] iPhoneConnect:
📱<DVTiOSDevice (0x7fd96a532d30), Somdip's iPhone 11, iPhone, 14.3 (18C66),
00008030-001145D9026B802E> -- An error occurred whilst preparing device for
development -- The current device configuration is unsupported. This iPhone
11 is running iOS 14.3 (18C66), which is not supported by Xcode 11.7.
Domain: com.apple.dtdevicekit
Code: 601
Recovery Suggestion: To run on this device, please update to a version of
Xcode that supports iOS 14.3. You can download Xcode from the Mac App Store
or the Apple Developer website.
User Info: {
DVTRadarComponentKey = 487927;
DeviceType = "iPhone12,1";
}
--
Unable to locate ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>, version: 14.3, build: 18C66
Domain: com.apple.dt.DVTDeviceSupportFilesError
Code: 2
User Info: {
DVTRadarComponentKey = 487927;
}
--
2021-01-26 19:45:03.135 xcodebuild[25920:52778965] [MT] iPhoneConnect:
📱<DVTiOSDevice (0x7fd96a532d30), Somdip's iPhone 11, iPhone, 14.3 (18C66),
00008030-001145D9026B802E> == Underlying device preparation errors ==
2021-01-26 19:45:03.135 xcodebuild[25920:52778965] [MT] iPhoneConnect:
Failed _shouldMakeReadyForDevelopment check even though device is not locked
by passcode.
Domain: com.apple.platform.iphoneos
Code: 5
Failure Reason: allowsSecureServices: 1. isConnected: 0. Platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>. DTDKDeviceIdentifierIsIDID: 0
User Info: {
DVTDeviceDescription = "\Ud83d\Udcf1<DVTiOSDevice (0x7fd96a532d30),
Somdip's iPhone 11, iPhone, 14.3 (18C66), 00008030-001145D9026B802E>";
}
--
2021-01-26 19:45:03.135 xcodebuild[25920:52778965] [MT] iPhoneConnect: The
current device configuration is unsupported. This iPhone 11 is running iOS
14.3 (18C66), which is not supported by Xcode 11.7.
Domain: com.apple.dtdevicekit
Code: 601
Recovery Suggestion: To run on this device, please update to a version of
Xcode that supports iOS 14.3. You can download Xcode from the Mac App Store
or the Apple Developer website.
User Info: {
DVTRadarComponentKey = 487927;
DeviceType = "iPhone12,1";
}
--
Unable to locate ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>, version: 14.3, build: 18C66
Domain: com.apple.dt.DVTDeviceSupportFilesError
Code: 2
User Info: {
DVTRadarComponentKey = 487927;
}
--
2021-01-26 19:45:03.135 xcodebuild[25920:52778965] [MT] iPhoneConnect: The
current device configuration is unsupported. This iPhone 11 is running iOS
14.3 (18C66), which is not supported by Xcode 11.7.
Domain: com.apple.dtdevicekit
Code: 601
Recovery Suggestion: To run on this device, please update to a version of
Xcode that supports iOS 14.3. You can download Xcode from the Mac App Store
or the Apple Developer website.
User Info: {
DVTRadarComponentKey = 487927;
DeviceType = "iPhone12,1";
}
--
Unable to locate ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>, version: 14.3, build: 18C66
Domain: com.apple.dt.DVTDeviceSupportFilesError
Code: 2
User Info: {
DVTRadarComponentKey = 487927;
}
--
2021-01-26 19:45:03.135 xcodebuild[25920:52778965] [MT] iPhoneConnect:
📱<DVTiOSDevice (0x7fd96a532d30), Somdip's iPhone 11, iPhone, 14.3 (18C66),
00008030-001145D9026B802E> == END: Underlying device preparation errors ==
2021-01-26 19:45:04.452 xcodebuild[25920:52779195] iPhoneConnect:
📱<DVTiOSDevice (0x7fd96a532d30), Somdip's iPhone 11, iPhone, 14.3 (18C66),
00008030-001145D9026B802E> unable to mount developer disk image, (Error
Domain=com.apple.dtdevicekit Code=601 "The current device configuration is
unsupported. This iPhone 11 is running iOS 14.3 (18C66), which is not
supported by Xcode 11.7." UserInfo={NSLocalizedDescription=The current
device configuration is unsupported. This iPhone 11 is running iOS 14.3
(18C66), which is not supported by Xcode 11.7.,
NSLocalizedRecoverySuggestion=To run on this device, please update to a
version of Xcode that supports iOS 14.3. You can download Xcode from the Mac
App Store or the Apple Developer website., DVTRadarComponentKey=487927,
DeviceType=iPhone12,1, NSUnderlyingError=0x7fd96a1d2f60 {Error
Domain=com.apple.dt.DVTDeviceSupportFilesError Code=2 "Unable to locate
ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>, version: 14.3, build: 18C66"
UserInfo={NSLocalizedDescription=Unable to locate ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>, version: 14.3, build: 18C66, DVTRadarComponentKey=487927}}}) {
DVTRadarComponentKey = 487927;
DeviceType = "iPhone12,1";
NSLocalizedDescription = "The current device configuration is
unsupported. This iPhone 11 is running iOS 14.3 (18C66), which is not
supported by Xcode 11.7.";
NSLocalizedRecoverySuggestion = "To run on this device, please update to
a version of Xcode that supports iOS 14.3. You can download Xcode from
the Mac App Store or the Apple Developer website.";
NSUnderlyingError = "Error
Domain=com.apple.dt.DVTDeviceSupportFilesError Code=2 \"Unable to locate
ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0
x7fd9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPho
neOS.platform'>>, version: 14.3, build: 18C66\"
UserInfo={NSLocalizedDescription=Unable to locate ideal DDI for
platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0
x7fd9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPho
neOS.platform'>>, version: 14.3, build: 18C66,
DVTRadarComponentKey=487927}";
}
2021-01-26 19:45:04.452 xcodebuild[25920:52778965] [MT] iPhoneConnect:
📱<DVTiOSDevice (0x7fd96a532d30), Somdip's iPhone 11, iPhone, 14.3 (18C66),
00008030-001145D9026B802E> -- An error occurred whilst preparing device for
development -- The current device configuration is unsupported. This iPhone
11 is running iOS 14.3 (18C66), which is not supported by Xcode 11.7.
Domain: com.apple.dtdevicekit
Code: 601
Recovery Suggestion: To run on this device, please update to a version of
Xcode that supports iOS 14.3. You can download Xcode from the Mac App Store
or the Apple Developer website.
User Info: {
DVTRadarComponentKey = 487927;
DeviceType = "iPhone12,1";
}
--
Unable to locate ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>, version: 14.3, build: 18C66
Domain: com.apple.dt.DVTDeviceSupportFilesError
Code: 2
User Info: {
DVTRadarComponentKey = 487927;
}
--
2021-01-26 19:45:04.452 xcodebuild[25920:52778965] [MT] iPhoneConnect:
📱<DVTiOSDevice (0x7fd96a532d30), Somdip's iPhone 11, iPhone, 14.3 (18C66),
00008030-001145D9026B802E> == Underlying device preparation errors ==
2021-01-26 19:45:04.453 xcodebuild[25920:52778965] [MT] iPhoneConnect:
Failed _shouldMakeReadyForDevelopment check even though device is not locked
by passcode.
Domain: com.apple.platform.iphoneos
Code: 5
Failure Reason: allowsSecureServices: 1. isConnected: 0. Platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>. DTDKDeviceIdentifierIsIDID: 0
User Info: {
DVTDeviceDescription = "\Ud83d\Udcf1<DVTiOSDevice (0x7fd96a532d30),
Somdip's iPhone 11, iPhone, 14.3 (18C66), 00008030-001145D9026B802E>";
}
--
2021-01-26 19:45:04.453 xcodebuild[25920:52778965] [MT] iPhoneConnect: The
current device configuration is unsupported. This iPhone 11 is running iOS
14.3 (18C66), which is not supported by Xcode 11.7.
Domain: com.apple.dtdevicekit
Code: 601
Recovery Suggestion: To run on this device, please update to a version of
Xcode that supports iOS 14.3. You can download Xcode from the Mac App Store
or the Apple Developer website.
User Info: {
DVTRadarComponentKey = 487927;
DeviceType = "iPhone12,1";
}
--
Unable to locate ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>, version: 14.3, build: 18C66
Domain: com.apple.dt.DVTDeviceSupportFilesError
Code: 2
User Info: {
DVTRadarComponentKey = 487927;
}
--
2021-01-26 19:45:04.453 xcodebuild[25920:52778965] [MT] iPhoneConnect: The
current device configuration is unsupported. This iPhone 11 is running iOS
14.3 (18C66), which is not supported by Xcode 11.7.
Domain: com.apple.dtdevicekit
Code: 601
Recovery Suggestion: To run on this device, please update to a version of
Xcode that supports iOS 14.3. You can download Xcode from the Mac App Store
or the Apple Developer website.
User Info: {
DVTRadarComponentKey = 487927;
DeviceType = "iPhone12,1";
}
--
Unable to locate ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>, version: 14.3, build: 18C66
Domain: com.apple.dt.DVTDeviceSupportFilesError
Code: 2
User Info: {
DVTRadarComponentKey = 487927;
}
--
2021-01-26 19:45:04.453 xcodebuild[25920:52778965] [MT] iPhoneConnect: The
current device configuration is unsupported. This iPhone 11 is running iOS
14.3 (18C66), which is not supported by Xcode 11.7.
Domain: com.apple.dtdevicekit
Code: 601
Recovery Suggestion: To run on this device, please update to a version of
Xcode that supports iOS 14.3. You can download Xcode from the Mac App Store
or the Apple Developer website.
User Info: {
DVTRadarComponentKey = 487927;
DeviceType = "iPhone12,1";
}
--
Unable to locate ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>, version: 14.3, build: 18C66
Domain: com.apple.dt.DVTDeviceSupportFilesError
Code: 2
User Info: {
DVTRadarComponentKey = 487927;
}
--
2021-01-26 19:45:04.453 xcodebuild[25920:52778965] [MT] iPhoneConnect: The
current device configuration is unsupported. This iPhone 11 is running iOS
14.3 (18C66), which is not supported by Xcode 11.7.
Domain: com.apple.dtdevicekit
Code: 601
Recovery Suggestion: To run on this device, please update to a version of
Xcode that supports iOS 14.3. You can download Xcode from the Mac App Store
or the Apple Developer website.
User Info: {
DVTRadarComponentKey = 487927;
DeviceType = "iPhone12,1";
}
--
Unable to locate ideal DDI for platform:
<DVTPlatform:0x7fd965513860:'com.apple.platform.iphoneos':<DVTFilePath:0x7fd
9655135e0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla
tform'>>, version: 14.3, build: 18C66
Domain: com.apple.dt.DVTDeviceSupportFilesError
Code: 2
User Info: {
DVTRadarComponentKey = 487927;
}
--
2021-01-26 19:45:04.453 xcodebuild[25920:52778965] [MT] iPhoneConnect:
📱<DVTiOSDevice (0x7fd96a532d30), Somdip's iPhone 11, iPhone, 14.3 (18C66),
00008030-001145D9026B802E> == END: Underlying device preparation errors ==
2021-01-26 19:45:11.411 xcodebuild[25920:52779202] iPhoneSupport:
📱<DVTiOSDevice (0x7fd96a532d30), Somdip's iPhone 11, iPhone, 14.3 (18C66),
00008030-001145D9026B802E> unable to mount DeveloperDiskImage (Error
Domain=com.apple.dtdevicekit Code=601 "The current device configuration is
unsupported. This Apple Watch is running watchOS 7.2 (18S563), which is not
supported by Xcode 11.7." UserInfo={NSLocalizedDescription=The current
device configuration is unsupported. This Apple Watch is running watchOS 7.2
(18S563), which is not supported by Xcode 11.7.,
NSLocalizedRecoverySuggestion=To run on this device, please update to a
version of Xcode that supports watchOS 7.2. You can download Xcode from the
Mac App Store or the Apple Developer website., DVTRadarComponentKey=487927,
DeviceType=Watch5,9, NSUnderlyingError=0x7fd96acd33b0 {Error
Domain=com.apple.dt.DVTDeviceSupportFilesError Code=2 "Unable to locate
ideal DDI for platform:
<DVTPlatform:0x7fd9655166d0:'com.apple.platform.watchos':<DVTFilePath:0x7fd9
65516650:'/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platf
orm'>>, version: 7.2, build: 18S563" UserInfo={NSLocalizedDescription=Unable
to locate ideal DDI for platform:
<DVTPlatform:0x7fd9655166d0:'com.apple.platform.watchos':<DVTFilePath:0x7fd9
65516650:'/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platf
orm'>>, version: 7.2, build: 18S563, DVTRadarComponentKey=487927}}})
2021-01-26 19:45:13.929 xcodebuild[25920:52779033] iPhoneSupport:
📱<DVTiOSDevice (0x7fd96a532d30), Somdip's iPhone 11, iPhone, 14.3 (18C66),
00008030-001145D9026B802E> unable to mount DeveloperDiskImage (Error
Domain=com.apple.dtdevicekit Code=601 "The current device configuration is
unsupported. This Apple Watch is running watchOS 7.2 (18S563), which is not
supported by Xcode 11.7." UserInfo={NSLocalizedDescription=The current
device configuration is unsupported. This Apple Watch is running watchOS 7.2
(18S563), which is not supported by Xcode 11.7.,
NSLocalizedRecoverySuggestion=To run on this device, please update to a
version of Xcode that supports watchOS 7.2. You can download Xcode from the
Mac App Store or the Apple Developer website., DVTRadarComponentKey=487927,
DeviceType=Watch5,9, NSUnderlyingError=0x7fd967427c30 {Error
Domain=com.apple.dt.DVTDeviceSupportFilesError Code=2 "Unable to locate
ideal DDI for platform:
<DVTPlatform:0x7fd9655166d0:'com.apple.platform.watchos':<DVTFilePath:0x7fd9
65516650:'/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platf
orm'>>, version: 7.2, build: 18S563" UserInfo={NSLocalizedDescription=Unable
to locate ideal DDI for platform:
<DVTPlatform:0x7fd9655166d0:'com.apple.platform.watchos':<DVTFilePath:0x7fd9
65516650:'/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platf
orm'>>, version: 7.2, build: 18S563, DVTRadarComponentKey=487927}}})
** BUILD FAILED **
Xcode's output:
↳
/Users/somdipdey/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/vibrat
ion-1.5.0/ios/Classes/VibrationPlugin.m:6:4: warning: 'SwiftVibrationPlugin'
is only available on iOS 13.0 or newer [-Wunguarded-availability-new]
[SwiftVibrationPlugin registerWithRegistrar:registrar];
^~~~~~~~~~~~~~~~~~~~
In file included from
/Users/somdipdey/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/vibrat
ion-1.5.0/ios/Classes/VibrationPlugin.m:2:
/Users/somdipdey/flutter_projects/nosh_app_new_dev/nosh_app/nosh/build/ios/R
elease-iphoneos/vibration/vibration.framework/Headers/vibration-Swift.h:437:
12: note: 'SwiftVibrationPlugin' has been marked as being introduced in iOS
13.0 here, but the deployment target is iOS 8.0.0
#interface SwiftVibrationPlugin : NSObject <FlutterPlugin>
^
/Users/somdipdey/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/vibrat
ion-1.5.0/ios/Classes/VibrationPlugin.m:6:4: note: enclose
'SwiftVibrationPlugin' in an #available check to silence this warning
[SwiftVibrationPlugin registerWithRegistrar:registrar];
^~~~~~~~~~~~~~~~~~~~
1 warning generated.
error: the following command failed with exit code 0 but produced no further
output
CompileC
/Users/somdipdey/Library/Developer/Xcode/DerivedData/Runner-cwsspisdjxqqorgn
buuuebjmrwvt/Build/Intermediates.noindex/Pods.build/Release-iphoneos/vibrati
on.build/Objects-normal/arm64/VibrationPlugin.o
/Users/somdipdey/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/vibrat
ion-1.5.0/ios/Classes/VibrationPlugin.m normal arm64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
Compiler message:
lib/helpers/sourceAndImageFetcherDialog.dart:71:11: Error: No named
parameter with the name 'activeWidgetColor'.
activeWidgetColor: Color(0xff0000ff),
^^^^^^^^^^^^^^^^^
../../../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_cropp
er-1.3.1/lib/src/options.dart:115:9: Context: Found this candidate, but the
arguments don't match.
const AndroidUiSettings(
^^^^^^^^^^^^^^^^^
lib/helpers/sourceAndImageFetcherDialog.dart:90:13: Error: No named
parameter with the name 'activeWidgetColor'.
activeWidgetColor: Color(0xff0000ff),
^^^^^^^^^^^^^^^^^
../../../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_cropp
er-1.3.1/lib/src/options.dart:115:9: Context: Found this candidate, but the
arguments don't match.
const AndroidUiSettings(
^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation:
null
build failed.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Encountered error while building for device.
I also tried the solutions here: Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code but with no luck!
How to resolve this issue and run the app on the iPhone?
The solution to this problem: Update Xcode to 12.4 and update iOS on your iPhone to 14.4. The .X version of the Xcode should match the .X version of iOS on your iPhone. Which means that in this case Y.4 of Xcode version needs to match Y.4 version of the iOS on your iPhone.
Related
2E> unable to mount developer disk image, (Error Domain=com.apple.dtdevicekit Code=601
Having build issue when running nativescript application in ios platform. My xcode Version 12.2 (12B45b) and showing error as "The current device configuration is unsupported. This iPhone 4 is running iOS 14.7.1 (18G82), which is not supported by Xcode 12.2." Project successfully prepared (ios) Configure firebase Add iOS crash logging Building project... Xcode build... 2022-03-16 12:52:12.267 xcodebuild[3959:55798] DTDeviceKit: deviceType from 00008020-000A393E2123002E was NULL 2022-03-16 12:52:12.467 xcodebuild[3959:55798] DTDeviceKit: deviceType from 00008020-000A393E2123002E was NULL 2022-03-16 12:52:12.467 xcodebuild[3959:55798] DTDeviceKit: deviceType from 00008020-000A393E2123002E was NULL 2022-03-16 12:52:13.621 xcodebuild[3959:55796] iPhoneConnect: 📱<DVTiOSDevice (0x7ff74baabfe0), Mobile’s iPhone XR, iPhone, 14.7.1 (18G82), 00008020-000A393E2123002E> unable to mount developer disk image, (Error Domain=com.apple.dtdevicekit Code=601 "The current device configuration is unsupported. This iPhone 4 is running iOS 14.7.1 (18G82), which is not supported by Xcode 12.2." UserInfo={NSLocalizedDescription=The current device configuration is unsupported. This iPhone 4 is running iOS 14.7.1 (18G82), which is not supported by Xcode 12.2., NSLocalizedRecoverySuggestion=To run on this device, please update to a version of Xcode that supports iOS 14.7.1. You can download Xcode from the Mac App Store or the Apple Developer website., DVTRadarComponentKey=487927, DeviceType=iPhone11,8, NSUnderlyingError=0x7ff74ba2a820 {Error Domain=com.apple.dt.DVTDeviceSupportFilesError Code=2 "Unable to locate ideal DDI for platform: <DVTPlatform:0x7ff74875e810:'com.apple.platform.iphoneos':<DVTFilePath:0x7ff74875e660:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>, version: 14.7.1, build: 18G82" UserInfo={NSLocalizedDescription=Unable to locate ideal DDI for platform: <DVTPlatform:0x7ff74875e810:'com.apple.platform.iphoneos':<DVTFilePath:0x7ff74875e660:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>, version: 14.7.1, build: 18G82, DVTRadarComponentKey=487927}}}) { DVTRadarComponentKey = 487927; DeviceType = "iPhone11,8"; NSLocalizedDescription = "The current device configuration is unsupported. This iPhone 4 is running iOS 14.7.1 (18G82), which is not supported by Xcode 12.2."; NSLocalizedRecoverySuggestion = "To run on this device, please update to a version of Xcode that supports iOS 14.7.1. You can download Xcode from the Mac App Store or the Apple Developer website."; NSUnderlyingError = "Error Domain=com.apple.dt.DVTDeviceSupportFilesError Code=2 \"Unable to locate ideal DDI for platform: <DVTPlatform:0x7ff74875e810:'com.apple.platform.iphoneos':<DVTFilePath:0x7ff74875e660:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>, version: 14.7.1, build: 18G82\" UserInfo={NSLocalizedDescription=Unable to locate ideal DDI for platform: <DVTPlatform:0x7ff74875e810:'com.apple.platform.iphoneos':<DVTFilePath:0x7ff74875e660:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>, version: 14.7.1, build: 18G82, DVTRadarComponentKey=487927}"; } how to solve this issue?
New expo init bare project not building for iOS
Started by using expo init app and used bare-minimum typescript template, the app is not building using react-native run-ios, but works if expo start in the Expo-go app. here is the error code: info Installing "/Users/mac/Library/Developer/Xcode/DerivedData/myproject-ccluoxcwmsrveqavqitrwaszccss/Build/Products/Debug-iphonesimulator/myproject" An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1): This app could not be installed at this time. Could not install at this time. Failed to chmod /Users/mac/Library/Developer/CoreSimulator/Devices/2D6990A9-04F6-4391-BFA3-BFF2AA6890A5/data/Bundle/Application/2B342978-B520-410C-ABB0-F5961248B7BF/myproject.app/myproject : No such file or directory Underlying error (domain=MIInstallerErrorDomain, code=4): Failed to chmod /Users/mac/Library/Developer/CoreSimulator/Devices/2D6990A9-04F6-4391-BFA3-BFF2AA6890A5/data/Bundle/Application/2B342978-B520-410C-ABB0-F5961248B7BF/myproject.app/myproject : No such file or directory info Launching "org.name.myproject" error Failed to launch the app on simulator, An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1): The request to open "org.name.myproject" failed. The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "org.name. myproject" is unknown to FrontBoard"). Underlying error (domain=FBSOpenApplicationErrorDomain, code=4): The operation couldn’t be completed. Application "org.name.myproject" is unknown to FrontBoard. Application "org.name.myproject" is unknown to FrontBoard. When app is launched in Xcode the build is successful but the app don't load on simulator and I get this error message: the config: Expo CLI 4.1.6 environment info: System: OS: macOS 11.0.1 Shell: 5.8 - /bin/zsh Binaries: Node: 14.15.5 - ~/.nvm/versions/node/v14.15.5/bin/node Yarn: 1.22.0 - /usr/local/bin/yarn npm: 6.14.11 - ~/.nvm/versions/node/v14.15.5/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.7, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 23, 24, 27, 28, 29 Build Tools: 23.0.1, 27.0.3, 28.0.2, 28.0.3, 29.0.2 System Images: android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom IDEs: Xcode: 11.7/11E801a - /usr/bin/xcodebuild npmPackages: expo: ~40.0.0 => 40.0.1 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: ~0.63.4 => 0.63.4 react-native-web: ~0.13.12 => 0.13.18 Expo Workflow: bare
Xcode 12: CompileAssetCatalog Unity-iPhone/Images.xcassets fails
Ever since updating to Xcode 12 our CI machine has been getting weird error when executing command line build with xcodebuild. Same error won't occure in Xcode where the same build gets archived and build correctly. It seems that the cause of the build process error is this: /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/Unity-iPhone/Images.xcassets: error: Failed to find newest available Simulator runtime Underlying Errors: Description: No available runtime found from: [ watchOS 7.0 (7.0 - 18R382) - com.apple.CoreSimulator.SimRuntime.watchOS-7-0 (unavailable, failed to open liblaunch_sim.dylib) ==> not available: Error Domain=com.apple.CoreSimulator.SimError Code=401 "The watchOS 7.0 simulator runtime is not available." UserInfo={NSLocalizedDescription=The watchOS 7.0 simulator runtime is not available., NSUnderlyingError=0x7f9d4d038cb0 {Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedFailureReason=XPC error talking to SimLaunchHostService: <error: 0x7fff8f3a89a0> { count = 1, transaction: 0, voucher = 0x0, contents = "XPCErrorDescription" => <string: 0x7fff8f3a8b08> { length = 18, contents = "Connection invalid" } Which is pretty weird because our project does not target Apple watchOS. Any clues or ideas how to tackle the issue? This issue does not occure on my computer that runs same Xcode 12 version and has been updated to the latest OSX version. Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project Builds/temp/Unity-iPhone.xcodeproj -scheme Unity-iPhone -sdk iphoneos -configuration Release archive -archivePath Builds/temp/archive/app.xcarchive -derivedDataPath Builds/temp/derivedData Other relevant build log is here: CompileAssetCatalog derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app Unity-iPhone/Images.xcassets cd /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/Library/Android/android-ndk-r16b:/usr/local/bin:/Library/Android/android-ndk-r16b:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/assetcatalog_dependencies --output-partial-info-plist /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/assetcatalog_generated_info.plist --app-icon AppIcon --compress-pngs --enable-on-demand-resources YES --development-region English --target-device iphone --target-device ipad --minimum-deployment-target 10.0 --platform iphoneos --compile /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/Unity-iPhone/Images.xcassets /* com.apple.actool.errors */ /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/Unity-iPhone/Images.xcassets: error: Failed to find newest available Simulator runtime Underlying Errors: Description: No available runtime found from: [ watchOS 7.0 (7.0 - 18R382) - com.apple.CoreSimulator.SimRuntime.watchOS-7-0 (unavailable, failed to open liblaunch_sim.dylib) ==> not available: Error Domain=com.apple.CoreSimulator.SimError Code=401 "The watchOS 7.0 simulator runtime is not available." UserInfo={NSLocalizedDescription=The watchOS 7.0 simulator runtime is not available., NSUnderlyingError=0x7f9d4d038cb0 {Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedFailureReason=XPC error talking to SimLaunchHostService: <error: 0x7fff8f3a89a0> { count = 1, transaction: 0, voucher = 0x0, contents = "XPCErrorDescription" => <string: 0x7fff8f3a8b08> { length = 18, contents = "Connection invalid" } }}}, NSLocalizedRecoverySuggestion=Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator runtime., NSLocalizedFailureReason=failed to open liblaunch_sim.dylib}, tvOS 14.0 (14.0 - 18J383) - com.apple.CoreSimulator.SimRuntime.tvOS-14-0 (unavailable, failed to open liblaunch_sim.dylib) ==> not available: Error Domain=com.apple.CoreSimulator.SimError Code=401 "The tvOS 14.0 simulator runtime is not available." UserInfo={NSLocalizedDescription=The tvOS 14.0 simulator runtime is not available., NSUnderlyingError=0x7f9d4d004c40 {Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedFailureReason=XPC error talking to SimLaunchHostService: <error: 0x7fff8f3a89a0> { count = 1, transaction: 0, voucher = 0x0, contents = "XPCErrorDescription" => <string: 0x7fff8f3a8b08> { length = 18, contents = "Connection invalid" } }}}, NSLocalizedRecoverySuggestion=Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator runtime., NSLocalizedFailureReason=failed to open liblaunch_sim.dylib}, iOS 14.1 (14.1 - 18A8394) - com.apple.CoreSimulator.SimRuntime.iOS-14-1 (unavailable, failed to open liblaunch_sim.dylib) ==> not available: Error Domain=com.apple.CoreSimulator.SimError Code=401 "The iOS 14.1 simulator runtime is not available." UserInfo={NSLocalizedDescription=The iOS 14.1 simulator runtime is not available., NSUnderlyingError=0x7f9d4d038cb0 {Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedFailureReason=XPC error talking to SimLaunchHostService: <error: 0x7fff8f3a89a0> { count = 1, transaction: 0, voucher = 0x0, contents = "XPCErrorDescription" => <string: 0x7fff8f3a8b08> { length = 18, contents = "Connection invalid" } }}}, NSLocalizedRecoverySuggestion=Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator runtime., NSLocalizedFailureReason=failed to open liblaunch_sim.dylib}, ] when matching for <IBCocoaTouchPlatformToolDescription: 0x7f9d4e14a0f0> System content for IBCocoaTouchFramework-fourteenAndLater <IBScaleFactorDeviceTypeDescription: 0x7f9d4b4e3e30> scaleFactor=2x, renderMode.identifier=(null), idiom=<IBIPhoneIdiom: 0x7f9d4e52bb40> runtime=<IBCocoaTouchTargetRuntime: 0x7f9d4b488d30> /* com.apple.actool.document.notices */ /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/Unity-iPhone/Images.xcassets:./AppIcon.appiconset/[][ipad][76x76][][][1x][][]: notice: 76x76#1x app icons only apply to iPad apps targeting releases of iOS prior to 10.0. /* com.apple.actool.compilation-results */ /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon20x20#2x.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon20x20#2x~ipad.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon20x20#3x.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon20x20~ipad.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon29x29.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon29x29#2x.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon29x29#2x~ipad.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon29x29#3x.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon29x29~ipad.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon40x40#2x.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon40x40#2x~ipad.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon40x40#3x.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon40x40~ipad.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon60x60#2x.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon60x60#3x.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon76x76#2x~ipad.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon76x76~ipad.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app/AppIcon83.5x83.5#2x~ipad.png /Users/Shared/Jenkins/Home/workspace/eskari_daily_ios/Builds/temp/derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/assetcatalog_generated_info.plist ** ARCHIVE FAILED ** The following build commands failed: CompileAssetCatalog derivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/daily.app Unity-iPhone/Images.xcassets (1 failure)
Final solution for this issue was to reinstall Jenkins. Old Jenkins installer had installed Jenkins in way that is no longer supported by apple. Basically: Install Jenkins via homebrew copy jobs, workspace, plugins.. to new jenkins setup authentications to new jenkins Use new Jenkins that is setup on your account and the issue is gone. Reference: https://developer.apple.com/forums/thread/664731
iOS Simulator is not installing the app at this time
When I run the newly created iOS app in iPhone 11 simulator(iOS 13) I'm getting the following error. This app could not be installed at this time. Error Log: com.apple.dt.Xcode[32819] : installApplication:withOptions:error:: Error Domain=IXUserPresentableErrorDomain Code=1 "This app could not be installed at this time." UserInfo={NSUnderlyingError=0x7fc48881db10 {Error Domain=LSApplicationWorkspaceErrorDomain Code=-102 "(null)" UserInfo={Error=RegistrationFailed, _LSLine=627, _LSFunction=-[_LSInstaller _doinstallApplication:atURL:withOptions:installType:notificationJournaller:reply:], CFBundleIdentifier=com.boopathy.TestingApp}}, NSLocalizedFailureReason=Could not install at this time., NSLocalizedDescription=This app could not be installed at this time.} Configuration Details: macOS - Catalina 10.15 Beta(19A487m) Xcode - 11.3(11C29) Simulator - 11.3 (SimulatorApp-912.5 SimulatorKit-570.3 CoreSimulator-681.17)
Testing Failed when build using Xcode build command or appium
I am using : Xcode 10.1 Os Version : 12.1 iPhone 6 I did follow all required steps to setup build and everything but still getting error when try to build project using xcode build. I am confuse between 2 thing that is it signing issue or I am missing some config. in webdriver agent xproj. Actual Error on xcode build command Testing failed: WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to launch com.apple.test.WebDriverAgentRunner-Runner. (Underlying error: The operation couldn’t be completed. (DTXMessage error 1.)))) Actual Error on appium Error: Unable to launch WebDriverAgent because of xcodebuild failure: “xcodebuild failed with code 65”. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. Some other logs if that helps : 2018-11-19 11:02:17.350 xcodebuild[2413:325556] Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.apple.test.WebDriverAgentRunner-Runner” UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7f8ec758be20 {Error Domain=DTXMessage Code=1 “(null)” UserInfo={DTXExceptionKey=The operation couldn’t be completed. Unable to launch com.apple.test.WebDriverAgentRunner-Runner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.apple.test.WebDriverAgentRunner-Runner’}}} 2018-11-19 11:02:17.350 xcodebuild[2413:325556] Error Domain=IDETestOperationsObserverErrorDomain Code=4 “Failed to install or launch the test runner” UserInfo={NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the result bundle at /Users/asianweb/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2018.11.19_11-02-01-+0530.xcresult, NSLocalizedDescription=Failed to install or launch the test runner, NSUnderlyingError=0x7f8ec7ac6c70 {Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.apple.test.WebDriverAgentRunner-Runner” UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7f8ec758be20 {Error Domain=DTXMessage Code=1 “(null)” UserInfo={DTXExceptionKey=The operation couldn’t be completed. Unable to launch com.apple.test.WebDriverAgentRunner-Runner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.apple.test.WebDriverAgentRunner-Runner’}}}}} Other logs info { deviceSerialNumber: XXXXXXXXXXXX identifier: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6 deviceClass: iPhone deviceName: qa’s iPhone deviceIdentifier: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6 productVersion: 12.1 buildVersion: 16B92 deviceSoftwareVersion: 12.1 (16B92) deviceArchitecture: arm64 deviceTotalCapacity: 11945508864 deviceAvailableCapacity: 5477302272 deviceIsTransient: NO ignored: NO deviceIsBusy: NO deviceIsPaired: YES deviceIsActivated: YES deviceActivationState: Activated isPasscodeLocked: NO deviceType: <DVTDeviceType:0x8f7ec4d00ca0 Xcode.DeviceType.iPhone> supportedDeviceFamilies: ( 1 ) applications: (null) provisioningProfiles: (null) hasInternalSupport: NO isSupportedOS: YES developerDiskMountError: (null) (null) bootArgs: (null) connected: yes isWirelessEnabled: no connectionType: direct hostname: (null) bonjourServiceName: 90:60:f1:6b:7f:91#fe80::9760:f1ff:fe6b:2f92._apple-mobdev2._tcp.local. } (12.1 (16B92)) Note : While I run it, it puts my app and webdriveragent into iphone device and then stopped.
I was able to resolve issue by following steps : Uninstalled following : Xcode,Appium,Xcode command line,ideviceinstaller,carthage,xpretty,deviceconsole Reinstalled everything as per this video guide : https://youtu.be/ySglJIrDVMQ Restart my mac machine and iphone Again setup project in xcode as per this video guide : https://youtu.be/ySglJIrDVMQ And Yes it works.
For iOS development I use Fastlane with the XCTest framework and I had the same problem as you described. However, I'm using a simulator, not a real device. To solve it I replaced iPhone 6 with iPhone XS Max in the list of simulators that should be used for testing. If you can also use any other device different from iPhone 6 you should try this solution. However if you need to test your application on iPhone 6 you can recreate the corresponding simulator. In Xcode 10.1 press Window -> Devices and Simulators, then select the line called iPhone 6 and press Backspace. After that press + in the left bottom corner of window to create a new simulator. You will see this window: Set all parameters as they are in this screenshot and then press Create. After that, try to run your test suite again.