Please help…
I have built an app and I am trying to test it on an iPhone but I am getting an error message.
I am entering this code on cli inside the apps directory:
ionic cordova platform add ios
and
ionic cordova build ios
Then I get this error message:
No need to update build settings for launch storyboard support.
Set IPHONEOS_DEPLOYMENT_TARGET to "11.0".
Did not update build settings for launch storyboard support.
iOS Product Name has not changed (still "Commit2")
Updating icons at platforms/ios/Commit2/Images.xcassets/AppIcon.appiconset/
Updating splash screens at platforms/ios/Commit2/Images.xcassets/LaunchImage.launchimage/
Updating launch storyboard images at platforms/ios/Commit2/Images.xcassets/LaunchStoryboard.imageset/
Updating Storyboard image set contents.json
This app does not have additional resource files defined
Prepared iOS project successfully
No scripts found for hook "after_prepare".
No scripts found for hook "before_compile".
CordovaError: Promise rejected with non-error: "xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance\n"
at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
[ERROR] An error occurred while running subprocess cordova.
cordova build ios --verbose exited with exit code 1.
Re-running this command with the --verbose flag may provide more
information.
ionic:utils-process onBeforeExit handler: process.exit received +0ms
ionic:utils-process onBeforeExit handler: running 2 functions +0ms
ionic:utils-process onBeforeExit handler: exiting (exit code 1) +26ms