ios – 目标覆盖“OTHER_SWIFT_FLAGS”构建设置
发布时间:2020-12-15 02:00:58 所属栏目:百科 来源:网络整理
导读:这是我的pod文件: platform :ios,'8.0'use_frameworks!target 'TestApp' do ...end 安装后,我收到以下错误: [!] The `TestApp [Debug]` target overrides the `OTHER_SWIFT_FLAGS` build setting defined in `Pods/Target Support Files/Pods-TestApp/Pod
这是我的pod文件:
platform :ios,'8.0' use_frameworks! target 'TestApp' do ... end 安装后,我收到以下错误: [!] The `TestApp [Debug]` target overrides the `OTHER_SWIFT_FLAGS` build setting defined in `Pods/Target Support Files/Pods-TestApp/Pods-TestApp.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the `$(inherited)` flag,or - Remove the build settings from the target. [!] The `TestApp [Release]` target overrides the `OTHER_SWIFT_FLAGS` build setting defined in `Pods/Target Support Files/Pods-TestApp/Pods-TestApp.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the `$(inherited)` flag,or - Remove the build settings from the target. 如何解决这个问题? 解决方法
>选择你的项目
>切换到项目的Build Settings面板。 >搜索其他Swift旗 >现在,您可能会看到其他Swift Flags的值显示为BOLD (BOLD也意味着这个值被覆盖) 由于终端中显示的警告:
您可以通过以下两种方式使编译器快乐: 选项1: 双击“其他Swift标记”值区域,并将该值替换为$(继承) 选项二: 选择“其他Swift标志”面板使其突出显示。然后按键盘上的Delete按钮,现在字体将变为THIN,而不是BOLD。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |