NativeScript with MicrosoftCognitiveServicesSpeech.framework



我正试图在这里为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框架仅针对arm64x86_64构建。因此,通过build.xcconfig禁用32-bit架构,如下所示:

VALID_ARCHS[sdk=iphoneos*] = arm64
VALID_ARCHS[sdk=iphonesimulator*] = x86_64

最新更新