我试图在 cordova 插件中包含点击支付iPhone功能,在我的离子项目中包含插件并尝试构建后,我最终得到这个错误:
d/sharedpch -pch-disable-validation -module-name Product -frontend-parseable-output -disable-clang-spi -target-sdk-version 16.1 -parse-as-library -o /Users/mads/Library/Developer/Xcode/DerivedData/Product-anlvmriclbyybqfhfhbdkszgzqql/Build/Intermediates.noindex/Product.build/Debug-iphonesimulator/Product.build/Objects-normal/x86_64/CDVTapToPay.o -index-unit-output-path /Product.build/Debug-iphonesimulator/Product.build/Objects-normal/x86_64/CDVTapToPay.o -index-store-path /Users/mads/Library/Developer/Xcode/DerivedData/Product-anlvmriclbyybqfhfhbdkszgzqql/Index.noindex/DataStore -index-system-modules
/Users/mads/company/2/menon/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'Branch' from project 'Pods')
** BUILD FAILED **
The following build commands failed:
SwiftEmitModule normal x86_64 Emitting\ module\ for\ Product (in target 'Product' from project 'Product')
(1 failure)
Command finished with error code 65: xcodebuild -workspace,Product.xcworkspace,-scheme,Product,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 14 Pro Max,build,CONFIGURATION_BUILD_DIR=/Users/mads/company/2/menon/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/mads/company/2/menon/platforms/ios/build/sharedpch
xcodebuild: Command failed with exit code 65
Error: xcodebuild: Command failed with exit code 65
at ChildProcess.whenDone (/Users/mads/company/2/menon/platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:136:25)
at ChildProcess.emit (events.js:193:13)
at maybeClose (internal/child_process.js:999:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:266:5)
[ERROR] An error occurred while running subprocess cordova.
cordova build ios --verbose exited with exit code 65.
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 +2ms
ionic:utils-process processExit: exiting (exit code: 65) +62ms
1条答案
按热度按时间u3r8eeie1#
你的错误日志里写着呢
只需在config.xml中更改目标