我正在使用自托管的 macOS 运行程序来构建我的 iOS 应用程序并将其部署到 TestFlight。与 AWS 服务交互时,编译和链接期间构建过程失败。 面对这些问题:
Linking ClientRuntime.o
▸ Linking AWSClientRuntime.o
▸ Linking AWSTranslate.o
▸ Linking AWSTranscribeStreaming.o
▸ Linking AWSPolly.o
▸ Linking AWSPluginsCore.o
❌ /Users/runner/Library/Developer/Xcode/DerivedData/Runner-axwsorderkhjqlbrxkrsavfyybbu/SourcePackages/checkouts/amplify-swift/AmplifyPlugins/DataStore/Sources/AWSDataStorePlugin/Storage/CascadeDeleteOperation.swift:164:50: reference to property 'modelSchema' in closure requires explicit use of 'self' to make capture semantics explicit
logMessage("[CascadeDelete.1] Deleting \(modelSchema.name) with identifiers: \(modelIds)")
^
❌ /Users/runner/Library/Developer/Xcode/DerivedData/Runner-axwsorderkhjqlbrxkrsavfyybbu/SourcePackages/checkouts/amplify-swift/AmplifyPlugins/DataStore/Sources/AWSDataStorePlugin/Storage/CascadeDeleteOperation.swift:263:73: reference to property 'modelSchema' in closure requires explicit use of 'self' to make capture semantics explicit
logMessage("[CascadeDelete.3] Local cascade delete of \(modelSchema.name) successful!")
^
搭建环境:
我也遇到同样的问题。你找到解决办法了吗?