我正试图在这里为NativeScript iOS实现azure Speech SDK,但在构建过程中收到了以下错误消息:
ld: warning: ignoring file /Users/UserName/speechservice/nativescript-azure-cognitiveservices/platforms/ios/MicrosoftCognitiveServicesSpeech.framework/MicrosoftCognitiveServicesSpeech, missing required architecture i386 in file /Users/UserName/speechservice/nativescript-azure-cognitiveservices/platforms/ios/MicrosoftCognitiveServicesSpeech.framework/MicrosoftCognitiveServicesSpeech (2 slices)
我可以使用这项服务,但有问题。我已经创建了一个自定义插件&添加在Podfile
中
pod 'MicrosoftCognitiveServicesSpeech-iOS', '~> 1.9.0'
由于是static frameworks
,所以我添加了必要的module.modulemap
。我可以使用该服务,但在构建过程中收到错误消息。同样在苹果appstoreconnect
显示This build is invalid.
,有什么建议吗?感谢
MicrosoftCognitiveServicesSpeech框架仅针对arm64
和x86_64
构建。因此,通过build.xcconfig
禁用32-bit
架构,如下所示:
VALID_ARCHS[sdk=iphoneos*] = arm64
VALID_ARCHS[sdk=iphonesimulator*] = x86_64