ionic build
npx cap copy ios
npx cap open ios
と手順通り進むもXcodeでエラーがでて動かない。
xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance
command line tools 入れてあるのに何故このエラーというところでXcode上でcommand line toolsを使うための設定箇所がある模様。
設定 > locations の command line tools が空の状態だったので、設定してあげて今一度Xcodeを立ち上げて無事解決。