Repository: flutter
Issue: integration_test: can not run `pod install` --> `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER`
Labels: a: tests,platform-ios,framework,d: api docs,f: integration_test,has reproducible steps,P2,found in release: 2.2,found in release: 2.4,team-ios,triaged-ios

## Problem
If I try to run `pod install`, I get this exception:
```
[!] The `RunnerTests [Debug]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` build setting defined in `Pods/Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `RunnerTests [Release]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` build setting defined in `Pods/Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `RunnerTests [Profile]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` build setting defined in `Pods/Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.
```

![image](https://user-images.githubusercontent.com/24459435/123781286-5a06e600-d8d4-11eb-9a74-5bc5f25b12a4.png)


## Steps to reproduce
1. Create a new fresh flutter project with `flutter create`
2. Add integration test (I copied the widget test as integration test)
3. Run integration test with `flutter drive --driver=test_driver/integration_test.dart --target=integration_test/app_test.dart -d 63B1E047-86E5-462C-9B49-16E6FD9F131D` --> everything worked ✅
4. Now I followed the steps to set tup the XCTests: https://github.com/flutter/flutter/tree/master/packages/integration_test#ios-device-testing
5. For this I created a new target, which I called `RunnerTests`
6. Added this to my `Podfile`:
```ruby
target 'RunnerTests' do
    inherit! :search_paths
  end
```
7. Replaced `RunnerTests.m` with:
```swift
@import XCTest;
@import integration_test;

INTEGRATION_TEST_IOS_RUNNER(RunnerTests)
```
8. Finally, run `pod install` in `ios`
## Tested device
Running build from MacBook Pro M1, macOS 11.3. Tried to build for iOS Simulator.

## Code to reproduce
I published all my Code in this Repo: https://github.com/nilsreichardt/integration_test_problem

<details>
  <summary>Flutter Doctor</summary>

```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.2-0.0.pre.1, on macOS 11.3 20E232 darwin-arm, locale en-DE)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.1.2)
[✓] VS Code (version 1.58.0-insider)
[✓] Connected device (4 available)
    ! Error: iPhone von Roland is not connected. Xcode will continue when iPhone von Roland is connected. (code -13)

! Doctor found issues in 1 category.
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
```

</details>