I'm compiling my ionic angular build with ionic cordova build --prod --release
for iOS and I'm getting this error:
Edit: I rerun my command with --verbose, and this is the outcome I got:
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".
Cannot read property 'toLowerCase' of undefined
TypeError: Cannot read property 'toLowerCase' of undefined
at /Users/meghan/sandbox/Parks/TSP_Mobile_App/platforms/ios/cordova/lib/list-emulator-build-targets:54:45
at Array.forEach (<anonymous>)
at /Users/meghan/sandbox/Parks/TSP_Mobile_App/platforms/ios/cordova/lib/list-emulator-build-targets:52:44
at Array.reduce (<anonymous>)
at /Users/meghan/sandbox/Parks/TSP_Mobile_App/platforms/ios/cordova/lib/list-emulator-build-targets:50:57
at Array.reduce (<anonymous>)
at /Users/meghan/sandbox/Parks/TSP_Mobile_App/platforms/ios/cordova/lib/list-emulator-build-targets:45:28
at _fulfilled (/Users/meghan/sandbox/Parks/TSP_Mobile_App/platforms/ios/cordova/node_modules/q/q.js:854:54)
at /Users/meghan/sandbox/Parks/TSP_Mobile_App/platforms/ios/cordova/node_modules/q/q.js:883:30
at Promise.promise.promiseDispatch (/Users/meghan/sandbox/Parks/TSP_Mobile_App/platforms/ios/cordova/node_modules/q/q.js:816:13)
[ERROR] An error occurred while running subprocess cordova.
cordova build ios --release --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 processExit: exiting (exit code: 1) +36ms
This is literally the entirety of the error, and I can't find anything remotely close to it. Any ideas?
检查您的cordova ios版本如果它是les then 5.+然后使用删除您的构建和重建
ionic cordova build ios@latest
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.