Clang Cocoapods脱毛错误:";“没有此类模块”;对于C++;在子模块中导入 问题

Clang Cocoapods脱毛错误:";“没有此类模块”;对于C++;在子模块中导入 问题,clang,cocoapods,Clang,Cocoapods,尽管podspec同时定义了source={:submodules=>true}和pod\u target\u xcconfig={'SWIFT\u INCLUDE\u PATHS'=>'$(PODS\u ROOT)/SpokeStack/filter\u audio/**,但SWIFT编译器似乎找不到filter\u audiogit子模块的模块名(在子模块的modulemap中定义)当从CocoaPods调用时。这在正常的xcodebuild调用中不是问题 复制步骤 git克隆https:/

尽管podspec同时定义了
source={:submodules=>true}
pod\u target\u xcconfig={'SWIFT\u INCLUDE\u PATHS'=>'$(PODS\u ROOT)/SpokeStack/filter\u audio/**
,但SWIFT编译器似乎找不到
filter\u audio
git子模块的模块名(在子模块的
modulemap
中定义)当从CocoaPods调用时。这在正常的
xcodebuild
调用中不是问题

复制步骤
git克隆https://github.com/pylon/spokestack-ios.git --分支2.0.6——深度1

git子模块更新--init#需要git ssh密钥

cd spokestack ios

pod spec lint#或pod lib lint

发生了什么事? 堆栈 播客
Pod::Spec.new do|s|
s、 名称='SpokeStack'
s、 版本='2.0.6'
s、 许可证='Apache'
s、 summary='Spokestack为iOS平台提供了一个可扩展的语音识别管道。'
s、 主页https://www.pylon.com'
s、 作者={'Spokestack'=>'support@pylon.com' }
s、 source={:git=>'https://github.com/pylon/spokestack-ios.git“,:tag=>s.version.to_s,:submodules=>true}
s、 许可证={:type=>'Apache',:file=>'license'}
s、 ios.deployment_target='11.0'
s、 swift_版本='4.2'
s、 ios.framework='AVFoundation'
s、 排除_文件='SpokeStackFrameworkExample/*.*'、'SpokeStackTests/*.*'、'SpokeStack/Info.plist'
s、 source_files='SpokeStack/***.{swift,h,m}'
s、 pod_target_xcconfig={'SWIFT_INCLUDE_PATHS'=>'$(PODS_ROOT)/SpokeStack/filter_audio/**$(SRCROOT)/SpokeStack/VAD/Wit','HEADER_SEARCH_PATHS'=>'$(PODS_ROOT)/SpokeStack/filter_audio/**$(SRCROOT)/SpokeStack/VAD/Wit'}
s、 保留路径='SpokeStack/***.modulemap'
s、 public_头文件='SpokeStack/SpokeStack.h'
s、 依赖项“TensorFlowLiteSwift”,“~>1.14.0”
s、 静态框架=真
结束

在你过度旋转之前,请尝试以下操作:1)关闭Xcode,2)
rm-rf~/Library/Developer/Xcode/DerivedData
,3)重新打开Xcode并构建项目。我刚刚尝试了你发布的命令,发现一些与访问和权限有关的RSA安全错误。你也看到了吗?@Adrian no,但我可以查看对此,我深表歉意。@Adrian
git子模块
命令使用ssh连接到github,因此,如果您使用的沙盒环境没有为github配置ssh,您将收到RSA密钥错误。在过度旋转之前,请尝试以下操作:1)关闭Xcode,2)rm-rf~/Library/Developer/Xcode/DerivedData,3)重新运行en Xcode并构建该项目。我刚刚尝试了您发布的命令,发现了一些与访问和权限有关的RSA安全相关错误。您也看到了吗?@Adrian没有,但我可以调查一下!抱歉…@Adrian
git子模块
命令使用ssh连接到github,因此如果您使用的是沙盒环境如果没有为github配置ssh,则会出现RSA密钥错误。
 -> SpokeStack (2.0.6)
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - NOTE  | xcodebuild:  note: Using new build system
    - NOTE  | [iOS] xcodebuild:  note: Planning build
    - NOTE  | [iOS] xcodebuild:  note: Constructing build description
    - ERROR | [iOS] xcodebuild:  SpokeStack/SpokeStack/WebRTCVAD.swift:10:8: error: no such module 'filter_audio'
    - NOTE  | [iOS] xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')

Analyzed 1 podspec.
   CocoaPods : 1.8.0
        Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
    RubyGems : 2.5.2.3
        Host : Mac OS X 10.14.6 (18G95)
       Xcode : 11.0 (11A420a)
         Git : git version 2.21.0 (Apple Git-122)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : master - git - https://github.com/CocoaPods/Specs.git @ 8918e41ff9649039e8dcb7c44b6b0c2462734c69
               trunk - CDN - https://cdn.cocoapods.org/