gpt4 book ai didi

ios - 使用不带 'ModuleName' 选项的 CocoaPods 时出现 No such module 'use_frameworks!' 错误

转载 作者:行者123 更新时间:2023-11-28 23:38:49 30 4
gpt4 key购买 nike

我想停止使用 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
  • swift :4.0

Podfile:

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

最佳答案

CocoaPods 1.6.0 预发布版可能会修复 use_modular_headers! 的问题。

如果没有,并且您可以提供足够的信息来复制,请提交 CocoaPods issue .

关于ios - 使用不带 'ModuleName' 选项的 CocoaPods 时出现 No such module 'use_frameworks!' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54106067/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com