我想将CocoaPods的Starscream(一个Swift库)导入到我的Cordova项目中。
失败的日志:
严重错误:模块映射文件 '/Users/lichangjie/Library/Developer/Xcode/DerivedData/HelloCordova-ffgrnccxvvefrjgmzdzntfirhcjv/Build/Products/Debug-iphonesimulator/Starscream/Starscream.modulemap' 找不到
**生成失败**
以下构建命令失败: CompileSwift普通x86_64 /Users/lichangjie/Downloads/cordova/SwiftTest3/platforms/ios/Pods/Starscream/Sources/Compression.swift CompileSwift普通x86_64 /Users/lichangjie/Downloads/cordova/SwiftTest3/platforms/ios/Pods/Starscream/Sources/SSLSecurity.swift CompileSwift普通x86_64 /Users/lichangjie/Downloads/cordova/SwiftTest3/platforms/ios/Pods/Starscream/Sources/WebSocket.swift CompileSwiftSources普通x86_64 com.apple.xcode.tools.swift.compiler (4个失败)
(节点:33759)UnhandledPromiseRejectionWarning:命令的错误代码65:带有args的xcodebuild:-xcconfig,/ Users / lichangjie / Downloads / cordova / SwiftTest3 / platforms / ios / cordova / build-debug.xcconfig,-workspace,HelloCordova .xcworkspace,-方案,HelloCordova,-配置,调试,-sdk,iphonesimulator,-destination,platform = iOS Simulator,名称= iPhone X,build,CONFIGURATION_BUILD_DIR = / Users / lichangjie / Downloads / cordova / SwiftTest3 / platforms / ios /构建/模拟器,SHARED_PRECOMPS_DIR = / Users / lichangjie / Downloads / cordova / SwiftTest3 / platforms / ios / build / sharedpch
(节点:33759)UnhandledPromiseRejectionWarning:未处理的承诺拒绝。引发此错误的原因可能是抛出了一个没有catch块的异步函数,或者是拒绝了一个.catch()无法处理的承诺。 (拒绝ID:1)
(节点:33759)[DEP0018] DeprecationWarning:已弃用未处理的承诺拒绝。将来,未处理的承诺拒绝将以非零退出代码终止Node.js进程。