cordova-ios
cordova-ios copied to clipboard
Clean Failed with Xcode 11 if a second target is present
Hello,
There seems to be an issue with the clean command in cordova and the newest Xcode when having 2 targets. The second target is "Notification Service Extension". You can reproduce this just by simply adding it in the project and then trying to run cordova clean ios. The result is:
2019-09-24 06:35:34.588 xcodebuild[60120:608842] [MT] PluginLoading: Required plug-in compatibility UUID 2FD51EF8-522D-4532-9698-980C4C497FD1 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SparkInspectorXcodePlugin.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-09-24 06:35:35.424 xcodebuild[60120:608892] unable to create build operation: Error Domain=com.apple.xcbuild Code=1 "unknown error while handling message: missingTarget(guid: "bcf36978b93e2d124606bb1820fe7523f121a933894d49d04b350ed0810a2dee")" UserInfo={NSLocalizedDescription=unknown error while handling message: missingTarget(guid: "bcf36978b93e2d124606bb1820fe7523f121a933894d49d04b350ed0810a2dee")}
note: Using new build system
** CLEAN FAILED **
xcodebuild: Command failed with exit code 65
This was fine in previous xcode versions. I am using the latest cordova cli and the latest cordova ios platform. Is this something related to cordova not yet being ready to Xcode 11 ? Note : If I switch to Xcode 10.3 it works.