gpt4 book ai didi

ios - CocoaPod 1.9.3:如何解决APPLICATION_EXTENSION_API_ONLY警告?

转载 作者:行者123 更新时间:2023-12-01 16:19:45 25 4
gpt4 key购买 nike

我坚持这一点,希望有人能提供帮助。请问如何删除/解决这些警告?

def shared_pods
pod 'SSZipArchive'
pod 'KeychainAccess'
pod 'SwiftyBeaver'
end

target 'myApp' do
platform :ios, '11.0'
use_frameworks!
shared_pods

pod 'IQKeyboardManagerSwift'
pod 'Firebase/Analytics'
pod 'Firebase/Crashlytics'
pod 'FacebookSDK/CoreKit'
pod 'FacebookSDK/ShareKit'
pod 'Google-Mobile-Ads-SDK'
pod 'GoogleMobileAdsMediationAdColony'
pod 'GoogleMobileAdsMediationIronSource'
pod 'OpenVPNAdapter', :git => 'https://github.com/ss-abramchuk/OpenVPNAdapter.git', :tag => '0.7.0'
target 'myAppTests' do
inherit! :search_paths
end

target 'myAppUITests' do
end

target 'tunnel-ios' do
pod 'OpenVPNAdapter', :git => 'https://github.com/ss-abramchuk/OpenVPNAdapter.git', :tag => '0.7.0'
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'No'
end
end
end
我收到以下警告:
[!] The `myApp [Debug]` target overrides the `APPLICATION_EXTENSION_API_ONLY` build setting defined in `Pods/Target Support Files/Pods-myApp/Pods-myApp.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.

[!] The `myApp [Release]` target overrides the `APPLICATION_EXTENSION_API_ONLY` build setting defined in `Pods/Target Support Files/Pods-myApp/Pods-myApp.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.

[!] The `myAppTests [Debug]` target overrides the `APPLICATION_EXTENSION_API_ONLY` build setting defined in `Pods/Target Support Files/Pods-myAppTests/Pods-myAppTests.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.

[!] The `myAppTests [Release]` target overrides the `APPLICATION_EXTENSION_API_ONLY` build setting defined in `Pods/Target Support Files/Pods-myAppTests/Pods-myAppTests.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.

最佳答案

基于https://github.com/CocoaPods/CocoaPods/issues/9233,您似乎可以通过xcconfig文件而不是post_install脚本来覆盖APPLICATION_EXTENSION_API_ONLY设置,以避免发出警告。

关于ios - CocoaPod 1.9.3:如何解决APPLICATION_EXTENSION_API_ONLY警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63551687/

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