【发布时间】:2019-01-09 08:40:32
【问题描述】:
我想停止使用use_frameworks!,所以我的依赖是静态链接的。据我所知,在这种情况下解决 No such module 'ModuleName' 错误的一种方法是在 Podfile 中添加 use_modular_headers!。
问题是use_modular_headers! 带来了另一个错误。有没有办法同时避免use_frameworks! 和use_modular_headers!?
- CocoaPods:1.5.3
- Xcode:10.1
- 斯威夫特:4.0
Pod 文件:
source 'https://github.com/CocoaPods/Specs.git'
plugin 'cocoapods-fix-react-native'
platform :ios, '11.0'
inhibit_all_warnings!
pod 'RxSwift'
pod 'RxCocoa'
target 'AppName' do
pod 'RxDataSources'
pod 'R.swift'
pod 'Kingfisher'
pod 'KDEAudioPlayer', :git => 'https://github.com/delannoyk/AudioPlayer.git', :branch => 'master'
pod 'Firebase/Performance'
pod 'Firebase/Core'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Messaging'
pod 'Fabric'
pod 'Crashlytics'
pod 'GoogleMaps'
pod 'VIMVideoPlayer'
pod 'ReachabilitySwift'
pod 'React', :podspec => '../../react/external/React.0.54.4.podspec.json', :subspecs => [
'Core',
'cxxreact',
'DevSupport',
'fishhook',
'RCTLinkingIOS',
'RCTWebSocket',
'RCTVibration',
'RCTText',
'RCTSettings',
# Contains deprecated UIKit stuff...
# 'RCTPushNotification',
'RCTNetwork',
'RCTImage',
'RCTGeolocation',
'RCTBlob',
'RCTAnimation',
'RCTActionSheet',
'ART',
'PrivateDatabase',
'jsinspector',
'jschelpers',
'CxxBridge'
]
pod 'yoga', :podspec => '../../react/external/yoga.0.54.4.podspec.json'
pod 'Folly', :podspec => '../react/node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'glog', :podspec => '../react/node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'react-native-video', :path => '../react/node_modules/react-native-video/react-native-video.podspec'
end
【问题讨论】: