作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我坚持这一点,希望有人能提供帮助。请问如何删除/解决这些警告?
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/
我正在开发一个具有三个(非测试)目标的应用:App、Extension 和 Shared。 Shared 目标同时包含在 App 和 Extension 中,并且如您所料,提供了两者都使用的共享功能。
在 iOS 14.5 或 14.6 之前,我们可以通过将 仅需要 App-Extension-Safe API 设置为 NO 并使用: if #available(iOS 10.0, *) {
我是一名优秀的程序员,十分优秀!