When I try to compile my ionic angular build for iOS using
ionic cordova build --prod --release
, I am encountering the following error:
After running the command again with the --verbose flag, this is the detailed outcome I received:
Upon attempting to prepare the iOS project, the app does not have any additional resource files defined. Subsequently, no scripts were found for the "after_prepare" and "before_compile" hooks. The error "Cannot read property 'toLowerCase' of undefined" occurred at line 54 in the list-emulator-build-targets file. Various operations were performed on the list-emulator-build-targets file, resulting in a promise rejection with exit code 1, leading to the error. It prompts to rerun the command with the --verbose flag for more insights.
The error message provided above is the only information available, and after extensive research, I have not been able to find any feasible solutions. Can anyone provide assistance in resolving this issue?