EAS Build "error: Provisioning profile doesn't support the Push Notifications capability." when I didn't include it in the build

Hi, I have this issue during the iOS build on managed workflow. CLI version 0.38.1

I’m getting the error “Provisioning profile doesn’t support the Push Notifications capability” but I didn’t include it in the build.

Here are Fastlane logs

Creating Gymfile
Gymfile created
Successfully loaded '/Users/expo/workingdir/build/app/ios/Gymfile' 📄
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                  Detected Values from './Gymfile'                                                                   |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| suppress_xcode_output | true                                                                                                                                        |
| clean                 | false                                                                                                                                       |
| scheme                | Jan                                                                                                                                         |
| configuration         | Release                                                                                                                                     |
| export_options        |                                                                                                                                             |
| export_xcargs         | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-4dd20446-3326-4a2c-b728-01b9af69808d.keychain" |
| disable_xcpretty      | true                                                                                                                                        |
| buildlog_path         | /Users/expo/workingdir/logs                                                                                                                 |
| output_directory      | ./build                                                                                                                                     |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
Resolving Swift Package Manager dependencies...
$ xcodebuild -resolvePackageDependencies -workspace ./Jan.xcworkspace -scheme Jan -configuration Release
▸ Command line invocation:
▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./Jan.xcworkspace -scheme Jan -configuration Release
▸ User defaults from command line:
▸     IDEPackageSupportUseBuiltinSCM = YES
▸ --- xcodebuild: WARNING: Using the first of multiple matching destinations:
▸ { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
▸ { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
▸ { platform:iOS Simulator, id:AE115BC2-463C-49D5-B498-8741EE92F069, OS:15.0, name:iPhone 8 }
▸ { platform:iOS Simulator, id:718EB7E9-0A7D-4F2D-8334-9FAEB4D2D7D6, OS:15.0, name:iPhone 8 Plus }
▸ { platform:iOS Simulator, id:0B5CA4B0-23A2-4D9B-ACB5-0697F287717C, OS:15.0, name:iPhone 11 }
▸ { platform:iOS Simulator, id:03B4BB90-B5D0-4877-9D66-4E5B63B5A3C5, OS:15.0, name:iPhone 11 Pro }
▸ { platform:iOS Simulator, id:95F5C092-940F-4853-850B-B1B36E8E0590, OS:15.0, name:iPhone 11 Pro Max }
▸ { platform:iOS Simulator, id:FEA2C8C1-E52B-4540-9BCD-3BBC2EDEBFF4, OS:15.0, name:iPhone 12 }
▸ { platform:iOS Simulator, id:AFEA8245-61C0-43CB-BAEA-97F1196BAF6E, OS:15.0, name:iPhone 12 Pro }
▸ { platform:iOS Simulator, id:CB92FB5B-DF81-4D07-A8F6-18224862D513, OS:15.0, name:iPhone 12 Pro Max }
▸ { platform:iOS Simulator, id:AE9F8D77-BE11-4FDB-AD3B-CA9CF749BF34, OS:15.0, name:iPhone 12 mini }
▸ { platform:iOS Simulator, id:ECE956C8-39E0-492B-9E37-0C28627D599D, OS:15.0, name:iPhone 13 }
▸ { platform:iOS Simulator, id:BC6F1D15-3ED9-40F2-BBDA-D082D5DFB738, OS:15.0, name:iPhone 13 Pro }
▸ { platform:iOS Simulator, id:B26270AC-4D5B-4F8B-AF53-15B9BE5F6A3B, OS:15.0, name:iPhone 13 Pro Max }
▸ { platform:iOS Simulator, id:AF3558D2-7ED7-4BD9-93BE-9F2C242BE18E, OS:15.0, name:iPhone 13 mini }
▸ { platform:iOS Simulator, id:0A569D77-37C2-405B-A551-23EFA0D267DB, OS:15.0, name:iPhone SE (2nd generation) }
▸ { platform:iOS Simulator, id:3F3F8FB5-2DED-483F-8134-855C1784EFC5, OS:15.0, name:iPod touch (7th generation) }
▸ { platform:iOS Simulator, id:1CB33FBC-3FAA-4F3E-BB0F-A9EDCAAD1259, OS:15.0, name:iPad (9th generation) }
▸ { platform:iOS Simulator, id:AFC5A58F-7FBC-4DF5-AE5A-0974346DF7B6, OS:15.0, name:iPad Air (4th generation) }
▸ { platform:iOS Simulator, id:95E4DD21-70F0-4B6F-AC94-EA4476055EEF, OS:15.0, name:iPad Pro (9.7-inch) }
▸ { platform:iOS Simulator, id:EEB18B5C-E97E-454D-A183-84ED100F8196, OS:15.0, name:iPad Pro (11-inch) (3rd generation) }
▸ { platform:iOS Simulator, id:2A156826-CB37-46EA-8ECC-8DAD52EF0F1F, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) }
▸ { platform:iOS Simulator, id:CCA2D32E-96E5-44C0-8A63-13814504BDA0, OS:15.0, name:iPad mini (6th generation) }
▸ resolved source packages:
$ xcodebuild -showBuildSettings -workspace ./Jan.xcworkspace -scheme Jan -configuration Release
[stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
[stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
[stderr] { platform:iOS Simulator, id:AE115BC2-463C-49D5-B498-8741EE92F069, OS:15.0, name:iPhone 8 }
[stderr] { platform:iOS Simulator, id:718EB7E9-0A7D-4F2D-8334-9FAEB4D2D7D6, OS:15.0, name:iPhone 8 Plus }
[stderr] { platform:iOS Simulator, id:0B5CA4B0-23A2-4D9B-ACB5-0697F287717C, OS:15.0, name:iPhone 11 }
[stderr] { platform:iOS Simulator, id:03B4BB90-B5D0-4877-9D66-4E5B63B5A3C5, OS:15.0, name:iPhone 11 Pro }
[stderr] { platform:iOS Simulator, id:95F5C092-940F-4853-850B-B1B36E8E0590, OS:15.0, name:iPhone 11 Pro Max }
[stderr] { platform:iOS Simulator, id:FEA2C8C1-E52B-4540-9BCD-3BBC2EDEBFF4, OS:15.0, name:iPhone 12 }
[stderr] { platform:iOS Simulator, id:AFEA8245-61C0-43CB-BAEA-97F1196BAF6E, OS:15.0, name:iPhone 12 Pro }
[stderr] { platform:iOS Simulator, id:CB92FB5B-DF81-4D07-A8F6-18224862D513, OS:15.0, name:iPhone 12 Pro Max }
[stderr] { platform:iOS Simulator, id:AE9F8D77-BE11-4FDB-AD3B-CA9CF749BF34, OS:15.0, name:iPhone 12 mini }
[stderr] { platform:iOS Simulator, id:ECE956C8-39E0-492B-9E37-0C28627D599D, OS:15.0, name:iPhone 13 }
[stderr] { platform:iOS Simulator, id:BC6F1D15-3ED9-40F2-BBDA-D082D5DFB738, OS:15.0, name:iPhone 13 Pro }
[stderr] { platform:iOS Simulator, id:B26270AC-4D5B-4F8B-AF53-15B9BE5F6A3B, OS:15.0, name:iPhone 13 Pro Max }
[stderr] { platform:iOS Simulator, id:AF3558D2-7ED7-4BD9-93BE-9F2C242BE18E, OS:15.0, name:iPhone 13 mini }
[stderr] { platform:iOS Simulator, id:0A569D77-37C2-405B-A551-23EFA0D267DB, OS:15.0, name:iPhone SE (2nd generation) }
[stderr] { platform:iOS Simulator, id:3F3F8FB5-2DED-483F-8134-855C1784EFC5, OS:15.0, name:iPod touch (7th generation) }
[stderr] { platform:iOS Simulator, id:1CB33FBC-3FAA-4F3E-BB0F-A9EDCAAD1259, OS:15.0, name:iPad (9th generation) }
[stderr] { platform:iOS Simulator, id:AFC5A58F-7FBC-4DF5-AE5A-0974346DF7B6, OS:15.0, name:iPad Air (4th generation) }
[stderr] { platform:iOS Simulator, id:95E4DD21-70F0-4B6F-AC94-EA4476055EEF, OS:15.0, name:iPad Pro (9.7-inch) }
[stderr] { platform:iOS Simulator, id:EEB18B5C-E97E-454D-A183-84ED100F8196, OS:15.0, name:iPad Pro (11-inch) (3rd generation) }
[stderr] { platform:iOS Simulator, id:2A156826-CB37-46EA-8ECC-8DAD52EF0F1F, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) }
[stderr] { platform:iOS Simulator, id:CCA2D32E-96E5-44C0-8A63-13814504BDA0, OS:15.0, name:iPad mini (6th generation) }
Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
[stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
[stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
[stderr] { platform:iOS Simulator, id:AE115BC2-463C-49D5-B498-8741EE92F069, OS:15.0, name:iPhone 8 }
[stderr] { platform:iOS Simulator, id:718EB7E9-0A7D-4F2D-8334-9FAEB4D2D7D6, OS:15.0, name:iPhone 8 Plus }
[stderr] { platform:iOS Simulator, id:0B5CA4B0-23A2-4D9B-ACB5-0697F287717C, OS:15.0, name:iPhone 11 }
[stderr] { platform:iOS Simulator, id:03B4BB90-B5D0-4877-9D66-4E5B63B5A3C5, OS:15.0, name:iPhone 11 Pro }
[stderr] { platform:iOS Simulator, id:95F5C092-940F-4853-850B-B1B36E8E0590, OS:15.0, name:iPhone 11 Pro Max }
[stderr] { platform:iOS Simulator, id:FEA2C8C1-E52B-4540-9BCD-3BBC2EDEBFF4, OS:15.0, name:iPhone 12 }
[stderr] { platform:iOS Simulator, id:AFEA8245-61C0-43CB-BAEA-97F1196BAF6E, OS:15.0, name:iPhone 12 Pro }
[stderr] { platform:iOS Simulator, id:CB92FB5B-DF81-4D07-A8F6-18224862D513, OS:15.0, name:iPhone 12 Pro Max }
[stderr] { platform:iOS Simulator, id:AE9F8D77-BE11-4FDB-AD3B-CA9CF749BF34, OS:15.0, name:iPhone 12 mini }
[stderr] { platform:iOS Simulator, id:ECE956C8-39E0-492B-9E37-0C28627D599D, OS:15.0, name:iPhone 13 }
[stderr] { platform:iOS Simulator, id:BC6F1D15-3ED9-40F2-BBDA-D082D5DFB738, OS:15.0, name:iPhone 13 Pro }
[stderr] { platform:iOS Simulator, id:B26270AC-4D5B-4F8B-AF53-15B9BE5F6A3B, OS:15.0, name:iPhone 13 Pro Max }
[stderr] { platform:iOS Simulator, id:AF3558D2-7ED7-4BD9-93BE-9F2C242BE18E, OS:15.0, name:iPhone 13 mini }
[stderr] { platform:iOS Simulator, id:0A569D77-37C2-405B-A551-23EFA0D267DB, OS:15.0, name:iPhone SE (2nd generation) }
[stderr] { platform:iOS Simulator, id:3F3F8FB5-2DED-483F-8134-855C1784EFC5, OS:15.0, name:iPod touch (7th generation) }
[stderr] { platform:iOS Simulator, id:1CB33FBC-3FAA-4F3E-BB0F-A9EDCAAD1259, OS:15.0, name:iPad (9th generation) }
[stderr] { platform:iOS Simulator, id:AFC5A58F-7FBC-4DF5-AE5A-0974346DF7B6, OS:15.0, name:iPad Air (4th generation) }
[stderr] { platform:iOS Simulator, id:95E4DD21-70F0-4B6F-AC94-EA4476055EEF, OS:15.0, name:iPad Pro (9.7-inch) }
[stderr] { platform:iOS Simulator, id:EEB18B5C-E97E-454D-A183-84ED100F8196, OS:15.0, name:iPad Pro (11-inch) (3rd generation) }
[stderr] { platform:iOS Simulator, id:2A156826-CB37-46EA-8ECC-8DAD52EF0F1F, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) }
[stderr] { platform:iOS Simulator, id:CCA2D32E-96E5-44C0-8A63-13814504BDA0, OS:15.0, name:iPad mini (6th generation) }
Detected provisioning profile mapping: {:"com.winnig.oraclejan"=>"936a775f-87cd-450b-895c-99fb80185a83"}
+----------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                        Summary for gym 2.185.1                                                                                         |
+----------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| workspace                                                | ./Jan.xcworkspace                                                                                                                           |
| scheme                                                   | Jan                                                                                                                                         |
| clean                                                    | false                                                                                                                                       |
| output_directory                                         | ./build                                                                                                                                     |
| output_name                                              | oraclejan                                                                                                                                   |
| configuration                                            | Release                                                                                                                                     |
| silent                                                   | false                                                                                                                                       |
| skip_package_ipa                                         | false                                                                                                                                       |
| skip_package_pkg                                         | false                                                                                                                                       |
| export_options.method                                    | app-store                                                                                                                                   |
| export_options.provisioningProfiles.com.winnig.oraclejan | 936a775f-87cd-450b-895c-99fb80185a83                                                                                                        |
| export_xcargs                                            | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-4dd20446-3326-4a2c-b728-01b9af69808d.keychain" |
| build_path                                               | /Users/expo/Library/Developer/Xcode/Archives/2021-11-25                                                                                     |
| result_bundle                                            | false                                                                                                                                       |
| buildlog_path                                            | /Users/expo/workingdir/logs                                                                                                                 |
| destination                                              | generic/platform=iOS                                                                                                                        |
| suppress_xcode_output                                    | true                                                                                                                                        |
| disable_xcpretty                                         | true                                                                                                                                        |
| skip_profile_detection                                   | false                                                                                                                                       |
| skip_package_dependencies_resolution                     | false                                                                                                                                       |
| disable_package_automatic_updates                        | false                                                                                                                                       |
| use_system_scm                                           | false                                                                                                                                       |
| xcode_path                                               | /Applications/Xcode.app                                                                                                                     |
+----------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
$ set -o pipefail && xcodebuild -workspace ./Jan.xcworkspace -scheme Jan -configuration Release -destination 'generic/platform=iOS' -archivePath /Users/expo/Library/Developer/Xcode/Archives/2021-11-25/oraclejan\ 2021-11-25\ 07.00.52.xcarchive archive | tee /Users/expo/workingdir/logs/oraclejan-Jan.log > /dev/null

❌  error: Provisioning profile "*[expo] com.winnig.oraclejan AppStore 2021-11-25T14:04:02.990Z" doesn't support the Push Notifications capability. (in target 'Jan' from project 'Jan')


❌  error: Provisioning profile "*[expo] com.winnig.oraclejan AppStore 2021-11-25T14:04:02.990Z" doesn't include the aps-environment entitlement. (in target 'Jan' from project 'Jan')

▸ ** ARCHIVE FAILED **
** ARCHIVE FAILED **
Exit status: 65
+-------------+-------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.185.1                 |
| sdk         | iPhoneOS15.0.sdk        |
+-------------+-------------------------+
Looks like fastlane ran into a build/archive error with your project
It's hard to tell what's causing the error, so we wrote some guides on how
to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
Before submitting an issue on GitHub, please follow the guide above and make
sure your project is set up correctly.
fastlane uses `xcodebuild` commands to generate your binary, you can see the
the full commands printed out in yellow in the above log.
Make sure to inspect the output above, as usually you'll find more error information there
[stderr] [!] Error building the application - see the log above
Error: Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases.
Fastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.

Also I said no when I was asked “Would you like to set up Push Notifications for your project?”

Also here is the output from expo config --type introspect

{
  name: 'Jan',
  slug: 'oracle-jan-app',
  owner: 'dzmitry_o',
  version: '1.0.6',
  orientation: 'portrait',
  icon: './src/assets/images/icon.png',
  scheme: 'oraclejan',
  userInterfaceStyle: 'automatic',
  backgroundColor: '#251F37',
  assetBundlePatterns: [
    '**/*'
  ],
  facebookScheme: 'fb418023329564973',
  plugins: [
    'sentry-expo'
  ],
  description: undefined,
  sdkVersion: '43.0.0',
  platforms: [
    'ios',
    'android',
    'web'
  ],
  updates: {
    fallbackToCacheTimeout: 20000
  },
  ios: {
    bundleIdentifier: 'com.winnig.oraclejan',
    buildNumber: '1.0.8',
    splash: {
      image: './src/assets/images/splash.png',
      resizeMode: 'contain',
      backgroundColor: '#29243e'
    },
    infoPlist: {
      CFBundleDevelopmentRegion: '$(DEVELOPMENT_LANGUAGE)',
      CFBundleExecutable: '$(EXECUTABLE_NAME)',
      CFBundleIdentifier: '$(PRODUCT_BUNDLE_IDENTIFIER)',
      CFBundleName: '$(PRODUCT_NAME)',
      CFBundlePackageType: '$(PRODUCT_BUNDLE_PACKAGE_TYPE)',
      CFBundleInfoDictionaryVersion: '6.0',
      CFBundleSignature: '????',
      LSRequiresIPhoneOS: true,
      UILaunchStoryboardName: 'SplashScreen',
      UIRequiredDeviceCapabilities: [
        'armv7'
      ],
      UIViewControllerBasedStatusBarAppearance: false,
      UIStatusBarStyle: 'UIStatusBarStyleDefault',
      CFBundleShortVersionString: '1.0.6',
      CFBundleVersion: '1.0.8',
      CFBundleURLTypes: [
        {
          CFBundleURLSchemes: [
            'oraclejan',
            'com.winnig.oraclejan'
          ]
        },
        {
          CFBundleURLSchemes: [
            'exp+oracle-jan-app'
          ]
        },
        {
          CFBundleURLSchemes: [
            'fb418023329564973'
          ]
        }
      ],
      'UISupportedInterfaceOrientations~ipad': [
        'UIInterfaceOrientationPortrait',
        'UIInterfaceOrientationPortraitUpsideDown',
        'UIInterfaceOrientationLandscapeLeft',
        'UIInterfaceOrientationLandscapeRight'
      ],
      UIRequiresFullScreen: false,
      UISupportedInterfaceOrientations: [
        'UIInterfaceOrientationPortrait',
        'UIInterfaceOrientationPortraitUpsideDown'
      ],
      CFBundleDisplayName: 'Jan',
      UIUserInterfaceStyle: 'Automatic',
      RCTRootViewBackgroundColor: 4280622903,
      CFBundleAllowMixedLocalizations: true,
      NSAppTransportSecurity: {
        NSAllowsArbitraryLoads: true,
        NSExceptionDomains: {
          localhost: {
            NSExceptionAllowsInsecureHTTPLoads: true
          }
        }
      }
    },
    entitlements: {
      'aps-environment': 'development',
      'com.apple.developer.applesignin': [
        'Default'
      ]
    }
  },
  androidStatusBar: {
    translucent: true,
    backgroundColor: '#29243e'
  },
  android: {
    package: 'com.winnig.oraclejan',
    versionCode: 11,
    permissions: [
      'android.permission.READ_EXTERNAL_STORAGE',
      'android.permission.WRITE_EXTERNAL_STORAGE',
      'android.permission.INTERNET'
    ],
    adaptiveIcon: {
      foregroundImage: './src/assets/images/icon.png',
      backgroundColor: '#ffffff'
    },
    splash: {
      image: './src/assets/images/splash.png',
      resizeMode: 'contain',
      backgroundColor: '#29243e'
    }
  },
  web: {
    favicon: './src/assets/images/favicon.png'
  },
  packagerOpts: {
    config: 'metro.config.js',
    sourceExts: [
      'expo.ts',
      'expo.tsx',
      'expo.js',
      'expo.jsx',
      'ts',
      'tsx',
      'js',
      'jsx',
      'json',
      'wasm',
      'svg'
    ]
  },
  androidNavigationBar: {
    barStyle: 'dark-content',
    backgroundColor: '#030A23'
  },
  hooks: {
    postPublish: [
      {
        file: 'sentry-expo/upload-sourcemaps',
        config: {
          organization: 'turbomates-soft-nm',
          project: 'oracle-jan',
          authToken: '54b5e3702bb54b2a8dea9321a9135e4cd6d5d9ec6d06422eb8cafa3fb14765e1'
        }
      }
    ]
  },
  _internal: {
    isDebug: false,
    projectRoot: '/Users/dmitry/projects/native/oracle-jan/app',
    staticConfigPath: '/Users/dmitry/projects/native/oracle-jan/app/app.json',
    packageJsonPath: '/Users/dmitry/projects/native/oracle-jan/app/package.json',
    dynamicConfigPath: {},
    pluginHistory: {
      'sentry-expo': {
        name: 'sentry-expo',
        version: '4.0.3'
      },
      'react-native-maps': {
        name: 'react-native-maps',
        version: 'UNVERSIONED'
      },
      'expo-ads-admob': {
        name: 'expo-ads-admob',
        version: 'UNVERSIONED'
      },
      'expo-apple-authentication': {
        name: 'expo-apple-authentication',
        version: '4.0.3'
      },
      'expo-contacts': {
        name: 'expo-contacts',
        version: 'UNVERSIONED'
      },
      'expo-notifications': {
        name: 'expo-notifications',
        version: 'UNVERSIONED'
      },
      'expo-updates': {
        name: 'expo-updates',
        version: '0.10.15'
      },
      'expo-branch': {
        name: 'expo-branch',
        version: 'UNVERSIONED'
      },
      'expo-document-picker': {
        name: 'expo-document-picker',
        version: 'UNVERSIONED'
      },
      'expo-facebook': {
        name: 'expo-facebook',
        version: 'UNVERSIONED'
      },
      'expo-system-ui': {
        name: 'expo-system-ui',
        version: 'UNVERSIONED'
      },
      'expo-splash-screen': {
        name: 'expo-splash-screen',
        version: '0.13.5'
      },
      'expo-navigation-bar': {
        name: 'expo-navigation-bar',
        version: 'UNVERSIONED'
      },
      'expo-dev-menu': {
        name: 'expo-dev-menu',
        version: '0.8.4'
      },
      'expo-dev-launcher': {
        name: 'expo-dev-launcher',
        version: '0.8.4'
      },
      'expo-dev-client': {
        name: 'expo-dev-client',
        version: '0.6.3'
      },
      'expo-file-system': {
        name: 'expo-file-system',
        version: '13.0.3'
      }
    },
    modResults: {
      android: {
        gradleProperties: [
          {
            type: 'property',
            key: 'expo.jsEngine',
            value: 'jsc'
          }
        ],
        manifest: {
          manifest: {
            '$': {
              'xmlns:android': 'http://schemas.android.com/apk/res/android',
              package: 'com.winnig.oraclejan'
            },
            'uses-permission': [
              {
                '$': {
                  'android:name': 'android.permission.INTERNET'
                }
              },
              {
                '$': {
                  'android:name': 'android.permission.SYSTEM_ALERT_WINDOW'
                }
              },
              {
                '$': {
                  'android:name': 'android.permission.READ_PHONE_STATE'
                }
              },
              {
                '$': {
                  'android:name': 'android.permission.VIBRATE'
                }
              },
              {
                '$': {
                  'android:name': 'android.permission.MODIFY_AUDIO_SETTINGS'
                }
              },
              {
                '$': {
                  'android:name': 'android.permission.READ_EXTERNAL_STORAGE'
                }
              },
              {
                '$': {
                  'android:name': 'android.permission.WRITE_EXTERNAL_STORAGE'
                }
              }
            ],
            queries: [
              {
                intent: [
                  {
                    action: [
                      {
                        '$': {
                          'android:name': 'android.intent.action.VIEW'
                        }
                      }
                    ],
                    category: [
                      {
                        '$': {
                          'android:name': 'android.intent.category.BROWSABLE'
                        }
                      }
                    ],
                    data: [
                      {
                        '$': {
                          'android:scheme': 'https'
                        }
                      }
                    ]
                  }
                ]
              }
            ],
            application: [
              {
                '$': {
                  'android:name': '.MainApplication',
                  'android:label': '@string/app_name',
                  'android:icon': '@mipmap/ic_launcher',
                  'android:roundIcon': '@mipmap/ic_launcher_round',
                  'android:allowBackup': 'true',
                  'android:theme': '@style/AppTheme',
                  'android:usesCleartextTraffic': 'true'
                },
                'meta-data': [
                  {
                    '$': {
                      'android:name': 'expo.modules.updates.EXPO_UPDATE_URL',
                      'android:value': 'https://exp.host/@dzmitry_o/oracle-jan-app'
                    }
                  },
                  {
                    '$': {
                      'android:name': 'expo.modules.updates.EXPO_SDK_VERSION',
                      'android:value': '43.0.0'
                    }
                  },
                  {
                    '$': {
                      'android:name': 'expo.modules.updates.ENABLED',
                      'android:value': 'true'
                    }
                  },
                  {
                    '$': {
                      'android:name': 'expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH',
                      'android:value': 'ALWAYS'
                    }
                  },
                  {
                    '$': {
                      'android:name': 'expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS',
                      'android:value': '20000'
                    }
                  }
                ],
                activity: [
                  {
                    '$': {
                      'android:name': '.MainActivity',
                      'android:label': '@string/app_name',
                      'android:configChanges': 'keyboard|keyboardHidden|orientation|screenSize|uiMode',
                      'android:launchMode': 'singleTask',
                      'android:windowSoftInputMode': 'adjustResize',
                      'android:theme': '@style/Theme.App.SplashScreen',
                      'android:screenOrientation': 'portrait'
                    },
                    'intent-filter': [
                      {
                        action: [
                          {
                            '$': {
                              'android:name': 'android.intent.action.MAIN'
                            }
                          }
                        ],
                        category: [
                          {
                            '$': {
                              'android:name': 'android.intent.category.LAUNCHER'
                            }
                          }
                        ]
                      },
                      {
                        action: [
                          {
                            '$': {
                              'android:name': 'android.intent.action.VIEW'
                            }
                          }
                        ],
                        category: [
                          {
                            '$': {
                              'android:name': 'android.intent.category.DEFAULT'
                            }
                          },
                          {
                            '$': {
                              'android:name': 'android.intent.category.BROWSABLE'
                            }
                          }
                        ],
                        data: [
                          {
                            '$': {
                              'android:scheme': 'oraclejan'
                            }
                          },
                          {
                            '$': {
                              'android:scheme': 'com.winnig.oraclejan'
                            }
                          },
                          {
                            '$': {
                              'android:scheme': 'exp+oracle-jan-app'
                            }
                          }
                        ]
                      }
                    ]
                  },
                  {
                    '$': {
                      'android:name': 'com.facebook.react.devsupport.DevSettingsActivity'
                    }
                  },
                  {
                    'intent-filter': [
                      {
                        action: [
                          {
                            '$': {
                              'android:name': 'android.intent.action.VIEW'
                            }
                          }
                        ],
                        category: [
                          {
                            '$': {
                              'android:name': 'android.intent.category.DEFAULT'
                            }
                          },
                          {
                            '$': {
                              'android:name': 'android.intent.category.BROWSABLE'
                            }
                          }
                        ],
                        data: [
                          {
                            '$': {
                              'android:scheme': 'fb418023329564973'
                            }
                          }
                        ]
                      }
                    ],
                    '$': {
                      'android:name': 'com.facebook.CustomTabActivity',
                      'android:exported': 'true'
                    }
                  }
                ]
              }
            ]
          }
        },
        colors: {
          resources: {
            color: [
              {
                '$': {
                  name: 'iconBackground'
                },
                _: '#ffffff'
              },
              {
                '$': {
                  name: 'colorPrimary'
                },
                _: '#023c69'
              },
              {
                '$': {
                  name: 'colorPrimaryDark'
                },
                _: '#29243e'
              },
              {
                '$': {
                  name: 'navigationBarColor'
                },
                _: '#030A23'
              },
              {
                '$': {
                  name: 'splashscreen_background'
                },
                _: '#29243e'
              },
              {
                '$': {
                  name: 'activityBackground'
                },
                _: '#251F37'
              }
            ]
          }
        },
        strings: {
          resources: {
            string: [
              {
                '$': {
                  name: 'app_name'
                },
                _: 'Jan'
              },
              {
                '$': {
                  name: 'expo_splash_screen_resize_mode'
                },
                _: 'contain'
              },
              {
                '$': {
                  name: 'expo_splash_screen_status_bar_translucent'
                },
                _: 'true'
              }
            ]
          }
        },
        styles: {
          resources: {
            '$': {
              'xmlns:tools': 'http://schemas.android.com/tools'
            },
            style: [
              {
                '$': {
                  name: 'AppTheme',
                  parent: 'Theme.AppCompat.Light.NoActionBar'
                },
                item: [
                  {
                    '$': {
                      name: 'colorPrimary'
                    },
                    _: '@color/colorPrimary'
                  },
                  {
                    '$': {
                      name: 'android:windowTranslucentStatus'
                    },
                    _: 'true'
                  },
                  {
                    '$': {
                      name: 'colorPrimaryDark'
                    },
                    _: '@color/colorPrimaryDark'
                  },
                  {
                    '$': {
                      name: 'android:windowLightNavigationBar'
                    },
                    _: 'true'
                  },
                  {
                    '$': {
                      name: 'android:navigationBarColor'
                    },
                    _: '@color/navigationBarColor'
                  },
                  {
                    '$': {
                      name: 'android:windowBackground'
                    },
                    _: '@color/activityBackground'
                  }
                ]
              },
              {
                '$': {
                  name: 'Theme.App.SplashScreen',
                  parent: 'AppTheme'
                },
                item: [
                  {
                    '$': {
                      name: 'android:windowBackground'
                    },
                    _: '@drawable/splashscreen'
                  }
                ]
              }
            ]
          }
        },
        colorsNight: {
          resources: {}
        }
      },
      ios: {
        infoPlist: {
          CFBundleDevelopmentRegion: '$(DEVELOPMENT_LANGUAGE)',
          CFBundleExecutable: '$(EXECUTABLE_NAME)',
          CFBundleIdentifier: '$(PRODUCT_BUNDLE_IDENTIFIER)',
          CFBundleName: '$(PRODUCT_NAME)',
          CFBundlePackageType: '$(PRODUCT_BUNDLE_PACKAGE_TYPE)',
          CFBundleInfoDictionaryVersion: '6.0',
          CFBundleSignature: '????',
          LSRequiresIPhoneOS: true,
          UILaunchStoryboardName: 'SplashScreen',
          UIRequiredDeviceCapabilities: [
            'armv7'
          ],
          UIViewControllerBasedStatusBarAppearance: false,
          UIStatusBarStyle: 'UIStatusBarStyleDefault',
          CFBundleShortVersionString: '1.0.6',
          CFBundleVersion: '1.0.8',
          CFBundleURLTypes: [
            {
              CFBundleURLSchemes: [
                'oraclejan',
                'com.winnig.oraclejan'
              ]
            },
            {
              CFBundleURLSchemes: [
                'exp+oracle-jan-app'
              ]
            },
            {
              CFBundleURLSchemes: [
                'fb418023329564973'
              ]
            }
          ],
          'UISupportedInterfaceOrientations~ipad': [
            'UIInterfaceOrientationPortrait',
            'UIInterfaceOrientationPortraitUpsideDown',
            'UIInterfaceOrientationLandscapeLeft',
            'UIInterfaceOrientationLandscapeRight'
          ],
          UIRequiresFullScreen: false,
          UISupportedInterfaceOrientations: [
            'UIInterfaceOrientationPortrait',
            'UIInterfaceOrientationPortraitUpsideDown'
          ],
          CFBundleDisplayName: 'Jan',
          UIUserInterfaceStyle: 'Automatic',
          RCTRootViewBackgroundColor: 4280622903,
          CFBundleAllowMixedLocalizations: true,
          NSAppTransportSecurity: {
            NSAllowsArbitraryLoads: true,
            NSExceptionDomains: {
              localhost: {
                NSExceptionAllowsInsecureHTTPLoads: true
              }
            }
          }
        },
        entitlements: {
          'aps-environment': 'development',
          'com.apple.developer.applesignin': [
            'Default'
          ]
        },
        expoPlist: {
          EXUpdatesEnabled: true,
          EXUpdatesCheckOnLaunch: 'ALWAYS',
          EXUpdatesLaunchWaitMs: 20000,
          EXUpdatesURL: 'https://exp.host/@dzmitry_o/oracle-jan-app',
          EXUpdatesSDKVersion: '43.0.0'
        },
        podfileProperties: {
          'expo.jsEngine': 'jsc'
        }
      }
    }
  },
  mods: {
    android: {
      manifest: [AsyncFunction: interceptingMod] {
        isProvider: true,
        isIntrospective: true
      },
      colors: [AsyncFunction: interceptingMod] {
        isProvider: true,
        isIntrospective: true
      },
      strings: [AsyncFunction: interceptingMod] {
        isProvider: true,
        isIntrospective: true
      },
      styles: [AsyncFunction: interceptingMod] {
        isProvider: true,
        isIntrospective: true
      },
      colorsNight: [AsyncFunction: interceptingMod] {
        isProvider: true,
        isIntrospective: true
      },
      gradleProperties: [AsyncFunction: interceptingMod] {
        isProvider: true,
        isIntrospective: true
      }
    },
    ios: {
      infoPlist: [AsyncFunction: interceptingMod] {
        isProvider: true,
        isIntrospective: true
      },
      entitlements: [AsyncFunction: interceptingMod] {
        isProvider: true,
        isIntrospective: true
      },
      expoPlist: [AsyncFunction: interceptingMod] {
        isProvider: true,
        isIntrospective: true
      },
      podfileProperties: [AsyncFunction: interceptingMod] {
        isProvider: true,
        isIntrospective: true
      }
    }
  }
}

can you try this again but bump the expo-cli version to 5.0.0-rc.0 both locally and in your eas build profile?

edit: i’m publishing eas-cli@0.38.2 with a fix right now. it should be available shortly. apologies for the hassle

Hi, We are having the same issue as above. Just updated to expo-cli@5.0.0-rc.0 and also newly installed eas-cli@0.38.2. App does not use notifications and we answered “No” to “Would you like to set up Push Notifications for your project?”

Thanks for any help!

Fastlane log:

Creating Gymfile
Gymfile created
Successfully loaded '/Users/expo/workingdir/build/ios/Gymfile' 📄
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                  Detected Values from './Gymfile'                                                                   |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| suppress_xcode_output | true                                                                                                                                        |
| clean                 | false                                                                                                                                       |
| scheme                | TorreySchedule                                                                                                                              |
| configuration         | Release                                                                                                                                     |
| export_options        |                                                                                                                                             |
| export_xcargs         | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-33cb5ef6-1db1-4181-926d-0ec59ae82bcd.keychain" |
| disable_xcpretty      | true                                                                                                                                        |
| buildlog_path         | /Users/expo/workingdir/logs                                                                                                                 |
| output_directory      | ./build                                                                                                                                     |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
Resolving Swift Package Manager dependencies...
$ xcodebuild -resolvePackageDependencies -workspace ./TorreySchedule.xcworkspace -scheme TorreySchedule -configuration Release
▸ Command line invocation:
▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./TorreySchedule.xcworkspace -scheme TorreySchedule -configuration Release
▸ User defaults from command line:
▸     IDEPackageSupportUseBuiltinSCM = YES
▸ resolved source packages:
$ xcodebuild -showBuildSettings -workspace ./TorreySchedule.xcworkspace -scheme TorreySchedule -configuration Release
Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
[stderr] `<PBXResourcesBuildPhase UUID=`13B07F8E1A680F5B00A75B9A`>` attempted to initialize an object with an unknown UUID. `05EF5ED216554F3F930E0955` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.
Detected provisioning profile mapping: {:"com.breise.scheduleapp"=>"32c4932b-3494-438d-b6de-6937f4daf5a2"}
[stderr] `<PBXResourcesBuildPhase UUID=`13B07F8E1A680F5B00A75B9A`>` attempted to initialize an object with an unknown UUID. `05EF5ED216554F3F930E0955` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.
+------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                         Summary for gym 2.185.1                                                                                          |
+------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| workspace                                                  | ./TorreySchedule.xcworkspace                                                                                                                |
| scheme                                                     | TorreySchedule                                                                                                                              |
| clean                                                      | false                                                                                                                                       |
| output_directory                                           | ./build                                                                                                                                     |
| output_name                                                | scheduleapp                                                                                                                                 |
| configuration                                              | Release                                                                                                                                     |
| silent                                                     | false                                                                                                                                       |
| skip_package_ipa                                           | false                                                                                                                                       |
| skip_package_pkg                                           | false                                                                                                                                       |
| export_options.method                                      | app-store                                                                                                                                   |
| export_options.provisioningProfiles.com.breise.scheduleapp | 32c4932b-3494-438d-b6de-6937f4daf5a2                                                                                                        |
| export_xcargs                                              | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-33cb5ef6-1db1-4181-926d-0ec59ae82bcd.keychain" |
| build_path                                                 | /Users/expo/Library/Developer/Xcode/Archives/2021-11-28                                                                                     |
| result_bundle                                              | false                                                                                                                                       |
| buildlog_path                                              | /Users/expo/workingdir/logs                                                                                                                 |
| destination                                                | generic/platform=iOS                                                                                                                        |
| suppress_xcode_output                                      | true                                                                                                                                        |
| disable_xcpretty                                           | true                                                                                                                                        |
| skip_profile_detection                                     | false                                                                                                                                       |
| skip_package_dependencies_resolution                       | false                                                                                                                                       |
| disable_package_automatic_updates                          | false                                                                                                                                       |
| use_system_scm                                             | false                                                                                                                                       |
| xcode_path                                                 | /Applications/Xcode.app                                                                                                                     |
+------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
$ set -o pipefail && xcodebuild -workspace ./TorreySchedule.xcworkspace -scheme TorreySchedule -configuration Release -destination 'generic/platform=iOS' -archivePath /Users/expo/Library/Developer/Xcode/Archives/2021-11-28/scheduleapp\ 2021-11-28\ 19.26.47.xcarchive archive | tee /Users/expo/workingdir/logs/scheduleapp-TorreySchedule.log > /dev/null

❌  error: Provisioning profile "*[expo] com.breise.scheduleapp AppStore 2021-11-29T02:11:59.439Z" doesn't support the Push Notifications capability. (in target 'TorreySchedule' from project 'TorreySchedule')


❌  error: Provisioning profile "*[expo] com.breise.scheduleapp AppStore 2021-11-29T02:11:59.439Z" doesn't include the aps-environment entitlement. (in target 'TorreySchedule' from project 'TorreySchedule')

▸ ** ARCHIVE FAILED **
** ARCHIVE FAILED **
Exit status: 65
+-------------+-------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.185.1                 |
| sdk         | iPhoneOS14.5.sdk        |
+-------------+-------------------------+
Looks like fastlane ran into a build/archive error with your project
It's hard to tell what's causing the error, so we wrote some guides on how
to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
Before submitting an issue on GitHub, please follow the guide above and make
sure your project is set up correctly.
fastlane uses `xcodebuild` commands to generate your binary, you can see the
the full commands printed out in yellow in the above log.
Make sure to inspect the output above, as usually you'll find more error information there
[stderr] [!] Error building the application - see the log above
Error: Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases.
Fastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.

@notbrent thank you for your quick fix. But we ended up including push notification capabilities in the app identifier. It’s strange because I wasn’t able to do it first(I got the error “The bundle ‘**********’ cannot be deleted. Delete all the Apps related to this bundle to proceed.”). That’s why I created this issue. But the next day I was able to do it.

Hi, same issue here, with monorepo containing clean expo project (typescript blank template) and expo module (also just created from template via npx create-expo-module).

expo-cli: 5.3.0
eas-cli/0.48.2 win32-x64 node-v16.13.0

Something is adding aps-environment entitlement to introspected config, but notifications are not needed and not set up neither in app.json or in any packages (AFAIK)

Trying to build dev client, ad hoc profile.

+-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                             Summary for gym 2.185.1                                                                                             |
+-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| workspace                                                         | ./example.xcworkspace                                                                                                                       |
| scheme                                                            | example                                                                                                                                     |
| clean                                                             | false                                                                                                                                       |
| output_directory                                                  | ./build                                                                                                                                     |
| output_name                                                       | example                                                                                                                                     |
| configuration                                                     | Debug                                                                                                                                       |
| silent                                                            | false                                                                                                                                       |
| skip_package_ipa                                                  | false                                                                                                                                       |
| skip_package_pkg                                                  | false                                                                                                                                       |
| export_options.method                                             | ad-hoc                                                                                                                                      |
| export_xcargs                                                     | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/***" |
| export_options.provisioningProfiles.***                           | ***                                                                                                        |
| build_path                                                        | /Users/expo/Library/Developer/Xcode/Archives/2022-03-29                                                                                     |
| result_bundle                                                     | false                                                                                                                                       |
| buildlog_path                                                     | /Users/expo/workingdir/logs                                                                                                                 |
| destination                                                       | generic/platform=iOS                                                                                                                        |
| suppress_xcode_output                                             | true                                                                                                                                        |
| disable_xcpretty                                                  | true                                                                                                                                        |
| skip_profile_detection                                            | false                                                                                                                                       |
| skip_package_dependencies_resolution                              | false                                                                                                                                       |
| disable_package_automatic_updates                                 | false                                                                                                                                       |
| use_system_scm                                                    | false                                                                                                                                       |
| xcode_path                                                        | /Applications/Xcode.app                                                                                                                     |
+-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+

$ set -o pipefail && xcodebuild -workspace ./example.xcworkspace -scheme example -configuration Debug -destination 'generic/platform=iOS' -archivePath /Users/expo/Library/Developer/Xcode/Archives/2022-03-29/example\ 2022-03-29\ 13.50.50.xcarchive archive | tee /Users/expo/workingdir/logs/example-example.log > /dev/null

❌  error: Provisioning profile "***" doesn't support the Push Notifications capability. (in target 'example' from project 'example')
❌  error: Provisioning profile "***" doesn't include the aps-environment entitlement. (in target 'example' from project 'example')
▸ ** ARCHIVE FAILED **
** ARCHIVE FAILED **
Exit status: 65
+-------------+-------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.185.1                 |
| sdk         | iPhoneOS15.0.sdk        |
+-------------+-------------------------+

@notbrent is there some update i need to do to get your fix or was there regression?

Hey there! Same issue here. I tried fixing it by manually adding a Push Notifications certificate to my provisioning profile even though that app does not need it.

Printout below
`±------------------------------------------------------------±--------------------------------------------------------------------------------------------------------------------------------------------+
| Summary for gym 2.185.1 |
±------------------------------------------------------------±--------------------------------------------------------------------------------------------------------------------------------------------+
| workspace | ./ExampleProject.xcworkspace |
| scheme | ExampleProject |
| clean | false |
| output_directory | ./build |
| output_name | ExampleProject |
| configuration | Release |
| silent | false |
| skip_package_ipa | false |
| skip_package_pkg | false |
| export_options.method | app-store |
| export_options.provisioningProfiles.com.ExampleProject.app | f689514c-1d78-4c37-af1d-9c7ccd95ac12 |
| export_xcargs | OTHER_CODE_SIGN_FLAGS=“–keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-87faca83-7ef6-4c68-8bfa-1e940444f10d.keychain” |
| build_path | /Users/expo/Library/Developer/Xcode/Archives/2022-04-11 |
| result_bundle | false |
| buildlog_path | /Users/expo/workingdir/logs |
| destination | generic/platform=iOS |
| suppress_xcode_output | true |
| disable_xcpretty | true |
| skip_profile_detection | false |
| skip_package_dependencies_resolution | false |
| disable_package_automatic_updates | false |
| use_system_scm | false |
| xcode_path | /Applications/Xcode.app |
±------------------------------------------------------------±--------------------------------------------------------------------------------------------------------------------------------------------+
$ set -o pipefail && xcodebuild -workspace ./ExampleProject.xcworkspace -scheme ExampleProject -configuration Release -destination ‘generic/platform=iOS’ -archivePath /Users/expo/Library/Developer/Xcode/Archives/2022-04-11/ExampleProject\ 2022-04-11\ 17.56.08.xcarchive archive | tee /Users/expo/workingdir/logs/ExampleProject-ExampleProject.log > /dev/null

:x: error: Provisioning profile “*[expo] com.ExampleProject.app AppStore 2022-04-11T23:51:33.187Z” doesn’t support the Push Notifications capability. (in target ‘ExampleProject’ from project ‘ExampleProject’)

:x: error: Provisioning profile “*[expo] com.ExampleProject.app AppStore 2022-04-11T23:51:33.187Z” doesn’t include the aps-environment entitlement. (in target ‘ExampleProject’ from project ‘ExampleProject’)

▸ ** ARCHIVE FAILED **
** ARCHIVE FAILED **
Exit status: 65`