最近在下「yarn run cordova build ios」時,有時會出現以下的錯誤訊息,
IXME: Implement XCBuild support for macros in overriding parameters with condition sets:
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer
Error: Error code 1 for command: xcodebuild with args: -xcconfig,/Users/rmuser/rmprj_client_app/platforms/ios/cordova/build-debug.xcconfig,-workspace,rmprj.xcworkspace,-scheme,rmprj,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,rmprj.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/rmuser/rmprj_client_app/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/rmuser/rmprj_client_app/platforms/ios/build/sharedpch
error Command failed with exit code 1.
後來同事把原本接上的手機移掉居然就沒問題了…
所以有類似的問題,可以這樣子試看看。
另外,最近因為 xcode 也升級了,所以原本在 Build App 時,會出現錯誤。
後來設定 File -> Project Settings
把 Build System 從 New Build System (Default) 改成 Legacy Build System 就解決了。